Menu

Hash Functions and Checksums: How Do We Detect a Corrupted or Altered File?
📰

Hash Functions and Checksums: How Do We Detect a Corrupted or Altered File?

DEV Community: php·Susumu Takahashi·8 days ago
#yOPFyPEr
#devto#dev#value#hash#file
Long article (1088 words) — no AI summary yet.
Reading 0:00
15s threshold

Next to a download link, you sometimes see a long string like sha256: 8b99fa28… . After making a backup, you may also want to confirm the copy isn't damaged. In both cases, what does the work is a hash function or a checksum .

This article explains what they do, using small experiments with Python's standard library. It stays with the general use of "telling whether two files are the same" and does not go into cryptographic or authentication implementation details.

Note: The numbers come from running Python 3 and its standard library ( hashlib / zlib ) on October 13, 2026.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.