[nullhaven]
All challenges
Crypto★★★★★350 pts

Same nonce, twice

Godmode · 1d ago · 1 solved

A service encrypts every message with AES-CTR and generates a fresh key per session, but it reuses the same nonce for every message inside that session. Two ciphertexts went out on the same channel.

The second plaintext is public: it was published in last quarter's newsletter, word for word.

Ciphertext 1 (the secret):
wasm
5a59a0d9d2a5622a61738c2d9692e26ab0d48f3232cbbe42f868f6543ebf

Ciphertext 2 (same length, same keystream):
wasm
6559adc7cea1662376288c2d9784fc50b6c59f336db4ab75f327ee562eae

Plaintext 2 (published):
yaml
Quarterly newsletter: the vaul

CTR turns a block cipher into a stream cipher, and a stream cipher reused twice is a one-time pad used twice. Recover plaintext 1.

Submitting a flag needs an account

That's what records your points and lets you claim the first blood under your name.

Free, no e-mail verification. You land back on this challenge.

Solved by · 1

  1. 1
    JE
    Jetboy01 First blood1d ago