Рабочая сборка второго executor'а

This commit is contained in:
Антон
2025-09-20 09:28:46 +03:00
parent bd5b7dd6ac
commit fb0cbd0161
4 changed files with 27 additions and 62 deletions
+6
View File
@@ -116,6 +116,12 @@ std::string ToHex(std::byte* src, size_t len)
return ret;
}
std::string HashPassword(const std::string& password)
{
size_t calculated_hash = std::hash<string>{}(password);
return ToHex((byte*)&calculated_hash, sizeof(calculated_hash));
}
uint64_t Random()
{
std::random_device device;
+2
View File
@@ -12,5 +12,7 @@ void Fail(boost::beast::error_code ec, char const* what);
std::string ToHex(std::byte* src, size_t len);
std::string HashPassword(const std::string& password);
uint64_t Random();
} // namespace uad