Skip to content

Instantly share code, notes, and snippets.

Atbash is a simple substitution cipher possible with any known alphabet. It emerged around 500-600 BCE. It works by substituting the letters of an alphabet with another.

Assumptions

CONSTANT = 'abcdefghijklmnopqrstuvwxyz'

A random shuffle of the constant is the cipher.

Example cipher: zyxwvutsrqponmlkjihgfedcba