The MD5 result type. More...
#include <Md5.hpp>
Public Member Functions | |
Md5Digest () | |
Create an Md5Digest with all 0's. | |
Md5Digest (const void *val) | |
Create an Md5Digest with the given value. | |
void | set (const void *val) |
Set the Md5Digest value. | |
const void * | data () const |
Get the Md5Digest binary value. It is 16 bytes. | |
size_t | size () const |
Get the length of the Md5Digest binary value. It is 16 bytes. | |
std::string | hex () const |
Get the hexadecimal string representation of the Md5Digest, as is commonly used by programs like md5sum. |
The MD5 result type.
cgatools::util::Md5Digest::Md5Digest | ( | const void * | val | ) |
Create an Md5Digest with the given value.
Here, val points to 16 bytes that are read by this function.
std::string cgatools::util::Md5Digest::hex | ( | ) | const |
Get the hexadecimal string representation of the Md5Digest, as is commonly used by programs like md5sum.
void cgatools::util::Md5Digest::set | ( | const void * | val | ) |
Set the Md5Digest value.
Here, val points to 16 bytes that are read by this function.