Exemple #1
0
 public static string GetEncrypt(string str)
 {
     return(DESEncrypt.Encrypt(str));
 }
Exemple #2
0
 public static bool ChanagePass(string account, string password)
 {
     return(DAL.SysAccount.ChanagePass(account, DESEncrypt.Encrypt(password)));
 }
Exemple #3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public static bool Add(SMS.Model.SysAccount account)
 {
     account.PassWord = DESEncrypt.Encrypt(account.PassWord);
     return(DAL.SysAccount.Add(account));
 }