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

--
Yasuo Ohgaki


""David P. Schwartz"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to