Files
backend/common/Crypto.h
T

15 lines
391 B
C++

#pragma once
#include <string>
namespace visione::crypto
{
std::string sha256(const std::string &value);
std::string randomNumericCode(int digits);
std::string randomToken();
std::string hashPassword(const std::string &password);
bool verifyPassword(const std::string &password, const std::string &hash);
std::string hashSecret(const std::string &secret);
} // namespace visione::crypto