将字符串进行MD5加密,返回加密后的字符串。从这里下载Md5.cs文件,添加到Windows Phone 7项目中,在代码里面这样调用:web
string str =
"
password123
";
string md5str = JeffWilcox.Utilities.Silverlight.MD5.GetMd5String(str); MessageBox.Show(md5str);
参考:http://www.jeff.wilcox.name/2008/03/silverlight-2-md5/ ide 本地下载 Md5.cs 文件:silverlight_md5.zip测试 在线测试MD5:http://www.cmd5.com/ 博客:http://bobli.cnblogs.com/ 日期:2012年6月26日spa |