Skip to content

Instantly share code, notes, and snippets.

@yogeesh
Created March 28, 2014 12:56
Show Gist options
  • Save yogeesh/9832074 to your computer and use it in GitHub Desktop.
Save yogeesh/9832074 to your computer and use it in GitHub Desktop.
#IPU9ek (^) YKo! S
def xor(txt, msg):
for i in range(0,6):
print chr(ord(txt[i])^ord(msg[i]))
msg ="YKo! S"
txt= "IPU9ek"
xor(txt, msg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment