コード例 #1
0
ファイル: Program.cs プロジェクト: mjgriftz/Encryption
        static void Main(string[] args)
        {
            Console.WriteLine("Select an option:");
            Console.WriteLine("1. Create your own key");
            Console.WriteLine("2. Randomly generate key");

            Console.WriteLine("Enter your choice: ");
            int  input  = Console.Read();
            char choice = Convert.ToChar(input);

            switch (choice)
            {
            case '1':
                Console.Write("Type in your key: ", Console.ReadLine());
                string key = Key.createKey(Console.ReadLine());
                Console.Write("Write your key pass: "******"hash: " + hash);

                Key.Verify(key, keyPass);
                Console.Write("HashCheck Type your password: "******"Write your key pass: "******"2dskfsdkl";
                demo.DemoMain();
                break;
            }
            Console.ReadKey();
        }