scrypt.password

Undocumented in source.

Members

Functions

checkScryptPasswordHash
bool checkScryptPasswordHash(string hash, string password)

Some info regarding the params hash: An already hashed version of your password, for example fetched from a database password: The password you wish to see if it matches

genRandomSalt
string genRandomSalt()

Takes no parameters, returns a random UUID in string form

genScryptPasswordHash
string genScryptPasswordHash(string password, string salt, size_t scrypt_outputlen, ulong N, uint r, uint p)

Some info regarding the params password: The password you want to hash, for example "my password" salt: The salt you want to use when hashing your password, for example generateRandomSalt();

Manifest constants

SCRYPT_N_DEFAULT
enum SCRYPT_N_DEFAULT;
Undocumented in source.
SCRYPT_OUTPUTLEN_DEFAULT
enum SCRYPT_OUTPUTLEN_DEFAULT;
Undocumented in source.
SCRYPT_P_DEFAULT
enum SCRYPT_P_DEFAULT;
Undocumented in source.
SCRYPT_R_DEFAULT
enum SCRYPT_R_DEFAULT;
Undocumented in source.

Meta