pub fn encrypt_and_serialize(
    password: &[u8],
    bytes: &[u8]
) -> Result<Vec<u8>, EncryptError>
Expand description

Encrypts the given bytes using a random nonce using Aes128SivAed, and then serializes the encryption along with the nonce using bincode. The resulting vector is then bincode serialized Encrypted structure

Password cannot be longer than 32 bytes