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):
Ciphertext 2 (same length, same keystream):
Plaintext 2 (published):
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.
The second plaintext is public: it was published in last quarter's newsletter, word for word.
Ciphertext 1 (the secret):
wasm
5a59a0d9d2a5622a61738c2d9692e26ab0d48f3232cbbe42f868f6543ebfCiphertext 2 (same length, same keystream):
wasm
6559adc7cea1662376288c2d9784fc50b6c59f336db4ab75f327ee562eaePlaintext 2 (published):
yaml
Quarterly newsletter: the vaulCTR turns a block cipher into a stream cipher, and a stream cipher reused twice is a one-time pad used twice. Recover plaintext 1.