>>53418115
1. You can't have a trip starting with #.
2. Use this script:
#!/usr/bin/env python2
import crypt, sys, re, string, time
rep_map = [('&','&'), ('"','"'), ("'",'''), ('<','<'), ('>','>')]
def dot_rep(x):
o = ord(x)
if o < 46 or o > 122: # 46 = '.' 122 = 'z'
return '.'
else:
return x
def pass2trip(passwd):
passwd = passwd.decode("utf-8").encode("sjis")
for i in rep_map: passwd = passwd.replace(i[0], i[1])
return crypt.crypt(passwd, "".join(map(lambda x: '.' if (ord(x)<46 or ord(x)>122) else x, (passwd+"H..")[1:3])))[-10:]
if len(sys.argv) < 2:
print "Usage: %s pass" % sys.argv[0]
exit(0)
print pass2trip(sys.argv[1])