Skip to content

Instantly share code, notes, and snippets.

@foxiepaws
Created March 5, 2013 02:17
Show Gist options
  • Save foxiepaws/5087469 to your computer and use it in GitHub Desktop.
Save foxiepaws/5087469 to your computer and use it in GitHub Desktop.
def isValidAscii(a):
if (31 < a < 127):
return True
else:
return False
for x in range(32,127):
for y in range (32,127):
if (isValidAscii(x ^ y)):
print "x: '{}' y: '{}' xor: '{}'".format(chr(x), chr(y), chr(x ^ y))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment