Name: Anonymous 2007-08-15 9:47 ID:rAGjFXj3
What's a good way to generate trip codes like 4chan uses? Taking the user IP as an argument.
substr(base64_encode(pack("H*",sha1($_SERVER[REMOTE_ADDR].date("d").SecureSalt()))), 1,8)SecureSalt returns the constant site-wide salt and . is the concatenation operator and not a method call because PHP is beautiful.