liveBook · Manning

PGP

As explained in Real-World Cryptography

OpenPGP is an open standard for encrypting and signing messages and other data using public-key and symmetric cryptography.

PGP, or OpenPGP, encrypts and signs messages and other data with hybrid encryption. It emerged to give people control over email privacy, but email itself still exposes subjects and other headers. section 10.3 section 10.3.1

A simplified OpenPGP message flow looks like this:

  • Compress the email, generate a random symmetric key, and encrypt the content with that key. section 10.3.1
  • Encrypt the symmetric key separately with each recipient’s public key, then attach those encrypted keys to the encrypted message. section 10.3.1
  • Hash and sign the plaintext with the sender’s private key; include the sender’s public key so recipients can verify the signature. section 10.3.1
  • Treat key discovery as a separate trust problem: the web of trust lets users rely on signatures from people whose keys they already trust. section 10.3.2

The practical warning

Suppose Alice encrypts a message for Bob, and Bob re-encrypts it for Charles. Charles may believe Alice intended the message for him. A signature over the encrypted message can also be replaced by an interceptor’s signature, illustrating why composition and email-client integration matter. section 10.3.3

How Real-World Cryptography covers it

How deep it goes
Explains compression, hybrid encryption, signatures, trust, metadata, and practical failures, but not implementation-level details.
Examples
Uses encrypted email flows, Alice-Bob-Charles attack scenarios, key parties, public key registries, and social-network key discovery.
What it assumes
Assumes basic public-key, symmetric, hashing, signing, and email-protocol concepts while introducing PGP’s composition and trust model.
What you can do after
Evaluate PGP deployments and choose cautiously, recognizing exposed metadata, weak trust bootstrapping, outdated practices, and email-client vulnerabilities.
How it connects
Connects hybrid encryption, digital signatures, web of trust, SMTP, S/MIME, metadata, and end-to-end encryption.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Real-World Cryptography. The section links point to the parts of the book it draws on.