Skip to main content
gamedev.net
🔒 Locked

PHP Crypt Function

Started by Xtremehobo 1 reply 200+ views
Original Post
Xtremehobo
Xtremehobo
Im tryin to use php''s Crypt() function to encode a password, buttt each time I encode it, the output of crypt changes.. is it suppose to do this (does crypt somehow use timestamps to encrypt input)? Thanks
pixelwrench.com | [email="matt[nospam]@pixelwrench[nospam]com"]email[/email] lethalhamster: gamedev keeps taking my money, but im too lazy to not let them
Sneftel
Sneftel
RTFM. In particular, look at the "salt" argument to crypt().


How appropriate. You fight like a cow.
Xtremehobo
Xtremehobo
heh, I wasn''t using the salt argument.. I guess it randomly generates one if its not specified Thanks
pixelwrench.com | [email="matt[nospam]@pixelwrench[nospam]com"]email[/email] lethalhamster: gamedev keeps taking my money, but im too lazy to not let them

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.