STATION 25 / FIELD MANUAL
← Back to crypto libraryKey reuse
Analysis technique
Reusing the same additive key stream at the same positions lets two ciphertexts reveal a relationship between their plaintexts. If one message is known, the reused segment can decrypt the other.
When it is useful
Look for evidence that two messages use the same aligned pad, rather than simply having the same length. This is an analysis technique, not a way to encrypt. A shared password does not always imply identical key-stream positions.
Worked example: recover a second message
Use A=0. Message 1 is independently known to be CAT; its ciphertext is FOZ. Message 2 has ciphertext GCM. Both use the same three pad positions.
Known message 1 C A T = 2 0 19
Ciphertext 1 F O Z = 5 14 25
Recover pad: C1-P1 = 3 14 6 = DOG
Ciphertext 2 G C M = 6 2 12
Subtract pad - 3 14 6
Plaintext 2 (mod26) = 3 14 6 = DOG
- Subtract known CAT from FOZ to recover the pad DOG.
- Subtract that same pad from GCM. The middle value is 2−14=−12, which wraps to 14.
- Recover the second message: DOG.
Check and understand the cancellation
Adding pad DOG to plaintext DOG gives GCM, confirming the recovered message. Even without known plaintext, subtracting the ciphertexts cancels the shared key: C1−C2 = P1−P2 modulo 26. This exposes a relationship, not a unique plaintext solution by itself.
Limits and common mistakes
Do not subtract alphabetic strings as ordinary words or use XOR for this alphabetic-addition example. Match offsets carefully. A key segment recovered at one position cannot automatically decrypt different pad positions.
Related methods
- Additive pad — The underlying encryption and subtraction rules.
- Known plaintext — How an independently known message recovers aligned key material.
Useful desk reference
Alphabet positions — Use A=0 to subtract aligned additive key values.