database functions
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
#ifndef HASHING_HPP
|
||||
#define HASHING_HPP
|
||||
#include <string>
|
||||
|
||||
namespace hashing {
|
||||
std::string GenerateSetting(unsigned long cost = 0);
|
||||
std::string HashPassword(const std::string& password, const std::string& setting);
|
||||
bool VerifyPassword(const std::string& password, const std::string& stored_password);
|
||||
}
|
||||
std::string generate_token(size_t bytes = 32);
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user