Function 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 according to the OWASP Password Storage Cheat Sheet.