Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
re & translate solution in Clear category for Caesar Cipher (decryptor) by flpo
import re
from string import ascii_lowercase as letters
clean = re.compile('[^a-z| ]')
def to_decrypt(cryptotext, delta):
shifted = letters[delta:] + letters[:delta]
return clean.sub('', cryptotext).translate(str.maketrans(letters, shifted))
March 21, 2018