Skip to content
Infinitesimal Dynamics home
Notebook: 0 XP

Cryptography / Modern practice

Perfect Secrecy and the One-Time Pad

The one cipher that provably cannot be broken, and the steep price it demands.

3 min read · 1 sections · 1 checks

Contents 2 sections
  1. §1XOR with pure randomness
  2. ?Check yourself

By the end you can

  • Define perfect secrecy
  • Encrypt with a one-time pad
  • Explain why the key must be as long as the message

Helps to know: Substitution and Shift Ciphers

§1XOR with pure randomness

Combine each message bit with a fresh random key bit: c=m⊕kc = m \oplus k. Every ciphertext is equally likely for every message, so an eavesdropper learns nothing at all, whatever their computing power.

Check yourself

  1. Q1
    1011⊕0110=1011 \oplus 0110 =