angel925jwb/
共32个网摘 [
1 2 ]
下一页 |
访问angel925jwb的个人空间
angel925jwb收录,时间:2008-7-11 20:42:56 | 相关网摘,我也收藏
发表于:2008-07-11 11:49:296楼 得分:0
C# code
static public string EncodePassword(string strInput, string strKey)
{
byte[] bytePassword = null;
string tmpPassword = strInput SecurityKey;
MD5 md5 = MD5.Create();
bytePassword = md5.ComputeHash(System.Text.Encoding.Unicode.GetBytes(tmpPassword));
// Releases all resources used by the System.Security.Cryptography.HashAlgorithm.
md5.Clear();
// 返回散列值的 Base64 编码字符串,长度24
return Convert.ToBase64String(bytePassword);
http://topic.csdn.net/u/20080708/11/af964c92-4803-4ef9-89e8-be21f9555956.html
共32个网摘 [
1 2 ]
下一页