Skip to content

Instantly share code, notes, and snippets.

@APIUM
Created September 4, 2016 17:03
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 APIUM/3be9b72632ff6b2710343116690d4ceb to your computer and use it in GitHub Desktop.
Save APIUM/3be9b72632ff6b2710343116690d4ceb to your computer and use it in GitHub Desktop.
plain = list('abcdefghijklmnopqrstuvwxyz .!@#$%^&*()_+|~,/<>?~|\'\:\=1234567890')
cipher = list('ZYXWVUTSRQPONMLKJIHGFEDCBA .!@#$%^&*()_+|~,/<>?~|\'\:\=1234567890')
answer = []
atBash = input('What do you want to encode? => ').lower()
for i in atBash:
index = plain.index(i)
answer.append(cipher[int(index)])
print(''.join(answer))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment