public void SetPassword(string password) { var encrypterService = new EncryptService(); Salt = encrypterService.GenerateSalt(); HashedPassword = encrypterService.Compute(password, Salt); }