コード例 #1
0
ファイル: Host.cs プロジェクト: kaancelen/RSAExample
 /**Şifreleme için ciphertext objesini kullanan method**/
 public Ciphertext encryptToCiphertext(BigInteger plaintext, BigInteger targetPublicKey)
 {
     Ciphertext ciphertext = new Ciphertext(plaintext, targetPublicKey, FiN);
     return ciphertext;
 }
コード例 #2
0
ファイル: Host.cs プロジェクト: kaancelen/RSAExample
 /**Deşifreleme için ciphertext objesini kullanan method*/
 public BigInteger decryptFromCiphertext(Ciphertext ciphertext)
 {
     BigInteger plaintext = ciphertext.getPlainttext(privateKey);
     return plaintext;
 }