paragonie / pecl-libsodium-doc

Free Online Documentation for the Libsodium PHP Extension
https://paragonie.com/book/pecl-libsodium
Creative Commons Attribution 4.0 International
88 stars 11 forks source link

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

Open MikeRow opened 4 years ago

MikeRow commented 4 years ago

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.