generated from Sithas/conan_template
Рабочая сборка второго executor'а
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user