Encryption and Security Homepage
Encryption Types
Set-Up Instructions
* S/MIME Set-up Information
* OpenPGP Set-up Information
- Advanced Settings
- Encrypting Webmail
- FAQ
Key Types
OpenPGP Command Line
How PGP Works
OpenPGP Links
File Verification
Anonymous Surfing
Downloads
The Mobility Project
How PGP / GnuPG Works
PGP and OpenPGP use the same method to encrypt email. When you create an email and encrypt it, OpenPGP encrypts (or scrambles) the content in a special way based on the public key of the recipient. The public key is uniquely mathematically related to the private key, so when the recipient recieves the email, they use their private key to decrypt (or unscramble) the text. Without the associated private key, it would not be possible for another person to decrypt the email sent to the recipient's public key. Contrary to popular legend on the internet, your own public key is not involved when encrypting an email to another user's public key. Your private key would only be used in this process if you signed the email in addition to encrypting it.
Contents of this page:
OpenPGP
PGP/MIME
OpenPGP
Here's a quick demonstration - an email I encrypted to myself:
Unencrypted
text:
"Hi. This is a quick demonstration of OpenPGP Encryption and how it
works."
Encrypted text:
-----BEGIN PGP MESSAGE-----
Charset: ISO-8859-1
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
hQEMA151kPhLHUvNAQf+I9sHISzDjwqMFlMIH7xy1l2aSaFuHFPZZN/Osyv7UkC0
JBnBR3kBqi+gzTXYlt7921EMBxkE1SjFPECWAjrm94kpH7W7GDM+5g6gqZ7sFbRk
zNqnviOlvxHG4Su4uqMLJpA32pDf8E2JH9/4vUJdgOox22RAgG2VE9CfFSt5gZVC
vBzCqG0YqMll5EkWDb6hEbgUJ0sve7iuNPFuJv072w4CAMQB/MDwmpWQ72iVr21o
3kBqMQB/MDwmpPECWAjrm94kpH7W7GDMvBzCqG0YqMll5EkWDb6hEbgUJ0s
w7tbQWIGRJyRTIK5JVfoqJ8El8DqhFsCX7oPSYehSfXB/puchyhG9QSPYP9vLzSs
wxd5rw+vDnGUw1GqdjvWClU6nH7GmJmsKavsYB5UGtKyAaWruStBqvQ2wtJskmEI
w7tbQWIGRJyRTIK5JVfoqJ8El8DqhFsCX7oPSYehSfXB/puchyhG9QSPYP9vLzSs
1CFH0/E9UKj97uZc4J2O/PBEFxhDSuFx5lSkjOUF+pPOV8boIDVvqiN2WyFo4PlP
1oMP8x48sR85XoDjcLAhDxfc94PYoiur5lxZZG07M7Kl7ivMD64UCPgYjY9yHEOw
aYuM+RMuGJKChVEMMhieBWcpLA==
=EBB/
-----END PGP MESSAGE-----
Unsigned text:
"Hi. This is a quick demonstration of OpenPGP Encryption and how it
works."
Signed text:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
?Hi. This is a quick demonstration of OpenPGP Encryption and how it
works.?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQEVAwUBQ621U151kPhLHUvNAQjj8ggAia1C+t8QqCrPZypn/ZRCU8BWtEhfTAS/
hE5KiCtapQfIzEaPXdbI+I39aCphROszw2f0aunsrKzBbVD8ufs/VQkSpRYBzIho
rjNGz5zy+30IUWLCCKBaiu4Mr0MpAE3P98lL2VQmVGgDxV5VLFkkBsvJIYAs8mkl
hGYFYFtfft655YFFfJO+okIHUU/UTTtytfgh65hdrRfj:OojihygfttyfDRVBVDK85rfbKLOO8
MqeEScjWyDKh20wgLfPw3oiOaKazKTgtDRIgs7lP8uTFsHGQXs3abANw4S3Je11B
rjNGz5zy+30IUWLCCKBaiu4Mr0MpAE3P98lL2VQmVGgDxV5VLFkkBsvJIYAs8mkl
29qJJ7NKD9BY9tpKF0ZCDXw8iSlqsHO/Xfe5zwAC1dF2Vqe84+Ywyw==
=zJBS
-----END PGP SIGNATURE-----
