zoukankan
html css js c++ java
MD5加密与各种不同系统整合
Code
public
string
md5(
string
str,
int
code)
{
if
(code
==
16
)
//
16位MD5加密(取32位加密的9~25字符)
{
return
System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str,
"
MD5
"
).ToLower().Substring(
8
,
16
) ;
}
else
//
32位加密
{
return
System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str,
"
MD5
"
).ToLower();
}
}
查看全文
相关阅读:
软件测试学习随笔(1) 引言
集成测试
SPM-using Maven and Juint
验收测试
白盒测试学习
编码的UI测试
测试闰年
黑盒测试续
黑盒测试方法-等价类划分
对软件测试的理解
原文地址:https://www.cnblogs.com/xiongwei/p/1331921.html
最新文章
UIApplication
结构体struts的长度
Foundation框架-NSString和NSMutableString
OC-《购票系统》
OC-内存管理
OC-@property、self及类的本质
OC-hello, world
C语言-《通讯录》
C语言-指针
C语言-循环结构及break、continue
热门文章
C语言-自定义函数
C语言-两个库函数
C语言-Hello, world
软件测试学习随笔(8) 软件测试的阶段
软件测试学习随笔(7) 软件测试工程师
软件测试学习随笔(6) 白盒测试
软件测试学习随笔(5) 编码的UI测试
软件测试学习随笔(4) String转Int
软件测试学习随笔(3) 等价类划分之三个输入框
软件测试学习随笔(2) 等价类划分
Copyright © 2011-2022 走看看