SHAGenerator
क्रिप्टोग्राफ़िक संदर्भ गाइड

What Is a Checksum?

How checksums detect accidental corruption in network packets (TCP/IP), compression formats (ZIP/PNG), and the difference between simple parity and cyclic redundancy checks.

श्रेणी: Fundamentalsपढ़ने का समय: 4 min readप्रकाशित: 2026-08-20

1. Error Detection vs Cryptography

A checksum is a small fixed-size value computed from digital data for the purpose of detecting accidental transmission or storage errors (like bit flips from electrical interference or truncated network downloads).

2. Common Checksum Algorithms

• Parity Check: Adds a single bit to verify whether the sum of 1s is even or odd. • Longitudinal Redundancy Check (LRC): 2D parity over multi-byte data frames. • Adler-32: Used in the zlib compression standard for fast validation. • CRC32 / CRC32C: Cyclic Redundancy Checks used in Ethernet, PNG, ZIP, and modern file systems.

3. Checksums vs Cryptographic Hashes

Non-cryptographic checksums prioritize high speed (processing gigabytes per second with minimal CPU) but provide zero protection against intentional tampering. Cryptographic hashes (SHA-256) prioritize collision resistance against malicious attackers.

अक्सर पूछे जाने वाले प्रश्न (FAQ)

Frequently Asked Questions

Clear answers to common cryptographic and implementation questions.

Can CRC32 detect intentional tampering?
No. An attacker can easily craft a modified file that yields the exact same CRC32 checksum. Use SHA-256 for security.
Where is CRC32 used in daily computing?
CRC32 is built into Ethernet frame headers, PNG image chunks, and ZIP file archives.

इस विषय से संबंधित टूल्स

सभी टूल्स देखें →