A good friend has been trolling me recently with a CTF-style treasure hunt, and some of the clues have been obscured behind classic shift ciphers. This has given me a chance to play with some of my favourite combinators from lens, as well as mess around with finite-typelits, which I’ve wanted to do for some time. The implementation of the ciphers turned out to be quite elegant, so I thought I’d write them up.