Function simplestcrypt::deserialize_and_decrypt
source · [−]pub fn deserialize_and_decrypt(
password: &[u8],
serialized: &[u8]
) -> Result<Vec<u8>, DecryptError>
Expand description
Assumes that the given bytes is a Bincode serialized Encrypted structure, and first deserializes it and then tries to decrypt it using the given password bytes
Password cannot be longer than 32 bytes