Python web board system (textboard, CGI, flatfile) http://4x13.net/bbs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

13 lines
262 B

  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)