Professional Documents
Culture Documents
https://medium.freecodecamp.org/how-does-pretty-good-privacy-work-3f5f75ecea97 1/5
5/13/2018 How Pretty Good Privacy works, and how you can use it for secure communication
You might also hear a lot about GPG. It is another software tool that
implements the OpenPGP standard.
A thief can easily steal the box and look at the paper that contains your
credit card information. What could you do instead?
You decide to put a key lock on the box, but you realize that you have to
send the key along with the box. That’s no good.
What if you meet your friend in person to share the key beforehand?
That could work, right? It could, but then both of you have a key that
allows to unlock the box. You, as the sender, will never need to open
the box again after closing it. By keeping a copy of a key that can unlock
the box, you are creating a vulnerability.
Finally, you found just the right solution: you’ll have two keys. The rst
key will only be able to lock the box. The second key will only be able to
open the box. That way, only the person who needs to get the content
of the box has the key that allows them to unlock it.
This is how PGP works. You have a public key (to lock/encrypt the
message) and a private key (to unlock/decrypt the message). You
would send the public key to all your friends so that they can encrypt
sensitive messages that they want to send to you. Once you receive an
encrypted message, you use your private key to decrypt it.
https://medium.freecodecamp.org/how-does-pretty-good-privacy-work-3f5f75ecea97 2/5
5/13/2018 How Pretty Good Privacy works, and how you can use it for secure communication
A Brief Example
There are plenty of software tools that implement the OpenPGP
standard. They all have di erent ways of setting up PGP encryption.
One particular tool that works very well is Apple Mail.
If you are using a Mac computer, you can download the GPGTools. This
application will generate and manage your public and private keys. It
also integrates automatically with Apple Mail.
Once the keys are generated, you will see a lock icon in the subject line,
when composing a new message in Apple Mail. This means that the
message will be encrypted with the public key you’ve generated.
https://medium.freecodecamp.org/how-does-pretty-good-privacy-work-3f5f75ecea97 3/5
5/13/2018 How Pretty Good Privacy works, and how you can use it for secure communication
After sending the e-mail to someone, it will look like this. They will not
be able to see the content of the e-mail until they decrypt it using the
private key.
Note that PGP encryption does not encrypt the subject line of an e-
mail. Never put any sensitive information in the subject line.
https://medium.freecodecamp.org/how-does-pretty-good-privacy-work-3f5f75ecea97 4/5
5/13/2018 How Pretty Good Privacy works, and how you can use it for secure communication
!" #$% &'( %)*+, )$"-.&'( -/&- &%-$0&-*1&22# 3(1'#4-) -/( 0())&,( %)*+,
#$%' 4'*5&-( 6(#7 2*6( 8442( 9&*27 *- .*22 2$$6 )$0(-/*+, 2*6( -/*):
In summary…
• Pretty Good Privacy (PGP) allows you to send bles and messages
securely over the Internet
• You can bnd a brief list of software that have PGP capability here
https://medium.freecodecamp.org/how-does-pretty-good-privacy-work-3f5f75ecea97 5/5