Hi,
I want to encrypt and decrypt a text by using bouncy castle in PGP.I'm getting the following error in PGP decryption..
Quote:
org.bouncycastle.openpgp.PGPException: Exception decrypting key
java.security.InvalidKeyException: Illegal key size
Printable View
Hi,
I want to encrypt and decrypt a text by using bouncy castle in PGP.I'm getting the following error in PGP decryption..
Quote:
org.bouncycastle.openpgp.PGPException: Exception decrypting key
java.security.InvalidKeyException: Illegal key size
I don't know the specs for bouncy castle as I do encryption/decryption differently but from that exception it sounds like your encryption key length is too short, I usually use an md5 hash of something else for the key, usually you need at least 24 characters for a key, check out the api for bouncy castle
double posted here: http://www.java-forums.org/new-java/...ecryption.html
that one has more feedbacks.