pecl-libsodium-doc icon indicating copy to clipboard operation
pecl-libsodium-doc copied to clipboard

Crop an hash output isn't like produce the same lenght hash output

Open MikeRow opened this issue 4 years ago • 0 comments

Hello, considering the minimum hash lenght 16 byte, and needing 5 or 8 byte of hash lenght, I've noticed that crop the 16 byte to 5 or 8 doesn't produce the same output.

For example, using https://github.com/strawbrary/php-blake2 (which allows me a <16 byte hash output) the result is good.

MikeRow avatar May 13 '20 09:05 MikeRow