jQuery jQuery CRC32 hash algorithm function
Back to main plugin's page.
Download

jQuery CRC32 hash algorithm function


Calculates the crc32 polynomial of a String
Integer $.crc32 ( String str )


Generates the cyclic redundancy checksum polynomial of 32-bit lengths of the str. This is usually used to validate the integrity of data being transmitted.

Javascript CRC32 function generates the cyclic redundancy checksum polynomial of 32-bit lengths of the string. This is usually used to validate the integrity of data being transmitted.
If you plan using UTF-8 encoding in your project don't forget to set the page encoding to UTF-8 (Content-Type meta tag).

This function orginally get from the WebToolkit and rewrite for using as the jQuery plugin.


Example

Code
$.crc32("I'm Persian.");
Result
-2081216496
Back to main plugin's page.
Semnan Web