Exemplo n.º 1
0
        //Set a new password, and generates a new associated salt
        public void SetNewPassword(string password)
        {
            ISecurity security = new SecurityProvider();

            var newSalt = security.GenerateSalt();
            var newHash = security.HashToString(password, newSalt);

            Salt = newSalt;
            Hash = newHash;
        }