private void BtnGenerateKeys_Click(object sender, RoutedEventArgs e)
        {
            RSAmanual rsa = new RSAmanual();

            rsa.GenerateKeys();
            System.Windows.MessageBox.Show("Done");
        }
 private void BtnRSAmanualdec_Click(object sender, RoutedEventArgs e)
 {
     if (myFile == null)
     {
         System.Windows.MessageBox.Show("No file here", "Error");
     }
     else
     {
         byte[]    myFileDecrypted = null;
         RSAmanual rsa             = new RSAmanual();
         try
         {
             myFileDecrypted = rsa.DecryptMe(myFile, ReadData(myFile, 10, 13), pubKey.Text, privKey.Text);
             if (myFileDecrypted != null)
             {
                 SaveTheFile(myFileDecrypted);
             }
         }
         catch (Exception en)
         {
             System.Windows.MessageBox.Show(en.Message);
         }
     }
 }