Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
7-liner: easiest solution in Clear category for Atbash Cipher by przemyslaw.daniel
from string import ascii_lowercase as low, ascii_uppercase as up
ENCODE = {x: y for z in (low, up) for x, y in zip(z, z[::-1])}
def atbash(text: str) -> str:
return ''.join(ENCODE.get(c, c) for c in text)
Dec. 2, 2021
Comments: