php-general | 2001032

Re: [PHP] hash suggestions wanted From: Yasuo Ohgaki (yohgaki <email protected>)
Date: 03/31/01

If you need shorter result, how about use a part of md5 hash result?

--
Yasuo Ohgaki

""David P. Schwartz"" <davids <email protected>> wrote in message news:3AC4E36E.B549B50E <email protected> > the PHP crypt function uses DES and it only generates a hash based on the > first 8 chars of a string, although it produces a 12-char hash. Md5 can hash > a string of indefinite length, but it produces a much longer hash (34 chars or > so). > > I need something that can provide me with a 12-16 char hash of an indefinite > string (usually under 100 chars in my case) using standard hasing algorithms. > > Any suggestions? > > Thanks > -David Schwartz > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe <email protected> > For additional commands, e-mail: php-general-help <email protected> > To contact the list administrators, e-mail: php-list-admin <email protected> >

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>