#include <mi32/md5hash.h>
Public Member Functions | |
| MD5HASH () | |
| ~MD5HASH () | |
| void | Append (const UINT8 *buffer, INT32 BufferSize) |
| void | Append (const MISTRING &string) |
| void | Append (const STRUTF8 &buffer) |
| void | Clear () |
| MISTRING | Finish () |
| void | Finish (unsigned char digest[16]) |
Static Public Member Functions | |
| static MISTRING | GenerateHash (const MISTRING &string) |
| static MISTRING | GenerateHash (const STRUTF8 &buffer) |
| MD5HASH::MD5HASH | ( | ) |
Default constructor.
| MD5HASH::~MD5HASH | ( | ) |
Destructor.
Append 'buffer' to the string to be hashed.
Call Finish() to get the hash value
| void MD5HASH::Append | ( | const MISTRING & | string | ) |
Append 'buffer' to the string to be hashed.
Converts to UTF8 first, then appends to the hash Call Finish() to get the hash value
| void MD5HASH::Append | ( | const STRUTF8 & | buffer | ) |
Append 'buffer' to the string to be hashed.
Call Finish() to get the hash value
| void MD5HASH::Clear | ( | ) |
Clear the hash.
| MISTRING MD5HASH::Finish | ( | ) |
Finish the hash.
Generate and return the hex representaion of the hash value This will call Clear() to reset the hash code
| void MD5HASH::Finish | ( | unsigned char | digest[16] | ) |
Finish the hash.
Generate and return the hash value from the appended data This will call Clear() to reset the hash code
Generate MD5 hash for STRUTF8 string passed in Converts 'string' to UTF8 before generating the hash.
Generate MD5 hash for STRUTF8 string passed in.
1.6.1