note 20104 deleted from ref.exec by hholzgra
| From: | hholzgra@php.net | Date: | Sun, 30 Jul 2006 13:24:49 +0000 |
| Subject: | note 20104 deleted from ref.exec by hholzgra | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-115348@lists.php.net to get a copy of this message | ||
Note Submitter: alan_quill at hotmail dot com
----
Simple way to encrypt a password using htpasswd.exe.
$anyname="/path/htpasswd -nb $username $password";
$somename=exec($anyname);
eg.For windows
$command="c:\apache\bin\htpasswd.exe -nb $username $password";
$encrypt=exec($command);