paragonie / pecl-libsodium-doc

Free Online Documentation for the Libsodium PHP Extension

Home Page:https://paragonie.com/book/pecl-libsodium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

MikeRow opened this issue · 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.