elgamal

Getting GPG Decryption To Work In Java (Bouncy Castle)

泄露秘密 提交于 2019-11-27 21:26:30
let me start by saying I'm extremely new to all of this. What I am trying to do is to use gpg from within Java in order to decrypt an encrypted file. What I've done successfully: Had a colleague encrypt a file using my public key and his private key and successfully decrypted it. Went the other way Had another colleague try to decrypt a file that wasn't for him: fail (as expected) My key was generated like this... (gpg --version tells me I'm using 1.4.5 and I'm using Bouncy Castle 1.47) gpg --gen-ley Select option "DSA and Elgamal (default)" Fill in the other fields and generate a key. The

Getting GPG Decryption To Work In Java (Bouncy Castle)

戏子无情 提交于 2019-11-26 20:43:18
问题 let me start by saying I'm extremely new to all of this. What I am trying to do is to use gpg from within Java in order to decrypt an encrypted file. What I've done successfully: Had a colleague encrypt a file using my public key and his private key and successfully decrypted it. Went the other way Had another colleague try to decrypt a file that wasn't for him: fail (as expected) My key was generated like this... (gpg --version tells me I'm using 1.4.5 and I'm using Bouncy Castle 1.47) gpg -