Пример #1
0
        static void Main(string[] args)
        {
            var localKeys  = KeyInfo.Generate();
            var remoteKeys = KeyInfo.Generate();

            var local  = new EncryptedEndpoint(localKeys);
            var remote = new EncryptedEndpoint(remoteKeys);

            local.Connect(remote);

            local.Send("This is a test");

            Console.ReadLine();
        }