update function login
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
2026-06-16 09:57:55 +07:00
parent 6fa15b69e7
commit 9aee5f4100
19 changed files with 2272 additions and 64 deletions

16
src/util/crypto_util.hpp Normal file
View File

@@ -0,0 +1,16 @@
#pragma once
#include <string>
namespace lm {
class CryptoUtil
{
public:
static std::string sha256Hex(const std::string& data);
static std::string randomToken(std::size_t bytes = 32);
static std::string hashPassword(const std::string& salt, const std::string& password);
static std::string hashPin(const std::string& salt, const std::string& pin);
};
} // namespace lm