Solving Classical and Homebrew Ciphers
Most CTF cipher challenges come down to a few ideas: modular arithmetic, substitution with a repeating key, reused XOR keystreams, and historical machines. This post covers how I identify which one I’m facing, then works through four challenges from the bi0s DD CTF: a modulo ‘hash’ that can be inverted, an Enigma message, a broken AES-CTR implementation, and a Vigenère cipher with an extended alphabet.