Decrypts data previously encrypted with encryptWithPassword using the supplied password. Authenticates data integrity and throws an error if the password is incorrect or data was tampered with.
Encrypted binary data buffer
Decryption password / passphrase
PBKDF2 iteration count (default: 100,000)
Decrypted plaintext as Uint8Array
Decrypts data previously encrypted with encryptWithPassword using the supplied password. Authenticates data integrity and throws an error if the password is incorrect or data was tampered with.