Exemple #1
0
        private void printKeys()
        {
            XmlNodeList publicKey  = RSA.getPublicKey().GetElementsByTagName("Modulus");
            XmlNodeList privateKey = RSA.getPrivateKey().GetElementsByTagName("P");

            text_RSA_PRIVATE.Text = privateKey[0].InnerXml;

            text_RSA_public.Text = publicKey[0].InnerXml;

            richTextBox_3DES.Text  = BitConverter.ToString(tDESalg.get3DES().Key);
            richTextBoxVector.Text = BitConverter.ToString(tDESalg.get3DES().IV);
        }