Ejemplo n.º 1
0
 /// <summary>Start CryptobyClient class and run User Interface in core object</summary>
 /// <param name="args">no arguments yet</param>
 public static void Main(string[] args)
 {
     CryptobyClient client = new CryptobyClient();
     System.Console.Out.WriteLine("Fork me on Github: https://github.com/Reesli/Cryptoby/fork"
         );
     client.getCore().getUi().run();
 }
Ejemplo n.º 2
0
        /// <summary>Start CryptobyClient class and run User Interface in core object</summary>
        /// <param name="args">no arguments yet</param>
        public static void Main(string[] args)
        {
            CryptobyClient client = new CryptobyClient();

            System.Console.Out.WriteLine("Fork me on Github: https://github.com/Reesli/Cryptoby/fork"
                                         );
            client.getCore().getUi().run();
        }
Ejemplo n.º 3
0
 public virtual void testGenPrivatePublicKey2048()
 {
     for (int i = 0; i < rounds; i++)
     {
         System.Console.Out.WriteLine("genKey2048bit");
         int            keySize  = 2048;
         CryptobyClient client   = new CryptobyClient();
         CryptobyCore   core     = new CryptobyCore(client);
         KeyGenRSA      instance = new KeyGenRSA(core);
         instance.initGenerator(keySize);
         string resultPriv = instance.getPrivateKey();
         string resultPub  = instance.getPublicKey();
         byte[] publicKey  = CryptobyHelper.hexStringToBytes(resultPub);
         byte[] privateKey = CryptobyHelper.hexStringToBytes(resultPriv);
         NUnit.Framework.Assert.IsTrue(publicKey.Length == 256);
         NUnit.Framework.Assert.IsTrue(privateKey.Length == 512);
     }
 }