pub fn encrypt_with_params( plaintext: &[u8], passphrase: &[u8], memory_cost: u32, time_cost: u32, parallelism: u32 ) -> Result<Vec<u8>, JsError>
Encrypts plaintext with the specified Argon2 parameters and into a newly allocated Uint8Array.
plaintext
Uint8Array
Returns Err if the Argon2 context is invalid.
Err