Skip to main content

Module encryption

Module encryption 

Source

Structs§

EncryptedCredentials
Encrypted credential storage format
EncryptedToken
A single encrypted token with its nonce

Functions§

decrypt
Decrypt ciphertext using AES-256-GCM
derive_key
Derive an encryption key from machine-specific identifiers. Uses Argon2 for key derivation to resist brute-force attacks.
encrypt
Encrypt plaintext using AES-256-GCM