Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     CipherComp cc = new CipherComp();
     string text = "This is a test";
     string ciphertext = cc.Encode(text);
     Console.WriteLine(ciphertext);
     string plaintext = cc.Decode(ciphertext);
     Console.WriteLine(plaintext);
     cc.Dispose();
     Console.Read();
 }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            CipherComp cc = new CipherComp();
            string text = "Testing";
            string ciphertext = cc.Encode(text);
            Console.WriteLine(ciphertext);

            string plaintext = cc.Decode(ciphertext);
            Console.WriteLine(plaintext);
            text = "Components are powerful";
            ciphertext = cc.Encode(text);
            Console.WriteLine(ciphertext);
            plaintext = cc.Decode(ciphertext);
            Console.WriteLine(plaintext);
            cc.Dispose();
            Console.Read();
        }