Now wrapping up...

This commit is contained in:
Scott Idem
2025-04-28 18:14:21 -04:00
parent cbb73ed3fd
commit 6094d5a79d
2 changed files with 40 additions and 12 deletions

View File

@@ -17,6 +17,8 @@ export let encrypt_content = async function encrypt_content(
return { base64, iv };
}
// This does not handle errors (invalid key/password) well.
export let decrypt_content = async function decrypt_content(
base64Content: string, iv: Uint8Array, keyData: string
) {