Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
x = 'asdashdghj skriptzly.github.io'
key = 'fox'
encrypt = ''
counter = 0
for i in x:
if i in '. ':
encrypt += i
else:
encrypt += chr((ord(i)+ord(key[counter%3])-194)%26 + 97)
counter += 1
print encrypt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment