Skip to content

Tag: bouncycastle

Get key and IV values using Bouncy castle

With the below code i am using to do get the parameters required for AES encryption: s_key is the file provided which contains the key that will be used to encrypt and decrypt How to segragate the Key and other parameters (IV and Salt) from ParametersWithIV and print to console?? Answer Passphrase and salt ca…

Bouncy Castle Java PGP encryption & decryption

I am trying to implement PGP encryption in Java using Bouncy Castle, also using some of the examples provided by them. But if I try and decrypt the message I just encrypted, it does not work. The keys and the decryption method seem to be ok, because I can encrypt using an external tool (link) and then success…