Implementing "gpg --sign --encrypt" with BC Java API

View: New views
2 Messages — Rating Filter:   Alert me  

Implementing "gpg --sign --encrypt" with BC Java API

by Torben Putkonen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello!

I have to generate a signed and encrypted file that can be decrypted and verified successfully with command: "gpg --decrypt secret.txt"

Can this be done with BC Java APIs?

If yes, can anyone point me to documentation about how I can achieve this goal? So far I have only been able to sign a file and encrypt a file, but not both at the same time.

Re: Implementing "gpg --sign --encrypt" with BC Java API

by anon4321 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Yes, this can be done.

 

Here is a GNU like implementation using BC:

http://www.lockboxlabs.org/content/downloads

 

 


----- Original Message -----
From: "Torben Putkonen" <torben.putkonen@...>
To: dev-crypto@...
Sent: Monday, November 9, 2009 8:25:35 AM GMT -05:00 US/Canada Eastern
Subject: [dev-crypto] Implementing "gpg --sign --encrypt" with BC Java API

Hello!

I have to generate a signed and encrypted file that can be decrypted and verified successfully with command: "gpg --decrypt secret.txt"

Can this be done with BC Java APIs?

If yes, can anyone point me to documentation about how I can achieve this goal? So far I have only been able to sign a file and encrypt a file, but not both at the same time.