Skip to content

Instantly share code, notes, and snippets.

@jezinka

jezinka/1.py Secret

Created June 28, 2017 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezinka/106b92b0834045ebccbf874de34855ac to your computer and use it in GitHub Desktop.
Save jezinka/106b92b0834045ebccbf874de34855ac to your computer and use it in GitHub Desktop.
import string
from numpy import roll
letters = string.lowercase
transition = ''.join(roll(list(letters), -2))
trans = string.maketrans(letters, transition)
text = "g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj."
print text.translate(trans)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment