Struct Hash

Contains all the relevant information for a salted hash. Note the digest type can be obtained via DigestOf!(SomeHashType).


Name Type Description
digest TDigest The digest that was used for hashing.
hash AnyDigestType!TDigest The hash of the salted password. To obtain a printable DB-friendly string, pass this to std.digest.digest.toHexString.
salt Salt The salt that was used.


Name Description
toCryptString Just like toString, but instead of standard DAuth-style format, the output string is in the crypt(3)-style format.
toString Encodes the digest, salt and hash into a convenient forward-compatible string format, ready for insertion into a database.