public bool PasswordEqual(string password) { if (string.IsNullOrEmpty(password)) { return(false); } return(this.Password.Equals(EncryptionUtility.EncryptSHA1(password, this.Salt))); }
public void EncryptPassword() { this.Password = EncryptionUtility.EncryptSHA1(this.Password, this.Salt); }