Files
plural_plus_plus/include/hashing.hpp
2026-03-11 17:48:24 +00:00

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