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. | |
Class that contains routines to handle MD5 much easier
Definition at line 51 of file clsEasyMD5.cs.
|
|
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. |
|
|
Class constructor that inits all nesessary stuff and calculates the MD5 hash from a byte array.
// 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. |
|
|
Class constructor that inits all nesessary stuff and calculates the MD5 hash from a 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. |
|
|
Class constructor that inits all nesessary stuff and calculates the MD5 hash from a file.
// Code example CSharp_ClassLib.Cryptography.EasyMD5 m_oMD5 = new CSharp_ClassLib.Cryptography.EasyMD5("C:\\boot.ini");
Definition at line 141 of file clsEasyMD5.cs. |
|
|
Returns the current checksum.
// Code example Console.WriteLine("MD5 hash: " + m_oMD5.ChecksumString); Definition at line 179 of file clsEasyMD5.cs. |
|
|
Calculates the checksum of a string.
// Code example m_oMD5.ExpressionString = "Support Mono!"; Console.WriteLine("MD5 hash: " + m_oMD5.ChecksumString); Definition at line 220 of file clsEasyMD5.cs. |
|
|
Calculates the checksum from a file.
// Code example m_oMD5.Filename = "C:\\boot.ini"; Console.WriteLine("MD5 hash: " + m_oMD5.ChecksumString);
Definition at line 240 of file clsEasyMD5.cs. |
|
|
Calculates the checksum from a stream.
// Code example m_oMD5.Stream = m_oMemoryStream; Console.WriteLine("MD5 hash: " + m_oMD5.ChecksumString); Definition at line 267 of file clsEasyMD5.cs. |
1.4.1