21 lines
400 B
C
21 lines
400 B
C
|
|
#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);
|
|||
|
|
|