示例#1
0
        public bool EqualPassword(string password)
        {
            var passwordDecrypt = RijndaelAlgorithm.Decrypt(this.password);

            return(passwordDecrypt.Equals(password));
        }
示例#2
0
 public User(string login, string password, UserRole role)
 {
     this.login    = login;
     this.role     = role;
     this.password = RijndaelAlgorithm.Encrypt(password);
 }