- 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;
- }
No comments:
Post a Comment