隐锋的BLOG
ASP,.net开发
10 2006 档案
汉字转拼音缩写
摘要:/// /// 汉字转拼音缩写 /// Code By MuseStudio@hotmail.com /// 2004-11-30 /// /// 要转换的汉字字符串 /// 拼音缩写 public string GetPYString(string str) { string tempStr = ""; foreach(char c in str) { if((int)c >= 33 && ... 阅读全文
posted @ 2006-10-31 15:59 糊涂隐锋 阅读(286) 评论(0) 推荐(0)
MD5使用
摘要:使用using System.Security.Cryptography进行md5加密;private string encrypt(string src) { MD5 md5 = new MD5CryptoServiceProvider(); byte[] dir = md5.ComputeHash(UTF8Encoding.UTF8.... 阅读全文
posted @ 2006-10-31 14:55 糊涂隐锋 阅读(384) 评论(0) 推荐(0)