Lesson plan

Cksum

cksum is a shell command for generating a checksum for a file or stream of data. The command reports the 32-bit cyclic redundancy check (CRC) checksum and byte count for each file specified in the command-line arguments or for standard input if no arguments provided. The CRC value is different from the CRC-32 used with a ZIP file, PNG or zlib. The command can be used to verify that files transferred (possibly via unreliable means) arrived intact. However, the checksum calculated is not cryptographically secure. While it guards against accidental corruption (it is unlikely that the corrupted data will have the same checksum as the intended data), it is not difficult for an attacker to deliberately corrupt the file in a specific way that its checksum is unchanged. Unix-like systems typically include other commands for cryptographically secure checksums, such as sha256sum. The command is available on Unix and Unix-like system and via UnxUtils. The GNU Coreutils implementation provides additional checksum algorithms via option, as an extension beyond POSIX. The standard command, as found on most Unix and Unix-like operating systems (including Linux, *BSD, macOS, and Solaris ) uses a CRC algorithm based on the ethernet standard frame check and is therefore interoperable between implementations.…

Back to article

Article summary

cksum is a shell command for generating a checksum for a file or stream of data. The command reports the 32-bit cyclic redundancy check (CRC) checksum and byte count for each file specified in the command-line arguments or for standard input if no arguments provided. The CRC value is different from the CRC-32 used with a ZIP file, PNG or zlib. The command can be used to verify that files transferred (possibly via unreliable means) arrived intact. However, the checksum calculated is not cryptographically secure. While it guards against accidental corruption (it is unlikely that the corrupted data will have the same checksum as the intended data), it is not difficult for an attacker to deliberately corrupt the file in a specific way that its checksum is unchanged. Unix-like systems typically include other commands for cryptographically secure checksums, such as sha256sum. The command is available on Unix and Unix-like system and via UnxUtils. The GNU Coreutils implementation provides additional checksum algorithms via option, as an extension beyond POSIX. The standard command, as found on most Unix and Unix-like operating systems (including Linux, *BSD, macOS, and Solaris ) uses a CRC algorithm based on the ethernet standard frame check and is therefore interoperable between implementations.…

Key claims

No claims recorded.

Discussion questions

  1. Summarise the article in your own words. Which single claim would you verify first, and why?
  2. Which claim in this article is most likely to be revised as the sources update? How would you check its current status?
  3. If two sources disagreed about one of these facts, what would you need in order to trust one over the other?

Bibliography

No sources recorded.

Key claims and bibliography are generated from the same tracked claims and sources as the article page.