mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-07 13:57:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
#include "wincrypt.h"
|
||||
#include <string>
|
||||
class MD5Hasher
|
||||
{
|
||||
std::string result;
|
||||
HCRYPTPROV hProv;
|
||||
HCRYPTHASH hHash;
|
||||
public:
|
||||
MD5Hasher(void);
|
||||
~MD5Hasher(void);
|
||||
void addData(std::istream& data);
|
||||
void addData(const std::string& data);
|
||||
void addData(const char* data, size_t nBytes);
|
||||
const std::string& toString()
|
||||
{
|
||||
c_str();
|
||||
return result;
|
||||
}
|
||||
|
||||
const char* c_str();
|
||||
};
|
||||
Reference in New Issue
Block a user