gfwei
 1public string md5(string str,int code) 
 2
 3    if(code==16//16位MD5加密(取32位加密的9~25字符) 
 4    
 5        return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str,"MD5").ToLower().Substring(8,16) ; 
 6    }
  
 7    else//32位加密 
 8    
 9        return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str,"MD5").ToLower(); 
10    }
  
11}
 
12

分类:

技术点:

相关文章:

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