pub fn encrypt(plaintext: &[u8], passphrase: &[u8]) -> Result<Vec<u8>, JsError>
Encrypts plaintext and into a newly allocated Uint8Array.
plaintext
Uint8Array
This uses the default Argon2 parameters.
Returns Err if the Argon2 context is invalid.
Err