Re: hash suggestions wanted
| From: | Yasuo Ohgaki | Date: | Sun, 01 Apr 2001 01:54:57 +0000 |
| Subject: | Re: hash suggestions wanted | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-46479@lists.php.net to get a copy of this message | ||
If you need shorter result, how about use a part of md5 hash result?
--
Yasuo Ohgaki
""David P. Schwartz"" <davids@NO.SPAM.desertigloo.com> wrote in message
news:3AC4E36E.B549B50E@NO.SPAM.desertigloo.com...
> 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@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>