Crate simplecrypt[][src]

Expand description

Simple library that allows to easily encrypt and decrypt data with a secret key using sodium.


Represents an error that can occur during decryption.


Decrypt the given data with the argon2id13 deriviation of the passphrase. Returns the decrypted data on success, or an empty tuple on failure.

Encrypt data with an argon2id13 derived key of the given passphrase and a random nonce.