Implement service-generated authorization capability
This commit is contained in:
20
server/2015Remote/pwd_gen.h
Normal file
20
server/2015Remote/pwd_gen.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
#include "stdafx.h"
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
#include <wincrypt.h>
|
||||
|
||||
|
||||
// <20><><EFBFBD><EFBFBD><EFBFBD>ɷ<EFBFBD><C9B7><EFBFBD><EFBFBD>˹<EFBFBD><CBB9>ܽ<EFBFBD><DCBD>м<EFBFBD><D0BC><EFBFBD>
|
||||
|
||||
std::string getHardwareID();
|
||||
|
||||
std::string hashSHA256(const std::string& data);
|
||||
|
||||
std::string getFixedLengthID(const std::string& hash);
|
||||
|
||||
std::string deriveKey(const std::string& password, const std::string& hardwareID);
|
||||
|
||||
Reference in New Issue
Block a user