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
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:
> > >
> > >
> > >
> > >
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
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
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
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
6 matches
Mail list logo