Пример #1
0
        static void Main(string[] args)
        {
            var aes = new SimpleAES();

            var text           = "abc";
            var text_encrypted = aes.Encrypt(text);
            var text_decrypted = aes.Decrypt(text_encrypted);

            Console.WriteLine("Clear text: " + text);
            Console.WriteLine("Encrypted text: " + text_encrypted);
            Console.WriteLine("Decrypted text: " + text_decrypted);

            Console.ReadKey();
        }
Пример #2
0
        static void Main(string[] args)
        {
            var aes = new SimpleAES();

            var text = "abc";
            var text_encrypted = aes.Encrypt(text);
            var text_decrypted = aes.Decrypt(text_encrypted);

            Console.WriteLine("Clear text: " + text);
            Console.WriteLine("Encrypted text: " + text_encrypted);
            Console.WriteLine("Decrypted text: " + text_decrypted);

            Console.ReadKey();
        }