Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

WvMD5 Class Reference

#include <wvcrypto.h>

List of all members.

Public Methods

 WvMD5 (const WvString &string_to_hash)
 WvMD5 (FILE *file_to_hash)
 ~WvMD5 ()
 operator const unsigned char * () const
 operator const WvString () const
WvString md5_hash () const
 WvMD5 (const WvString &string_to_hash)
 WvMD5 (FILE *file_to_hash)
 ~WvMD5 ()
 operator const unsigned char * () const
 operator const WvString () const
WvString md5_hash () const

Private Attributes

unsigned char * md5_hash_value
unsigned char * md5_hash_value


Detailed Description

MD5 Hash of either a string or a File

Definition at line 132 of file crypto/wvcrypto.h.


Constructor & Destructor Documentation

WvMD5::WvMD5 const WvString   string_to_hash
 

Create the MD5 Hash of a String

Definition at line 322 of file wvcrypto.cc.

References WvString::cstr(), and md5_hash_value.

WvMD5::WvMD5 FILE *    file_to_hash
 

Create the MD5 Hash of a File

Definition at line 335 of file wvcrypto.cc.

References md5_hash_value.

WvMD5::~WvMD5  
 

Definition at line 355 of file wvcrypto.cc.

References md5_hash_value.

WvMD5::WvMD5 const WvString   string_to_hash
 

Create the MD5 Hash of a String

WvMD5::WvMD5 FILE *    file_to_hash
 

Create the MD5 Hash of a File

WvMD5::~WvMD5  
 


Member Function Documentation

WvString WvMD5::md5_hash   const
 

WvString WvMD5::md5_hash   const
 

Definition at line 360 of file wvcrypto.cc.

References WvString::append(), and md5_hash_value.

Referenced by operator const WvString().

WvMD5::operator const unsigned char *   const [inline]
 

MD5 seems to like unsigned char * for some reason, so make it easy to return that type (Probably only be usefull inside other crypto routines, but you never know ;)

Definition at line 154 of file include/wvcrypto.h.

References md5_hash_value.

WvMD5::operator const unsigned char *   const [inline]
 

MD5 seems to like unsigned char * for some reason, so make it easy to return that type (Probably only be usefull inside other crypto routines, but you never know ;)

Definition at line 154 of file crypto/wvcrypto.h.

References md5_hash_value.

WvMD5::operator const WvString   const [inline]
 

Sometimes we just want to easily get the text MD5 hash for whatever Type of object that we're constructing...

Definition at line 161 of file include/wvcrypto.h.

References md5_hash().

WvMD5::operator const WvString   const [inline]
 

Sometimes we just want to easily get the text MD5 hash for whatever Type of object that we're constructing...

Definition at line 161 of file crypto/wvcrypto.h.

References md5_hash().


Member Data Documentation

unsigned char* WvMD5::md5_hash_value [private]
 

Definition at line 134 of file include/wvcrypto.h.

unsigned char* WvMD5::md5_hash_value [private]
 

Definition at line 134 of file crypto/wvcrypto.h.

Referenced by md5_hash(), operator const unsigned char *(), WvMD5(), and ~WvMD5().


The documentation for this class was generated from the following files:
Generated on Sun Aug 25 12:42:57 2002 for WvStreams by doxygen1.2.15