View Single Post
Old 06-21-2002, 12:39 PM  
NitroPhil
Confirmed User
 
Join Date: Jun 2002
Location: Lightspeed Sorority
Posts: 103
If you're looking to verify a password against an encrypted password, this is the best way I've found to do it...

Use the crypt() function to encrypt the password submitted by the user with the already encrypted password as the salt. If the result is equal to the encrypted password, the password is correct. If it isn't, it's wrong.

Let me know if you need more info. Hope this helps.
__________________
<a href="http://www.lightspeedcash.com"> Make money at the speed of light!</a><br>
- Wouldn't it be cool to own a retarded monkey?
NitroPhil is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote