My Project
|
An MD% implementation. More...
#include <MD5.h>
Public Member Functions | |
MD5 () | |
Constructs a new MD5 object. | |
virtual | ~MD5 () |
Virtual Destructor. | |
void | feed (const unsigned char *data, int bytes) |
Use this function to feed the hash. More... | |
void | feed (const char *data) |
void | feed (const std::string &data) |
Use this function to feed the hash. More... | |
void | finalize () |
This function is used to finalize the hash operation. More... | |
const std::string | hex (bool bLowercase=true) |
Use this function to retrieve the hash value in hex. More... | |
const std::string | binary () |
Use this function to retrieve the raw binary hash. More... | |
void | reset () |
Use this function to reset the hash. | |
An MD% implementation.
This is an implementation of the Message Digest Algorithm as described in RFC 1321. The original code has been taken from an implementation by L. Peter Deutsch.
const std::string ParaEngine::MD5::binary | ( | ) |
Use this function to retrieve the raw binary hash.
void ParaEngine::MD5::feed | ( | const unsigned char * | data, |
int | bytes | ||
) |
Use this function to feed the hash.
data | The data to hash. |
bytes | The size of data in bytes. |
void ParaEngine::MD5::feed | ( | const std::string & | data | ) |
Use this function to feed the hash.
data | The data to hash. |
void ParaEngine::MD5::finalize | ( | ) |
const std::string ParaEngine::MD5::hex | ( | bool | bLowercase = true | ) |
Use this function to retrieve the hash value in hex.