aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities/Tango.HashGenerator/Program.cs
blob: 7eb6e88b9b90660800dd3cb8b75f9dc8811ab12c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.Cryptography;

namespace Tango.HashGenerator
{
    class Program
    {
        static void Main(string[] args)
        {
            while (true)
            {
                Console.Write("Enter password to hash: ");
                String password = Console.ReadLine();

                if (password.ToLower() == "exit") return;

                IHashGenerator hash = new BasicHashGenerator();

                Console.WriteLine();
                Console.WriteLine("Hash generated: " + hash.Encrypt(password));
            }
        }
    }
}