Where to start for Encryption/Decryption of files?
I am using PGP and thinking of using Bouncycastle jar to do a job.
-- Can anyone summarize what all are neccessary for encrypting and decrypting a Single File with bouncycastle or whatever technology you suggest?
-- Is digital signature and Encryption the same thing? for example if it means the file is encrypted does it mean the file is digitally signed or the file can be both digitally signed and then encrypted ?
Time is what we want the most, but what we use the worst. -- William Penn
A digital signature is not the same thing as encryption. I don't know of a way to summarize what you need in a post. One book that some folks recommend is Beginning Cryptography With Java by David Hook. The author is also the bouncycastle guy, so that book might be a good start. Another library you might look into is jasypt.
To pick up where this leaves off, I am stuck trying to implement a solution for our ERP system where I can store the PGP block of encoded key material in the DB, retrieve said key text, create a key from the text and use that key to encrypt data. The problem I am facing is that we won't be using a Key Ring file on the server and only want to work from the encoded key text.
I can not find any way to create a PGPPublicKey from the encoded key text. Can someone help me connect the dots? I've read Beginning Crypto and have worked with the BC examples, but everything I find always uses a Key ring file. There's got to be a way to do it, I just don't see it.
Thanks in advance for your help.
subject: PGP encryption / decryption and Bouncycastle.