pub struct Hash { /* private fields */ }Expand description
Contains the Argon2 hash and the salt used to generate it.
The hash can be safely stored in your database without special security measures since it’s already cryptographically hashed. However, avoid unnecessary cloning or logging to minimize exposure.
§Fields
hash: The Argon2id PHC-formatted hash string (e.g., “$argon2id$v=19$m=…”)salt: The base64-encoded salt used during hashing (32 bytes when encoded)
Both fields can be accessed using the auto-generated getter methods hash() and salt()
provided by the Getters derive macro.