Bcrypt

Routines for bcrypt

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 log_rounds)

Generate a good salt for this algorithm

genSalt
void genSalt(Out output, size_t log_rounds)

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

Meta