A nonce is a number used once: a value you must never repeat under the same key. It sounds like bookkeeping, but it is load-bearing. Reuse a one-time-pad keystream on two messages and their XOR spills the secret: (m₁ ⊕ k) ⊕ (m₂ ⊕ k) = m₁ ⊕ m₂ — the key cancels, leaving a relation an attacker can unravel with no key at all. The same fatal reuse breaks stream ciphers, nonce-reuse in AES-GCM, and repeated k in ECDSA signatures (which leaked Sony’s PS3 key). This dart is the batch’s warning: the strongest cipher dies to a repeated number.
The demo enciphers two messages with the same key, then XORs the ciphertexts — the key vanishes and m₁⊕m₂ falls out: live demo
“A nonce is just a counter, no big deal.” — repeat one and the key cancels; the two-time pad has leaked secrets for a century. cited
A single repeated number and the key falls out of the math — the once in “used once” is the whole security. uniqueness
On the canonical compiler, two messages under key 42 give ciphertexts 103 and 114; their XOR is 21 — exactly m₁⊕m₂, no key needed: