Exemple #1
0
 /// <summary>
 /// MD5
 /// </summary>
 /// <param name="password"></param>
 /// <returns></returns>
 public static string MD5EncryptPassword(string password)
 {
     return(TextEncrypt.MD5EncryptPassword(password, MD5ResultMode.Strong));
 }
Exemple #2
0
 /// <summary>
 /// 获取DES实际加密密码
 /// </summary>
 /// <param name="encryptKey">原密码密钥</param>
 /// <returns></returns>
 public static string GetPassword(string encryptKey)
 {
     return(TextEncrypt.GetPassword(encryptKey, 8));
 }
Exemple #3
0
 /// <summary>
 /// MD5
 /// </summary>
 /// <param name="password"></param>
 /// <returns></returns>
 public static string EncryptPassword(string password)
 {
     return(TextEncrypt.MD5EncryptPassword(password));
 }