VHISTlib  1.84.0.3018
md5generator_example.cpp

This example shows how to generate a MD5 sum for a given chunk of data.

/* $HEADERS
 $Id: md5generator_example.cpp 2179 2011-06-24 09:03:24Z ahuesgen $
 */

#include <unvhistlib/md5generator.h>

// ...

// create a new MD5Generator.
vhist::MD5Generator md5;

// calculate md5sum incrementally
while (moreData())
{
    QByteArray bytes = readNextBytes();
    md5.update(bytes);
}

std::cout << "md5sum:" << md5.getHexDigest().toStdStr() << std::endl;


VHISTlib 1.84.0.3018 of Jun 28 2013, generated by doxygen.