[][src]Function simplestcrypt::encrypt

pub fn encrypt(password: &[u8], bytes: &[u8]) -> Result<Encrypted, EncryptError>

Encrypts the given bytes using a random nonce using Aes128SivAed Password cannot be longer than 32 bytes