A class to compute the MD5 hash of a sequence of bytes. More...
#include <Md5.hpp>
Public Member Functions | |
Md5Context () | |
Initialize a new MD5 context. | |
void | init () |
Re-initialize the MD5 context. | |
void | update (const void *buf, size_t length) |
Stream more bytes. | |
Md5Digest | getDigest () const |
Get the MD5 hash of the streamed bytes. | |
std::string | hexDigest () const |
Get the MD5 hash of the streamed bytes, in hex format, as is commonly used by programs like md5sum. |
A class to compute the MD5 hash of a sequence of bytes.
The idea is you stream bytes to Md5Context::update(const void*, size_t), then get the digest.
std::string cgatools::util::Md5Context::hexDigest | ( | ) | const |
Get the MD5 hash of the streamed bytes, in hex format, as is commonly used by programs like md5sum.