How do I implement a CRC16 with a custom polynomial in Javascript?

前端 未结 1 1160
你的背包
你的背包 2021-01-25 22:29

Background

I need to implement a CRC16 with a custom polynomial in Javascript.

Research

After searching several NPM modules and this SO question ( as

1条回答
  •  失恋的感觉
    2021-01-25 22:57

    The example linked has a table derived from the CRC polynomial. You can certainly find code that generates the table, given the polynomial. You can find code that computes any CRC, and code that generates CRC code, including the table, given the definition of the CRC (polynomial, bit-ordering, initial value, final xor value).

    0 讨论(0)
提交回复
热议问题