MD5加密

        public static string MD5Encrypt32(string password)
        {
            string pwd = "";
            MD5 md5 = MD5.Create();
            byte[] b = md5.ComputeHash(Encoding.UTF8.GetBytes(password));
            for (int i = 0; i < b.Length; i++)
            {
                pwd = pwd + b[i].ToString("X");
            }
            return pwd;
        }

 

posted @ 2021-05-02 13:20  算盘  阅读(28)  评论(0)    收藏  举报