MantisBase v0.3.4
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
 router.h
 

Functions

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