(05-22-2011 09:45 AM)ZiNgA BuRgA Wrote: ip2long doesn't encrypt or hash the IP, so yes, it's completely reversable.
Hashing functions would mainly be md5() and sha1(). As these are long, you may wish to truncate the hashes a bit. Be sure to add in a "salt" or static unquifier unknown to the user, otherwise these hashes will also be reversable.
Some sites just hide the last two octets of the IP address. That may also be a solution which may work a bit better with dynamic IPs, at the cost of being less unique.
Ok Thanks,
I'm going to do some more research on this issue. I know that what I want, has been done already, I just don't know How.
Here's my example:
Godlike Productions
The reason I like it so much is that is short and sweet, no 34 characters, weird characters, just straight sequential numbers.
Every user id is based upon a unique ip address so no 2 are alike, including registered members. It's a custom system obviously, I just love to duplicated.