CSharp_ClassLib.Cryptography.EasyMD5 Class Reference

MD5 class. More...

List of all members.

Public Member Functions

 EasyMD5 ()
 Class constructor that inits all nesessary stuff.
 EasyMD5 (byte[] Expression)
 Class constructor that inits all nesessary stuff and calculates the MD5 hash from a byte array.
 EasyMD5 (System.IO.Stream stream)
 Class constructor that inits all nesessary stuff and calculates the MD5 hash from a stream.
 EasyMD5 (string filename)
 Class constructor that inits all nesessary stuff and calculates the MD5 hash from a file.
void Clear ()
 Clears the MD5 checksum var.

Properties

string ChecksumString
 Returns the current checksum.
string ExpressionString
 Calculates the checksum of a string.
string Filename
 Calculates the checksum from a file.
System.IO.Stream Stream
 Calculates the checksum from a stream.


Detailed Description

MD5 class.

Class that contains routines to handle MD5 much easier

Author:
generalpd
Version:
Revision
1.1
Date:
2005-04-18

Bug:
none

Todo:
none
Remarks:
Last changed by:
Author
generalpd
in revision
Revision
1.1
on
Date
2005/05/03 12:59:55
Note:
Log
clsEasyMD5.cs,v
Revision 1.1 2005/05/03 12:59:55 generalpd first import

Definition at line 51 of file clsEasyMD5.cs.


Constructor & Destructor Documentation

CSharp_ClassLib::Cryptography.EasyMD5::EasyMD5  ) 
 

Class constructor that inits all nesessary stuff.

  // Code example
 
  CSharp_ClassLib.Cryptography.EasyMD5 m_oMD5 = new CSharp_ClassLib.Cryptography.EasyMD5();

Definition at line 72 of file clsEasyMD5.cs.

CSharp_ClassLib::Cryptography.EasyMD5::EasyMD5 byte[]  Expression  ) 
 

Class constructor that inits all nesessary stuff and calculates the MD5 hash from a byte array.

Parameters:
Expression The expression
  // Code example
 
  byte[] m_bExpression = { 0, 1, 2, 3, 4 };
  CSharp_ClassLib.Cryptography.EasyMD5 m_oMD5 = new CSharp_ClassLib.Cryptography.EasyMD5(m_bExpression);

Definition at line 94 of file clsEasyMD5.cs.

CSharp_ClassLib::Cryptography.EasyMD5::EasyMD5 System.IO.Stream  stream  ) 
 

Class constructor that inits all nesessary stuff and calculates the MD5 hash from a stream.

Parameters:
stream The stream
  // Code example
 
  FileStream m_oFileStream = new FileStream("C:\\boot.ini", FileMode.Open);
  CSharp_ClassLib.Cryptography.EasyMD5 m_oMD5 = new CSharp_ClassLib.Cryptography.EasyMD5(m_oFileStream);

Definition at line 117 of file clsEasyMD5.cs.

CSharp_ClassLib::Cryptography.EasyMD5::EasyMD5 string  filename  ) 
 

Class constructor that inits all nesessary stuff and calculates the MD5 hash from a file.

Parameters:
filename The full path of the file
  // Code example
 
  CSharp_ClassLib.Cryptography.EasyMD5 m_oMD5 = new CSharp_ClassLib.Cryptography.EasyMD5("C:\\boot.ini");

Exceptions:
System.IO.FileNotFoundException File not found!

Definition at line 141 of file clsEasyMD5.cs.


Property Documentation

string CSharp_ClassLib::Cryptography.EasyMD5::ChecksumString [get]
 

Returns the current checksum.

Returns:
The checksum
  // Code example
 
  Console.WriteLine("MD5 hash: " + m_oMD5.ChecksumString);

Definition at line 179 of file clsEasyMD5.cs.

string CSharp_ClassLib::Cryptography.EasyMD5::ExpressionString [set]
 

Calculates the checksum of a string.

Parameters:
value The expression
  // Code example
 
  m_oMD5.ExpressionString = "Support Mono!";
  Console.WriteLine("MD5 hash: " + m_oMD5.ChecksumString);

Definition at line 220 of file clsEasyMD5.cs.

string CSharp_ClassLib::Cryptography.EasyMD5::Filename [set]
 

Calculates the checksum from a file.

Parameters:
value The full path of the file
  // Code example
 
  m_oMD5.Filename = "C:\\boot.ini";
  Console.WriteLine("MD5 hash: " + m_oMD5.ChecksumString);

Exceptions:
System.IO.FileNotFoundException File not found!

Definition at line 240 of file clsEasyMD5.cs.

string CSharp_ClassLib::Cryptography.EasyMD5::Stream [set]
 

Calculates the checksum from a stream.

Parameters:
value The stream instance
  // Code example
 
  m_oMD5.Stream = m_oMemoryStream;
  Console.WriteLine("MD5 hash: " + m_oMD5.ChecksumString);

Definition at line 267 of file clsEasyMD5.cs.


The documentation for this class was generated from the following file:
Generated on Thu Jun 2 08:41:50 2005 for C# ClassLib by  doxygen 1.4.1