/ THE IDEA
A bit is a stored digit, 0 or 1. A one-time pad combines each message bit with a corresponding bit from a secret random string called the key. The combining rule is exclusive-or, written XOR: matching bits produce 0 and different bits produce 1. Applying the same key again reverses the operation. If the key is uniformly random, secret, as long as the message and never reused, every possible message of that length is consistent with the ciphertext. The ciphertext does not shift the attacker’s prior probabilities among those messages. Merely giving the attacker a faster computer does not reveal which equally compatible key was used.
THE FORMAL IDEA
C = M XOR K
| C = ciphertext, the transmitted coded bits; M = message bits; K = secret key bits. | | XOR acts separately on corresponding positions. The example uses bit strings, so there are no physical units; equal-length strings are required. |
|
RUN THE TINY EXAMPLE
Change one thing. Predict what happens.
Message M = 1010 and key K = 0110 produce C = 1100. Change the proposed message to 0011 while holding C = 1100. A different possible key, 1111, also produces that ciphertext. Without information about the random key, the coded bits alone do not select between these candidates.
|
That ambiguity is the protection, not a search that happens to take a long time. Trying every possible key produces every possible message rather than a unique answer. Additional knowledge of the message can change the prior possibilities but does not make the ciphertext itself more informative.
/ SO WHAT?
Practical encryption usually expands a much shorter key into protection for substantial data. Its security therefore relies on carefully defined computational assumptions and correct use. That is an engineering bargain: manageable keys and efficient operation in exchange for a different kind of guarantee. The labels describe assumptions, not a ranking in which every information-theoretic design is automatically practical.
ONE CAVEAT |
| The one-time pad provides confidentiality, not automatic authentication. Reusing its key, using biased randomness or exposing the key breaks the stated argument; toy XOR arithmetic is not a recommendation to design encryption yourself. |
KEEP THIS
Ask whether a security claim removes information from the attacker’s view or makes extracting it computationally infeasible, and check the assumptions for that claim.
|
NEXT: How a material remembers an electrical direction
|