/ Published in: C#

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public static byte[] encryptData(string data) { System.Security.Cryptography.MD5CryptoServiceProvider md5Hasher = new System.Security.Cryptography.MD5CryptoServiceProvider(); byte[] hashedBytes; hashedBytes = md5Hasher.ComputeHash(encoder.GetBytes(data)); return hashedBytes; }
Comments
