Skip to content

Instantly share code, notes, and snippets.

@chinmaydd
Created June 24, 2018 04:42
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 chinmaydd/a0563ac81a07ccaa389da3e6234b14d9 to your computer and use it in GitHub Desktop.
Save chinmaydd/a0563ac81a07ccaa389da3e6234b14d9 to your computer and use it in GitHub Desktop.
import re
a = [162, 202, 175, 179, 200, 169, 179, 156, 208, 168]
b = [215, 180, 172, 180, 180, 208, 205, 247, 221, 254]
c = [38, 99, 36, 125, 84, 56, 124, 97, 38, 74]
d = [129, 202, 182, 205, 151, 205, 212, 200, 155]
pat = re.compile('[0-9a-zA-Z_@!?-]')
for i in range(0, 255):
solved = True
for j in a:
if not bool(pat.match(chr(i^j))):
solved = False
break
if solved == True:
print i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment