I mean, crypt()’s return is always different.
So how do websites like 4chan do to give a permanent tripcode to a password?
Are they stored in a database?
I mean, crypt()’s return is always different. So how do websites like 4chan do
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You pass the salt to
crypt()as the second argument. This causes the output to use that salt instead of generating one on the fly.The salt being randomly generated is why
crypt("something")returns different results each time. If I runcrypt("something", "ab"), it’ll be identical every time. I don’t have PHP here to check what the value is, though.Wikipedia has an article about Tripcodes.