bookmarks of the day 06/09/2010
Posted by Toshi | | Posted On Jun 9, 2010 at 11:30 PM
MD5CryptoServiceProviderを利用して文字列をMD5でハッシュ化(暗号化)のC#関数 | DigiTechLog Dot Com
- public string md5EncodeString(string inputString)
- {
- // Encrypt this user’s password information.
- MD5 md5EncryptionObject = new MD5CryptoServiceProvider();
- Byte[] originalStringBytes = ASCIIEncoding.Default.GetBytes(inputString);
- Byte[] encodedStringBytes = md5EncryptionObject.ComputeHash(originalStringBytes);
- // Assign encrypted code as the user’s password.
- return BitConverter.ToString(encodedStringBytes);
- }
Posted from Diigo. The rest of my favorite links are here.