Method | Description | |
---|---|---|
Base64_Decode ( string str ) : string |
base64解码
|
|
Base64_Encode ( string str ) : string |
base64编码
|
|
CheckPassword ( string password, string storedPassword, UserPasswordFormat passwordFormat ) : bool |
检查用户密码是否正确
|
|
EncodePassword ( string password, UserPasswordFormat passwordFormat ) : string |
对用户密码进行编码
|
|
MD5 ( string str ) : string |
标准MD5加密
|
|
MD5_16 ( string str ) : string |
16位的MD5加密
|
public static Base64_Decode ( string str ) : string | ||
str | string | 待解码的字符串 |
return | string |
public static Base64_Encode ( string str ) : string | ||
str | string | 待编码的字符串 |
return | string |
public static CheckPassword ( string password, string storedPassword, UserPasswordFormat passwordFormat ) : bool | ||
password | string | 用户录入的用户密码(尚未加密的密码) |
storedPassword | string | 数据库存储的密码(即加密过的密码) |
passwordFormat | UserPasswordFormat | 用户密码存储格式 |
return | bool |
public static EncodePassword ( string password, UserPasswordFormat passwordFormat ) : string | ||
password | string | 需要加密的用户密码 |
passwordFormat | UserPasswordFormat | 用户密码存储格式 |
return | string |
public static MD5 ( string str ) : string | ||
str | string | 待加密的字符串 |
return | string |
public static MD5_16 ( string str ) : string | ||
str | string | 待加密的字符串 |
return | string |