tripcode.py3 262 B

12345678910111213
  1. #!/usr/bin/env python3
  2. import crypt
  3. def mktripcode(pw):
  4. pw = pw[:8]
  5. salt = (pw + "H.")[1:3]
  6. trip = crypt.crypt(pw, salt)
  7. print(name, "!" + trip[-10:])
  8. name = input("What's your name?\n")
  9. pazz = input("What's your tripkey?\n#")
  10. mktripcode(pazz)