LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   create hashed passwords in PHP ? (http://www.linuxquestions.org/questions/programming-9/create-hashed-passwords-in-php-381817/)

ALInux 11-10-2005 12:28 PM

create hashed passwords in PHP ?
 
Hi Iam writing a script that allows to add users through a php webinterface.........anyhow everything went fine untill I had to proved the -p argument for the useradd command.........it must be hashed right ???
So I tried crypt and md5 in PHP to create the hashed password but nothing worked........I even tried using the "openssl passwd -crypt" through shell_exec() but it did not work either.........

In short is it possible to hash the password outside the linux box and then provide it ?????????
Any comments ??

ALInux 11-12-2005 08:45 AM

Ive solved this one if and the solution is in http://www.linuxquestions.org/questi...hreadid=381809


All times are GMT -5. The time now is 02:00 PM.