database functions

This commit is contained in:
2026-03-11 17:48:24 +00:00
parent fe8a46a488
commit 1333de2b37
9 changed files with 308 additions and 4 deletions

View File

@@ -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