コード例 #1
0
 public bool PasswordEqual(string password)
 {
     if (string.IsNullOrEmpty(password))
     {
         return(false);
     }
     return(this.Password.Equals(EncryptionUtility.EncryptSHA1(password, this.Salt)));
 }
コード例 #2
0
 public void EncryptPassword()
 {
     this.Password = EncryptionUtility.EncryptSHA1(this.Password, this.Salt);
 }