This package provides an implementation of the CRC32 (Cyclic Redundancy Check 32) checksum algorithm in Emacs Lisp. CRC32 is commonly used for detecting errors in data transmission or storage.
- Calculates CRC32 checksum for any string input
- Uses a precomputed lookup table for efficient calculation
- Pure Emacs Lisp implementation
- Customizable output format (decimal or hexadecimal)
- Save the file as
crc32.el
- Load it in Emacs:
(add-to-list 'load-path "/path/to/crc32") (require 'crc32)
Calculate a CRC32 checksum:
(crc32 "Hello World")
;; Returns the CRC32 checksum as a string
crc32-output-format
: Choose between ‘decimal or ‘hexadecimal output- Use
M-x customize-variable RET crc32-output-format RET
to set interactively
- Use
crc32
: Main function to compute CRC32 checksummake-crc32-table
: Internal function to generate the CRC32 lookup table