// 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); }