crclib 2.0.0 copy "crclib: ^2.0.0" to clipboard
crclib: ^2.0.0 copied to clipboard

outdated

Collection of cyclic redundancy check (CRC) routines as Dart converters.

Dart crclib #

This is not an official Google product.

Generic CRC calculations as Dart converters and some common algorithms.

The easiest way to use this library is to call convert on the instance of the desired CRC routine.

  Crc32Xz().convert(utf8.encode('123456789')) == 0xCBF43926

Another supported use case is as stream transformers.

  File(...).openRead().transform(Crc32Xz()).single.then(...)

Instead of using predefined classes, it is also possible to construct a customized CRC function with ParametricCrc class. For a list of known CRC routines, check out https://reveng.sourceforge.io/crc-catalogue/all.htm.

TODO:

  1. inputReflected and outputReflected can be different, see CRC-12/UMTS.
  2. Bit-level checksums (including non-multiple-of-8 checksums).
13
likes
40
pub points
95%
popularity

Publisher

unverified uploader

Collection of cyclic redundancy check (CRC) routines as Dart converters.

Repository (GitHub)
View/report issues
Contributing

License

Apache-2.0 (LICENSE)

Dependencies

meta, tuple

More

Packages that depend on crclib