Skip to main content

Module crypt

Module crypt 

Source

Structs§

BcryptString
A bcrypt hash as stored in the database.
EncryptedString
An encrypted string as stored in the database.

Functions§

token_digest
Random high-entropy tokens (sessions, api keys) are stored as a plain digest, a KDF buys nothing against a 256-bit preimage and the deterministic value makes the unique index a real lookup.