2006 Copyright Filed by IT GlobalSecure, Inc. All Rights Reserved. Not to be used without authorization by Author. SecurePlay, IT GlobalSecure, and IT Armor are registered trademarks by IT GlobalSecure, Inc. Software protected by software license, and one or more the following U.S. and International patent numbers: U.S. Patent 6,030,288, U.S. Patent 6,165,072, European Patent Office EP1016049A1,and World Intellectual Property Organization WO9912135C1 and additional filings worldwide.
Main Page | Class Hierarchy | Class List | Class Members

SecurePlayLibrary::MD5 Class Reference

#include <MD5.h>

List of all members.

Public Member Functions

 MD5 (string s)
 MD5 (vector< SPbyte > in)
 ~MD5 ()
void calc ()
vector< SPbyte > getHash ()
string getSHash ()


Detailed Description

This MD5 class was ported by IT GlobalSecure to C++ from Java, which was written by Harry Mantakos harry@meretrix.com Feel free to do whatever you like with this code. If you do modify or use this code in another application, I'd be interested in hearing from you! -------------------------------------------------------------------------- See http://www.cs.umd.edu/~harry/jotp/src/md.java Written for jotp, by Harry Mantakos harry@meretrix.com

Class for implementing md4 and md5 hash algorithms. There are constructors for prepping the hash algorithm (doing the padding, mainly) for a String or a SPbyte[], and an mdcalc() method for generating the hash. The results can be accessed as an int array by getregs(), or as a String of hex digits with toString().

Written for jotp, by Harry Mantakos harry@meretrix.com

Feel free to do whatever you like with this code. If you do modify or use this code in another application, I'd be interested in hearing from you!


Constructor & Destructor Documentation

MD5::MD5 string  s  ) 
 

Constructs MD5 from string.

MD5::MD5 vector< SPbyte >  in  ) 
 

Constrcuts MD5 from SPbyte array.

MD5::~MD5  ) 
 

Destructor.


Member Function Documentation

void MD5::calc  ) 
 

Calculates the hash or digests the hash.

vector< SPbyte > MD5::getHash  ) 
 

Returns the SPbyte array of the hash.

string MD5::getSHash  ) 
 

Returns the string of the hash.


The documentation for this class was generated from the following files: 2006 Copyright Filed by IT GlobalSecure, Inc. All Rights Reserved. Not to be used without authorization by Author. SecurePlay, IT GlobalSecure, and IT Armor are registered trademarks by IT GlobalSecure, Inc. Software protected by software license, and one or more the following U.S. and International patent numbers: U.S. Patent 6,030,288, U.S. Patent 6,165,072, European Patent Office EP1016049A1,and World Intellectual Property Organization WO9912135C1 and additional filings worldwide.