12 lines
373 B
C++
12 lines
373 B
C++
#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 |