mirror of
https://github.com/lampaa/CRC16-CRC16-CCIT-CRC32.git
synced 2026-08-12 20:31:49 +08:00
Update crc32.js
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
/**
|
||||
* Calculate CRC16 checksum
|
||||
* Calculate CRC32 checksum
|
||||
* Code ported to JavaScript from Java
|
||||
*
|
||||
* Oryginal source:
|
||||
* http://introcs.cs.princeton.edu/java/51data/CRC16.java.html
|
||||
* CRC16-CCIT for 123456789 = 29b1
|
||||
* http://introcs.cs.princeton.edu/java/51data/CRC32.java.html
|
||||
* CRC16-CCIT for 123456789 = CBF43926
|
||||
*
|
||||
* Online calculator for testing:
|
||||
* http://zorc.breitbandkatze.de/crc.html
|
||||
@@ -60,4 +60,4 @@ function crc32(charach) {
|
||||
return crc.toString(16);
|
||||
}
|
||||
|
||||
console.log(crc32('123456789'));
|
||||
console.log(crc32('123456789'));
|
||||
|
||||
Reference in New Issue
Block a user