C# Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

C# Examples

Bounced Mail
Bz2
Character Encoding
CSV
DKIM / DomainKey
Digital Certificates
Digital Signatures
Email
Email Object
FTP
HTML Conversion
HTTP
IMAP
Encryption
MHT / HTML Email
MIME
POP3
RSA
S/MIME
SMTP
Socket
Spider
SSH
SSH Tunnel
SSH Key
SFTP
Tar Archive
Upload
XML
XMP
Zip Compression


More Examples...
Amazon S3
NTLM
FileAccess
RSS
Atom
String
Byte Array
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA
Bzip2
LZW

 

 

 

 

 

 

Create an MD5 Hash

Download: Chilkat .NET Assemblies

Simple C# example source code to create an MD5 hash.

NOTE: This example uses the Chilkat.Crypt class, not Chilkat.Crypt2

// C# sample code to create an MD5 hash.
private void HashMD5_Click(object sender, System.EventArgs e)
{
	Chilkat.Crypt crypt = new Chilkat.Crypt();
	crypt.UnlockComponent("TempCode");

	// Generate some byte data.
	byte[] inData = new byte[1000];
	int i;
	for (i=0; i<1000; i++)
	{
		inData[i] = Convert.ToByte(i % 255);
	}

	// Create an MD5 hash.
	byte[] hash = crypt.DigestMD5(inData);

	// We cannot display binary data, so convert it
	// to Base64 and display.
	textBox1.Text = crypt.EncodeBase64(hash);
}

 

 

 

© 2000-2012 Chilkat Software, Inc. All Rights Reserved.

Email Component · XML Parser