Hash

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

Members

Functions

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