Skip to content

wbond/crc32-js-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

CRC32

The file crc32.js provides crc32(), an efficient implementation of the CRC32 algorithm that will produce the same result as PHP's crc32() function.

To be able to compare output from JS and PHP, the PHP version must be used on a string encoded with UTF-8 and the result must be printed using printf('%u') or sprintf('%u') since it is an unsigned integer. The file crc32.php includes example PHP code.

About

A javascript function and PHP snippet that produce identical crc32 checksums

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors