MantisBase v0.4.9
Loading...
Searching...
No Matches
auth_utils.cpp File Reference
#include "../../include/mantisbase/utils/utils.h"
#include "../../include/mantisbase/mantisbase.h"
#include <bcrypt-cpp/bcrypt.h>
Include dependency graph for auth_utils.cpp:

Namespaces

namespace  mb

Functions

MANTISBASE_API std::string mb::hashPassword (const std::string &password)
 Digests user password + a generated salt to yield a hashed password.
MANTISBASE_API bool mb::verifyPassword (const std::string &password, const std::string &stored_hash)
 Verifies user password if it matches the given hashed password.