My Project
Classes | Public Member Functions | List of all members
ParaEngine::MD5 Class Reference

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.
 

Detailed Description

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.

Author
based on Jakob Schroeter's work

Member Function Documentation

§ binary()

const std::string ParaEngine::MD5::binary ( )

Use this function to retrieve the raw binary hash.

Returns
The raw binary hash.

§ feed() [1/2]

void ParaEngine::MD5::feed ( const unsigned char *  data,
int  bytes 
)

Use this function to feed the hash.

Parameters
dataThe data to hash.
bytesThe size of data in bytes.

§ feed() [2/2]

void ParaEngine::MD5::feed ( const std::string &  data)

Use this function to feed the hash.

Parameters
dataThe data to hash.

§ finalize()

void ParaEngine::MD5::finalize ( )

This function is used to finalize the hash operation.

Use it after the last feed() and before calling hex().

§ hex()

const std::string ParaEngine::MD5::hex ( bool  bLowercase = true)

Use this function to retrieve the hash value in hex.

Returns
The hash in hex notation.

The documentation for this class was generated from the following files: