Example #1
0
        public void SetPassword(string password)
        {
            //New salt
            _passwordSalt = Password.CreateRandomSalt();

            //intialise the password
            Password pwd = new Password(password, _passwordSalt);

            //generae and store the salted hash
            _passwordSaltedHash = pwd.ComputeSaltedHash();
        }