Re: MD5-crypting a Linux password with PHP

From: Date: Mon, 18 Sep 2000 19:31:17 +0000
Subject: Re: MD5-crypting a Linux password with PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-17180@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The password "rangers" got encrypted to: $1$gfEGscs6$rITR2gmXXkOzQvDOFF3Mw0 >From what I can figure out, the salt is $1$gfEGscs6$ Here's the php code I wrote: <? $password = "rangers"; $crypted = crypt($password,"$1$gfEGscs6$"); print "The md5 password is $crypted\n"; ?> And the output was: The md5 password is $1$$9LGDSusC2t4RUixtEPkUA0 HTH! - --Wade On Mon, 18 Sep 2000, Teodor Cimpoesu wrote: > Hi H.! > On Mon, 18 Sep 2000, H. Wade Minter wrote: > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Greets, > > > > I'm trying to use a PHP webform for our internal users to set/change their > > Linux system passwords (stored in LDAP). However, I'm running into a wall > > in getting the crypt() or md5() function to return a string that would be > > a valid Linux password. > > > > Does anyone have any pointers? > erm, here is one : NULL. ;) > Maybe you can show us some code, and detail a bit how did you find out > it was not a valid Linux password? > > -- teodor > > - -- H. Wade Minter | NeTraverse, Inc. System Administrator | minter@netraverse.com "Man, if you gotta ask you'll never know." --Louis Armstrong, upon being asked 'What is jazz?' -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.2 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE5xm2GX5y4ZKLK2pMRAqvPAJkBX0HofprN6p6Modn8ZgSCQGdLeACeNzmX JWP64VjG4dizgYqrmcI6FjY= =2sFs -----END PGP SIGNATURE-----

« previous php.general (#17180) next »