コード例 #1
0
ファイル: RSAPage.xaml.cs プロジェクト: Emilysta/E-media
 private void CreateNewKey()
 {
     RsaKey = new RSAKey();
     if (!RsaKey.ReadConfig("config.rsa"))
     {
         RsaKey = RSAKeyGenerator.GenerateKeyPair(1024);
     }
     ReadKeysFromFile();
 }
コード例 #2
0
ファイル: RSAPage.xaml.cs プロジェクト: Emilysta/E-media
 private void GenerateKey_Handler(object sender, System.Windows.RoutedEventArgs e)
 {
     RsaKey = RSAKeyGenerator.GenerateKeyPair(keyLengths[KeyLengthBox.SelectedIndex]);
     ReadKeysFromFile();
 }