SHACrypt

Routines for SHA-based crypt(3) algorithms

Members

Manifest constants

kMaxCryptStrLength
enum kMaxCryptStrLength;

Maximum length needed for output of crypt()

kMaxSaltStrLength
enum kMaxSaltStrLength;

Maximum length needed for output of genSalt()

Static functions

crypt
void crypt(const(char)[] password, Out output, const(CryptPieces) salt_data, Flag!"writeSalt" write_salt)

Hash password and write full crypt(3) string or just encoded digest to an output range

genSalt
string genSalt(size_t num_rounds)

Generate a good salt for this algorithm

genSalt
void genSalt(Out output, size_t num_rounds)

Generate a good salt for this algorithm and write to an output range

Meta