Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

MD5 Class Reference

An MD% implementation. More...

#include <md5.h>

List of all members.

Public Member Functions

 MD5 ()
virtual ~MD5 ()
void feed (const unsigned char *data, int bytes)
void feed (const std::string &data)
void finalize ()
const std::string hex ()
const std::string binary ()
void reset ()


Detailed Description

An MD% implementation.

This is an implementation of the Message Digest Algorithm as decribed in RFC 1321. The original code has been taken from an implementation by L. Peter Deutsch.

Author:
Jakob Schroeter <js@camaya.net>
Since:
0.9

Definition at line 69 of file md5.h.


Constructor & Destructor Documentation

MD5  ) 
 

Constructs a new MD5 object.

Definition at line 163 of file md5.cpp.

~MD5  )  [virtual]
 

Virtual Destructor.

Definition at line 169 of file md5.cpp.


Member Function Documentation

const std::string binary  ) 
 

Use this function to retrieve the raw binary hash.

Returns:
The raw binary hash.

Definition at line 444 of file md5.cpp.

void feed const std::string &  data  ) 
 

Use this function to feed the hash.

Parameters:
data The data to hash.

Definition at line 368 of file md5.cpp.

void feed const unsigned char *  data,
int  bytes
 

Use this function to feed the hash.

Parameters:
data The data to hash.
bytes The size of data in bytes.

Definition at line 373 of file md5.cpp.

void finalize  ) 
 

This function is used to finalize the hash operation. Use it after the last feed() and before calling hex().

Definition at line 411 of file md5.cpp.

const std::string hex  ) 
 

Use this function to retrieve the hash value in hex.

Returns:
The hash in hex notation.

Definition at line 431 of file md5.cpp.

void reset  ) 
 

Use this function to reset the hash.

Definition at line 456 of file md5.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Apr 22 15:10:14 2008 for gloox by  doxygen 1.4.1