Add Visione backend foundation
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user