Re: password()

From: Date: Tue, 16 Jan 2001 02:31:31 +0000
Subject: Re: password()
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-34734@lists.php.net to get a copy of this message
> Im curious to see how other php developers store their passwd's I store it in the "universal include file" as $password["User"] = "Encrypted password"; Then when the user logs in: if (encryption_function($entered_password) == $password[$entered_username]) { Do this stuff } else{ echo("Please don't hack the llamas"); } I'm serious about that last bit: Anyone who types in a wrong password gets a "Please don't hack the llamas" message.

« previous php.general (#34734) next »