密码加密

    static public class MD5Helper {
        static private MD5 md5 = new MD5CryptoServiceProvider();

        static public string ToHash(this string arg) {
            return BitConverter.ToString(md5.ComputeHash(Encoding.Default.GetBytes(arg)));
        }
    }

posted on 2008-03-18 11:52  cjfwu  阅读(287)  评论(0)    收藏  举报

导航