Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Single Pass Signing and Encrypting with Bouncy Castle

843811Feb 22 2008 — edited Feb 22 2008
I am trying to use the Bouncy Castle API to sign a file with my private key and encrypt with a recipients public key.

I am able to do this in two steps...

1. Sign
2. Encrypt

But I need to be able to do this in ONE step. The example file I was sent both decrypts and verifies the signature with a decrypt command.

I can get it to work with gnuPG using the command "gpg -se -r <recipient> fileName", but I would like to stick with using Java libraries if possible.

Does anyone have any suggestions?

Thanks,

Bryan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 21 2008
Added on Feb 22 2008
1 comment
437 views