Function scryptenc_wasm::encrypt

source ·
pub fn encrypt(plaintext: &[u8], passphrase: &[u8]) -> Vec<u8>
Expand description

Encrypts plaintext and into a newly allocated Uint8Array.

This uses the recommended scrypt parameters created by [Params::recommended] which are sufficient for most use-cases.