almmm
/// <summary>
        /// MD5加密字符串(32位大写)
        /// </summary>
        /// <param name="source">源字符串</param>
        /// <returns>加密后的字符串</returns>
        public static string MD5(string source)
        {
            MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
            byte[] bytes = Encoding.UTF8.GetBytes(source);
            string result = BitConverter.ToString(md5.ComputeHash(bytes));
            return result.Replace("-", "");
        }

  

分类:

技术点:

相关文章:

  • 2021-12-31
  • 2021-10-25
  • 2022-01-07
  • 2022-01-07
  • 2022-01-16
  • 2022-01-07
  • 2022-01-07
  • 2022-01-07
猜你喜欢
  • 2022-12-23
  • 2021-06-12
  • 2022-01-07
  • 2022-01-07
  • 2022-01-07
  • 2022-01-07
  • 2022-01-07
相关资源
相似解决方案