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