一些经常用到的方法

有关MD5:

 public string GetMD5(string pwd)
    {
        return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(pwd, "md5");
    }

传入一个字符串,返回一个加密后的字符字符串

posted @ 2012-07-20 14:48  cbwbin  阅读(132)  评论(0编辑  收藏  举报