alexgorbatchev / crc

Blazingly fast CRC implementations for node.js and browser
MIT License
350 stars 72 forks source link

CRC32 for a HEX input #64

Closed PranavBhatia closed 2 years ago

PranavBhatia commented 4 years ago

I want to run the CRC32 on a Hex input and produce a Hex output. But when I do that with this library, it considers the Hex input as a string.

alexgorbatchev commented 2 years ago

I think converting HEX to Number first and then to UInt8Array should work. You can then convert the CRC number to HEX string.