Hash

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

Members

Functions

toCryptString
string toCryptString(string delegate(Digest) digestCodeOfObj)
void toCryptString(Sink sink, string delegate(Digest) digestCodeOfObj)

Just like toString, but instead of standard DAuth-style format, the output string is in the crypt(3)-style format.

toString
string toString(string delegate(Digest) digestCodeOfObj)
void toString(Sink sink, string delegate(Digest) digestCodeOfObj)

Encodes the digest, salt and hash into a convenient forward-compatible string format, ready for insertion into a database.

Variables

digest
TDigest digest;

The digest that was used for hashing.

hash
AnyDigestType!TDigest hash;

The hash of the salted password. To obtain a printable DB-friendly string, pass this to std.digest.digest.toHexString.

salt
Salt salt;

The salt that was used.

Meta