cgatools::util::Md5Context Class Reference

A class to compute the MD5 hash of a sequence of bytes. More...

#include <Md5.hpp>

List of all members.

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.

Detailed Description

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.


Member Function Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated by  doxygen 1.6.2