I looking for a way, specifically in PHP that I will be guaranteed to always get a unique key.
I have done the following:
strtolower(substr(crypt(tim
If you use your original method, but add the username or emailaddress in front of the password, it will always be unique if each user only can have 1 password.