Skip to main content

Salt

Type Alias Salt 

Source
pub type Salt = Vec<u8>;
Expand description

Heap-allocated salt type alias for password hashing with PwHash.

Newly generated salts contain exactly CRYPTO_PWHASH_SALTBYTES bytes. Parsed Argon2 strings may contain other valid Argon2 salt lengths. Each stored password hash needs a unique, unpredictable salt; PwHash::hash generates one automatically.

Aliased Typeยง

pub struct Salt { /* private fields */ }