zoukankan      html  css  js  c++  java
  • MD5加密和SHA1加密

    引入命名空间using System.Web.Security;
    public string EncryptStr(string PWD, int Format)
            {
                string str = "";
                switch (Format)
                {
                    case 0:

                        str = FormsAuthentication.HashPasswordForStoringInConfigFile(PWD, "SHA1");
                        break;
                    case 1:
                        str = FormsAuthentication.HashPasswordForStoringInConfigFile(PWD, "MD5");
                        break;
                }
                return str;
            }

    这两种加密方式无解密方法,SHA1加密要更长一些

     
  • 相关阅读:
    UIScrollView
    xcode debug
    ios 开发小技巧
    xcode调试
    Objective-C的反射机制
    git 命令
    iOS block的一些理解
    iOS 开发常用宏
    iOS 常用函数
    转:支付宝系统架构(内部架构图)
  • 原文地址:https://www.cnblogs.com/paper/p/1535300.html
Copyright © 2011-2022 走看看