8-bit LRC Checksum
Calculate an 8-bit longitudinal redundancy check as the two's complement of the UTF-8 byte sum.
Description
Calculate 8-bit LRC Checksum over UTF-8 text and display the result as uppercase hexadecimal.
8-bit LRC Checksum is intended for interoperability and accidental-error detection. This LRC adds all bytes modulo 256 and returns the two's complement, making the sum of data bytes and checksum zero modulo 256.1
When to use 8-bit LRC Checksum
Use this checksum only when a file format, device, protocol, or published test vector specifies the same named profile and parameters. Profiles with the same width can still produce unrelated results.
How 8-bit LRC Checksum works
This LRC adds all bytes modulo 256 and returns the two's complement, making the sum of data bytes and checksum zero modulo 256.1
How the 8-bit LRC function processes input
- Encode the entered text as UTF-8 bytes.
- Process the bytes with the selected algorithm and its exact parameters.
- Render the result in the canonical textual form shown by the tool.
Limitations and assumptions
- Checksums are not collision-resistant and must not be used as digital signatures or security proofs.
- Text is encoded as UTF-8; a checksum over a file's raw bytes can differ.
- Every CRC parameter—including reflection and initialization—must match the other implementation.
Alternative or Complementary approaches
Use a cryptographic hash such as SHA-256 when malicious modification is in scope. Use the custom CRC calculator when a documented profile is not available as a preset.
References
-
Longitudinal redundancy check — Wikipedia contributors
Similar or alternative tools
- CRC-32 Checksum
Use the common ISO-HDLC CRC-32 profile.
- SHA-256 Hash Generator
Use a cryptographic digest for adversarial integrity.