Cipher algorithms use the same key for both encryption and decryption (or one is easily derivable from the other). This requires both parties to agree on the secret key prior to sending the message, or for the encryption key to be sent (and be susceptible to be intercepted).
Pubkey algorithms use different keys for encryption and decryption, and allow free transfer of the public key to anyone that asks for it(no prior agreement needed).
Joined: Jul 17, 2008
Doesn't sounds perfect to me. Then how would you explain a scenario where combination of RSA/CAST5 is used?
Amandeep Singh wrote:you are right, I have to read more to get the concept. Currently I am more inclined to deliver the code.
Make sure that your public liability insurance is fully paid up.
Do you recommend any book or just reading the documentation is sufficient?
The documentation most definitely not sufficient. A forum is most definitely not the place to start your education. If you are serious about using cryptography in Java then a good starting point is "Beginning Cryptography with Java" by David Hook published by Wrox BUT BUT BUT it does not cover PGP. For PGP start with http://en.wikipedia.org/wiki/Pretty_Good_Privacy and follow your nose from there.
BTW the other user just confused me. Do you agree with my understanding, the one posted in starting of thread?
The other poster looks in essence to be right but his use of 'cipher' in his first sentence is misapplied and confusing. I think he meant to start with "Symmetric Cipher algorithms" but I can't read his mind.