zoukankan      html  css  js  c++  java
  • MD5 加密的两种方法

    System.Security.Cryptography.MD5CryptoServiceProvider md5 = new System.Security.Cryptography.MD5CryptoServiceProvider();
                Random ra = new Random();
                var rr= ra.Next(1,100000);
                byte[] test = System.Text.Encoding.UTF8.GetBytes(rr.ToString());
                Console.WriteLine(rr);
                byte[] output = md5.ComputeHash(test);

                Console.WriteLine("md5-1:" + BitConverter.ToString(output).Replace("-",""));
                Console.WriteLine("md5-2:" + FormsAuthentication.HashPasswordForStoringInConfigFile(rr.ToString(), "MD5"));

    原文链接:http://www.cnblogs.com/william-lin/p/4663488.html

  • 相关阅读:
    gin内置验证器使用
    model
    work,工作模式
    orm框架
    simple模式下rabbitmq的代码
    rabbitmq介绍
    订阅模式
    路由模式
    redis五大数据类型
    Go操作redis
  • 原文地址:https://www.cnblogs.com/wancong/p/7380257.html
Copyright © 2011-2022 走看看