public bool EqualPassword(string password) { var passwordDecrypt = RijndaelAlgorithm.Decrypt(this.password); return(passwordDecrypt.Equals(password)); }
public User(string login, string password, UserRole role) { this.login = login; this.role = role; this.password = RijndaelAlgorithm.Encrypt(password); }