[−][src]Crate simplecrypt
Simple library that allows to easily encrypt and decrypt data with a secret key using sodium.
Enums
DecryptionError | Represents an error that can occur during decryption. |
Functions
decrypt | Decrypt the given data with the argon2id13 deriviation of the passphrase. Returns the decrypted data on success, or an empty tuple on failure. |
encrypt | Encrypt data with an argon2id13 derived key of the given passphrase and a random nonce. |