示例#1
0
        public static void Main(string[] args)
        {
            Encrypted encrypted = new Encrypted();
            Decrypted decrypted = new Decrypted();
            Key       key       = new Key();

            key.AddKey();

            while (true)
            {
                ShowOptions();
                int choice = int.Parse(Console.ReadLine());

                switch (choice)
                {
                case 1:
                    decrypted.DecryptedText(ChoiceSearch.search);
                    break;

                case 2:
                    Console.Write("Введите наименование: ");
                    string tittle = Console.ReadLine();
                    Console.Write("\nВведите пароль: ");
                    string password = Console.ReadLine();
                    Console.Write("\nВведите наименование: ");
                    string description = Console.ReadLine();

                    encrypted.EncryptedText(tittle, password, description);
                    break;

                case 3:
                    decrypted.DecryptedText(ChoiceSearch.all);
                    break;

                case 4:
                    return;

                    break;

                default:
                    ShowOptionsError();
                    break;
                }
            }
        }