Modules§
Structs§
- The additionally authenticated data (AAD) for an opening or sealing operation. This data is authenticated but is not encrypted.
- Immutable keys for use in situations where
OpeningKey
/SealingKey
andNonceSequence
cannot reasonably be used. - An AEAD key without a designated role or nonce sequence.
Constants§
- All the AEADs we support use 96-bit nonces.
Functions§
- argon2 🔒Constructs Argon2 with default params, easier if the weak crypto flag is set for testing
- Decrypts a
ciphertext
usingkey
. - Encrypt
plaintext
usingkey
. - Reads encrypted data from a file
- Write
data
encrypted to afile
with a randomnonce
that will be encoded in the file - Key used to encrypt and authenticate data stored on the filesystem with a user password.
- Get a random nonce.
- Generates a B64-encoded random salt string of the recommended 16 byte length