Take the 2-minute tour ×
Information Security Stack Exchange is a question and answer site for Information security professionals. It's 100% free, no registration required.

In Pretty Good Privacy, it is said that Sender sends compressed message and encrypts the message with the private key of himself. And then Receiver will decrypt that message with the public key of the Sender.

So, my question is that Public key is known to everyone, so how it is secured?

share|improve this question
add comment

2 Answers

Sender sends compressed message and encrypts the message with the private key of himself and then Receiver will decrypt that message with the public key of the Sender.

This explanation of PGP's asymmetric encryption is completely wrong. In simple terms, to get a message to Receiver, Sender will encrypt it with the public key of Receiver ... and then Receiver will decrypt it with their own private key.

Detail:

  • When Sender wants to get an encrypted message to Receiver, a PGP program will symmetrically encrypt the message with a random session key and then for each intended recipient, a copy of that session key is encrypted with the recipient's public key.
  • Optionally, a copy of the session key is also encrypted with a simple passphrase.
  • The final PGP message encapsulates all that together (as well as signature information, potentially).
  • When Receiver gets the message, they must use their private key to decrypt it.
share|improve this answer
add comment
up vote 3 down vote accepted

So, In this scenario confidentiality do matters that's why in later scenario of Pretty Good Privacy,

Confidentiality is observed with one-time session key. So, Receiver decrypts the shared session key with the help of his private key. Then, uses this session key to encrypt the rest of the message. Then, matches the hash of the message with the digest created by the Sender.

Confidentiality with One-Time Session key

share|improve this answer
    
this should be the accepted answer. –  K1773R Dec 24 '12 at 22:23
    
Thanks for your answer –  Salman Dec 25 '12 at 13:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.