h2non / jshashes

Fast and dependency-free cryptographic hashing library for node.js and browsers (supports MD5, SHA1, SHA256, SHA512, RIPEMD, HMAC)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CRC32 sometimes returns negative values.

cscott opened this issue · comments

The CRC32 checksum sometimes returns negative values.
You can use an unsigned shift (x >>> 0) to force JavaScript to treat the arithmetic as unsigned.

commented

Thanks!! Pull request approved

This is still an issue,
for some inputs there is still a negative result.