note 21613 added to function.md5

From: Date: Tue, 21 May 2002 10:01:17 +0000
Subject: note 21613 added to function.md5
Groups: php.notes 
Request: Send a blank email to php-notes+get-30830@lists.php.net to get a copy of this message
Hi everybody, A way of partially securing your script so that a username/password combination is not visible immediatelly is to use the one-way-only encryption of md5. For example, using HTTP Authentication with PHP in this way: if ( md5($PHP_AUTH_USER) !='21232f297a57a5a743894a0e4a801fc5' || md5($PHP_AUTH_PW) !='f70d11f8ad83b6f913115426098d2712' ) { // force authentication ..... exit; } could help you to protect the actual username and password from a person that can read the PHP script. Calin Uioreanu php9 Weblog http://www.php9.com -- http://www.php.net/manual/en/function.md5.php http://master.php.net/manage/user-notes.php?action=edit+21613 http://master.php.net/manage/user-notes.php?action=delete+21613 http://master.php.net/manage/user-notes.php?action=reject+21613

« previous php.notes (#30830) next »