Skip to content

multicrypto/js-crc32

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crc32

crc32 implemented in JavaScript for node.js or browsers. Tries to use typed arrays if available. Returns the hexidecimal representation of the crc32.

This implements the most common variation of crc32 using a reversed polynomial of 0xEDB88320. If you're comparing to PHP you'll need to either use hash("crc32b", $str) or dechex(crc32($str)). If you're comparing to python use hex(zlib.crc32(str) & 0xffffffffL). It seems that mhash (and things based off mhash) uses a different variation so keep that in mind when using the generated values across platforms[1].

About

crc32 implemented in JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%