|
std::string | mantis::bcryptBase64Encode (const unsigned char *data, size_t len) |
| Encode a Salt string to bcrypt base64 format.
|
|
std::string | mantis::generateSalt (int cost=12) |
| Generates a salt to be used in hashing user passwords.
|
|
json | mantis::hashPassword (const std::string &password) |
| Digests user password + a generated salt to yield a hashed password.
|
|
json | mantis::verifyPassword (const std::string &password, const std::string &stored_hash) |
| Verifies user password if it matches the given hashed password.
|
|