Skip to content
crc-8 checksum generation in javascript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information. Create May 27, 2013 Create May 27, 2013
crc8.js Create crc8.js May 27, 2013


CRC-8 checksum generation in javascript


  var sample_text = "Hi. I need a checksum."

  // convert sample text to array of bytes
  var byte_array = sample_text.split('').map(function(x){return x.charCodeAt(0)})

  var crc8 = new CRC8()
  var checksum = crc8.checksum(byte_array)
You can’t perform that action at this time.