Ejemplo n.º 1
0
 private static void Main()
 {
     PasswordSalt passwordSalt = new PasswordSalt();
     string value = passwordSalt.GenerateSaltValue().ToString(CultureInfo.InvariantCulture);
     string passwordHash = passwordSalt.HashPassword("password", value, _algo);
     Console.WriteLine("{0}", passwordHash);
 }
Ejemplo n.º 2
0
        private static void Main()
        {
            PasswordSalt passwordSalt = new PasswordSalt();
            string       value        = passwordSalt.GenerateSaltValue().ToString(CultureInfo.InvariantCulture);
            string       passwordHash = passwordSalt.HashPassword("password", value, _algo);

            Console.WriteLine("{0}", passwordHash);
        }