mirror of
https://github.com/yuanyuanxiang/SimpleRemoter.git
synced 2026-01-21 23:13:08 +08:00
Feat&Improve: Support gen pass code binding with domain
This commit is contained in:
@@ -2,11 +2,9 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
typedef std::string(*fallback)();
|
||||
|
||||
// <20><><EFBFBD><EFBFBD><EFBFBD>ɷ<EFBFBD><C9B7><EFBFBD><EFBFBD>˹<EFBFBD><CBB9>ܽ<EFBFBD><DCBD>м<EFBFBD><D0BC><EFBFBD>
|
||||
|
||||
std::string getHardwareID(fallback fb = NULL);
|
||||
std::string getHardwareID();
|
||||
|
||||
std::string hashSHA256(const std::string& data);
|
||||
|
||||
@@ -16,7 +14,7 @@ std::string getFixedLengthID(const std::string& hash);
|
||||
|
||||
std::string deriveKey(const std::string& password, const std::string& hardwareID);
|
||||
|
||||
std::string getDeviceID(fallback fb = NULL);
|
||||
std::string getDeviceID(const std::string &hardwareId);
|
||||
|
||||
// Use HMAC to sign a message.
|
||||
uint64_t SignMessage(const std::string& pwd, BYTE* msg, int len);
|
||||
|
||||
Reference in New Issue
Block a user