[PHP] md5 crypt question

2001-07-17 Thread Jeremy Hansen
I'd like to use php to do what I'm able to do in perl. use String::Random; use Crypt::PasswdMD5; $foo = new String::Random; $rand = $foo->randpattern("ss"); print "Type in your password: "; $password = ; $hash = unix_md5_crypt($password,$rand); $salt = substr($hash,3,2); print "SUBSTR: $s

Re: [PHP] md5 crypt question

2001-07-17 Thread Jeremy Hansen
tp://php.net/manual/en/ref.mhash.php > depending on what kind of functionality you need. my guess is that > crypt() would be suitable for you if it worked properly. > > -tcl. > > > On Tue, 17 Jul 2001, Jeremy Hansen wrote: > > > > > I'd like to use php to do

Re: [PHP] md5 crypt question

2001-07-17 Thread Jeremy Hansen
thing, and the system it was compiled on didn't support md5, then > it won't work. This I built from source. Hmm, if it uses system crpyt() then would using mcrypt libs help with this? I'll try the above. -jeremy > -tcl. > > > On Tue, 17 Jul 2001, Jeremy Hansen wro

Re: [PHP] md5 crypt question

2001-07-17 Thread Jeremy Hansen
hp on the system it's running on? if you used a binary rpm > or something, and the system it was compiled on didn't support md5, then > it won't work. > > -tcl. > > > On Tue, 17 Jul 2001, Jeremy Hansen wrote: > > > > > Well, I'm assuming, per

Re: [PHP] md5 crypt question

2001-07-17 Thread Jeremy Hansen
On Tue, 17 Jul 2001, tc lewis wrote: > > On Tue, 17 Jul 2001, Jeremy Hansen wrote: > > On Tue, 17 Jul 2001, tc lewis wrote: > > > try: > > > > > > > > > > > > or: > > > > > > > > > > > >

Re: [PHP] md5 crypt question

2001-07-18 Thread Jeremy Hansen
ostgres and md5 hashes wasn't working when just inserting hashes generated with Crypt::PasswdMD5. Php and openssl passwd -1 generate the correct system hashes. Everything is good. -jeremy On Tue, 17 Jul 2001, tc lewis wrote: > > On Tue, 17 Jul 2001, Jeremy Hansen wrote: > > On