ApiaryActiveLive
Try: pause · settings · learn · wipe
← Community / Reading Room
WA
craft · 23 min read

What a Content Hash Proves and Does Not Prove: Same Bytes, Not Right Content

A content hash, such as a SHA-256 digest, is a short, fixed-length fingerprint computed from the exact bytes of a file. It is very good at one job: showing…

Use a hash to answer "is this the same file?" Never use it to answer "is this file right?"

AI disclosure. This longread was drafted by AI (Claude, from an earlier Grok Bot draft) for Apiary. It has not been reviewed or verified by the founder. Sources were opened and read on 26 November 2026; provider documentation changes often, so dated limits are marked. Worked examples are hypothetical.

A content hash, such as a SHA-256 digest, is a short, fixed-length fingerprint computed from the exact bytes of a file. It is very good at one job: showing that two copies are byte-for-byte identical, or that something changed. That makes it useful in publishing workflows: a receipt can show that the live article body matches the draft that was reviewed, a deduplication step can spot identical files in two folders, and a nightly check can catch accidental edits, truncation or corruption.

A hash says nothing about whether the content is accurate, well sourced, approved, original or good. A fabricated citation hashes just as neatly as a real one. A matching hash does not prove who produced the file, either, or that nobody replaced both the file and its recorded hash. Those questions need other evidence: a review record, a digital signature, or a hash stored somewhere the attacker could not reach.

There is a third limit that catches people in practice. A hash covers exactly the bytes it was computed over and nothing else. Two files that look identical on screen can have different hashes because of a trailing space, a different line ending, a different Unicode encoding of the same accented letter or a different key order in a JSON object. Deciding precisely what gets hashed is half of using hashes well.

1. What a hash function does

The U.S. Secure Hash Standard, FIPS 180-4, specifies the SHA-1 and SHA-2 families of hash algorithms. Its abstract says the standard "specifies hash algorithms that can be used to generate digests of messages. The digests are used to detect whether messages have been changed since the digests were generated" (NIST, FIPS 180-4, Secure Hash Standard, August 2015).

The output length is fixed by the algorithm, whatever the input size. FIPS 180-4's table of algorithm properties lists message digest sizes of 160 bits for SHA-1, 224 for SHA-224, 256 for SHA-256, 384 for SHA-384 and 512 for SHA-512 (same source, Figure 1). A one-line sentence and a 400-page book both produce a 256-bit SHA-256 digest, usually written as 64 hexadecimal characters.

NIST's hash functions project page summarizes the role: "A hash algorithm is used to map a message of arbitrary length to a fixed-length message digest." It lists two standards that specify approved algorithms: FIPS 180-4 and FIPS 202, the latter specifying "the new SHA-3 family of permutation-based functions" (NIST CSRC, Hash Functions, as of 26 November 2026).

2. What "secure" means for a hash

FIPS 180-4 states what its algorithms guarantee, and the wording is precise: "The hash algorithms specified in this Standard are called secure because, for a given algorithm, it is computationally infeasible 1) to find a message that corresponds to a given message digest, or 2) to find two different messages that produce the same message digest. Any change to a message will, with a very high probability, result in a different message digest" (NIST, FIPS 180-4).

Those are two separate properties:

  • Preimage resistance: given a digest, you cannot feasibly find an input that produces it.
  • Collision resistance: you cannot feasibly find any two different inputs with the same digest.

NIST's guidance on applications of hash functions puts a number on the second. "The expected collision-resistance strength of a hash function is half the length of the hash value produced by that hash function, i.e., for an L-bit hash function, the expected security strength for collision resistance is L/2 bits. For example, SHA-256 produces a (full-length) hash value of 256 bits; SHA-256 provides an expected collision resistance of 128 bits" (NIST SP 800-107 Revision 1, Dang, August 2012). The halving is why a hash that looks long can still be too short for some uses: collision resistance depends on half the length.

Note the qualifier in FIPS 180-4: "with a very high probability." The guarantee is computational and probabilistic. It is not a proof that two different files can never share a digest, only that finding such a pair is infeasible for an algorithm that remains unbroken. Section 5 shows what happens when an algorithm stops meeting that bar.

3. A small demonstration

Observed result of a computation performed for this article on 26 November 2026, using Python's hashlib SHA-256. This replaces a demonstration in the Grok draft that could not be reproduced from its text. Five byte strings and their SHA-256 digests:

Input (bytes as described)SHA-256 (first and last 8 hex characters)
The study had 120 participants.12fb6c26…9362864e
the same, plus one trailing space17d62891…9110557f
The study had 210 participants.b2751e54…963ef96c
the first line, plus a Unix line ending (LF)bbf821d5…4ffbed48
the first line, plus a Windows line ending (CRLF)43c681d4…4f6e31b

Four facts are visible here. An invisible change (a trailing space) and a meaning-changing edit (120 to 210 participants) both produce a completely different digest; the hash cannot tell you which one matters. Neither digest says anything about whether the study really had 120 participants. Two files a person would call "the same sentence" differ only by their line endings and still hash differently. And nothing in a digest resembles the digest of a similar input; the 120 and 210 versions are no "closer" to each other than to any other text.

4. What a matching hash proves

If you compute the SHA-256 of a file now and it equals a SHA-256 you recorded earlier, you have strong evidence of one thing: the bytes are the same as the bytes that were hashed then. That supports several practical claims:

  • The live article body is the reviewed draft, byte for byte, provided you hashed the same form of it both times (section 8).
  • A copied file was not damaged in transit.
  • Two files in different folders are duplicates.
  • A file has not been edited since a known point.

Git's documentation describes how it relies on exactly this property. "At its core, the Git version control system is a content addressable filesystem. It uses the SHA-1 hash function to name content." Among the advantages: "Integrity checking is easy. Bit flips, for example, are easily detected, as the hash of corrupted content does not match its name" (Git documentation, hash-function-transition).

A matching hash proves this only under two assumptions, and both should be stated in any record that relies on it:

  1. The algorithm is still collision resistant. For SHA-256, as of 26 November 2026, NIST lists it as approved (NIST CSRC, Hash Functions). For SHA-1, as section 5 shows, that assumption no longer holds against a determined adversary.
  2. The recorded hash is trustworthy. If whoever could change the file could also change the recorded hash, the match proves nothing about tampering. Section 6 covers this.

5. Algorithms age: the SHA-1 story

SHA-1 is the standard example of an algorithm whose guarantees eroded. NIST's project page records the sequence: "NIST deprecated the use of SHA-1 in 2011 and disallowed its use for digital signatures at the end of 2013, based on both the Wang et. al attack and the potential for brute-force attack. In December 2022, NIST published the plan to transition away from the current limited use of the SHA-1" (NIST CSRC, Hash Functions).

In 2017, Stevens and colleagues published the first practical collision for full SHA-1. Their paper's abstract says: "we demonstrate that SHA-1 collision attacks have finally become practical by providing the first known instance of a collision. Furthermore, the prefix of the colliding messages was carefully chosen so that they allow an attacker to forge two distinct PDF documents with the same SHA-1 hash that display different arbitrarily-chosen visual contents." The effort "took approximately 6,500 CPU years and 100 GPU years," which the authors note is "still more than 100,000 times faster than a brute force search" (Stevens, Bursztein, Karpman, Albertini, Markov, "The first collision for full SHA-1," IACR ePrint 2017/190; abstract page read). The same abstract observes that "SHA-1 remains widely used in 2017 for document and TLS certificate signatures, and also in many software such as the GIT versioning system."

In December 2022, NIST announced that "SHA-1 should be phased out by Dec. 31, 2030, in favor of the more secure SHA-2 and SHA-3 groups of algorithms," quoting NIST computer scientist Chris Celi: "We recommend that anyone relying on SHA-1 for security migrate to SHA-2 or SHA-3 as soon as possible" (NIST, "NIST Retires SHA-1 Cryptographic Algorithm," 15 December 2022).

Git's own documentation shows how a large system responds. "On 23 February 2017 the SHAttered attack ... demonstrated a practical SHA-1 hash collision. Git v2.13.0 and later subsequently moved to a hardened SHA-1 implementation by default, which isn't vulnerable to the SHAttered attack, but SHA-1 is still weak. Thus it's considered prudent to move past any variant of SHA-1 to a new hash" (Git documentation, hash-function-transition). The same document describes repositories configured with objectFormat = sha256.

What this means for a publishing record (editorial suggestion): record the algorithm name with every digest (for example sha256:12fb…), so that records can be re-evaluated if the algorithm weakens, and use SHA-256 or stronger for new records. A bare hex string with no algorithm label becomes ambiguous the day you change algorithms.

What the SHA-1 collision does and does not mean for accidental changes: the attack required deliberately constructed inputs and very large computation. It shows that SHA-1 cannot be relied on when someone is trying to produce a collision. It does not show that two ordinary, unrelated files are likely to collide by chance.

6. A hash alone does not stop tampering

A hash detects change only relative to a recorded value. If the recorded value travels with the file, anyone who can change the file can also recompute the hash.

RFC 9530, the IETF standard for HTTP digest fields, says this directly. "Integrity fields are not intended to be a general protection against malicious tampering with HTTP messages. In the absence of additional security mechanisms, an on-path malicious actor can either remove a digest value entirely or substitute it with a new digest value computed over manipulated representation data or content. This attack can be mitigated by combining mechanisms described in this document with other approaches such as Transport Layer Security (TLS) or digital signatures" (RFC 9530, Digest Fields, §6.1, February 2024).

The same RFC describes what digests are good for: they "can help detect representation data or content modification due to implementation errors, undesired 'transforming proxies' ..., or other actions as the data passes across multiple hops or system boundaries" (§6.2). That is the accidental-change use case, and it is the main one for a publishing workflow.

Two documented designs show how to get tamper resistance by separating the hash from the content:

  • Subresource Integrity (W3C). A web page lists the expected digest of a script it loads, in the page's own HTML: integrity="sha384-…". If the script fetched from a CDN does not match, "The user agent will refuse to render or execute responses that fail an integrity check, instead returning a network error" (W3C, Subresource Integrity). The hash is trustworthy because it arrives through a different channel (the page) from the content (the CDN file).
  • Signed hashes in Git. Git's documentation notes that with a cryptographically secure hash, "Object names can be signed and third parties can trust the hash to address the signed object and all objects it references" (Git documentation, hash-function-transition). The signature protects the hash; the hash protects the content.

Editorial suggestion for publishing receipts: store the reviewed draft's hash somewhere the publishing pipeline cannot rewrite, such as a separate receipt log, a commit in a repository with restricted push rights, or a signed record. Then a later match between the live page and the receipt means something even if the pipeline itself is not fully trusted.

7. Plain digest, keyed hash or signature

Section 6 showed that a plain hash detects change only if the reference value is protected. Cryptography offers two standard ways to protect it, and choosing among the three options is a question of who you need to defend against.

FIPS 180-4 already points at them: a changed message "will result in a verification failure when the secure hash algorithm is used with a digital signature algorithm or a keyed-hash message authentication algorithm" (NIST, FIPS 180-4). NIST SP 800-107 describes the keyed version, HMAC, and its central condition: "The HMAC key shall be kept secret. When the secrecy of the HMAC key, K, is not preserved, an adversary that knows K, may impersonate any of the users that share that key in order to generate MacTags that seem to be authentic" (NIST SP 800-107 Rev. 1).

MechanismWho can produce a valid valueWhat a match showsTypical publishing use
Plain digest (SHA-256)AnyoneBytes unchanged since the reference was taken, if the reference is trustedReceipts, nightly drift checks, deduplication
Keyed hash (HMAC)Anyone holding the shared secret keyBytes unchanged, and the value was made by a key holderChecks between two systems you control
Digital signatureOnly the holder of the private key; anyone can verifyBytes unchanged, and signed by that key's holderRecords that outside parties must be able to trust

Editorial suggestion: most small publishing workflows need only the first row, provided the reference hashes are stored somewhere the pipeline cannot rewrite. Move to an HMAC or a signature when the question is no longer "did something break?" but "could someone have changed this on purpose and covered their tracks?" Even then, a signature shows which key signed the bytes. It says nothing more about whether the content is correct than a plain hash does.

8. Decide exactly which bytes you hash

The demonstration in section 3 showed that line endings change the digest. Several standards bodies document other ways in which "the same content" can be different bytes.

Unicode normalization. Unicode allows some characters to be written in more than one way. The Unicode Standard Annex on normalization explains: "Canonical equivalence is a fundamental equivalency between characters or sequences of characters which represent the same abstract character, and which when correctly displayed should always have the same visual appearance and behavior." It gives examples such as a letter C with cedilla written as one code point or as C plus a combining cedilla, and the Angstrom sign versus a capital A with ring above. The annex's purpose is that "When implementations keep strings in a normalized form, they can be assured that equivalent strings have a unique binary representation" (Unicode Standard Annex #15, Unicode Normalization Forms). Observed result of a computation for this article: the word "Café" encoded in UTF-8 in composed form (NFC) is the bytes 43 61 66 c3 a9; in decomposed form (NFD) it is 43 61 66 65 cc 81. They display identically, and their SHA-256 digests differ completely (73473dcc… versus c42cc7a1…).

JSON key order and formatting. RFC 8785 exists because "Cryptographic operations like hashing and signing need the data to be expressed in an invariant format so that the operations are reliably repeatable. One way to address this is to create a canonical representation of the data" (RFC 8785, JSON Canonicalization Scheme, June 2020; an Informational, Independent Submission RFC, not an IETF standard). Observed result of a computation for this article: {"title":"x","id":1} and {"id":1,"title":"x"} carry the same data and have different SHA-256 digests. An article fetched from a content API as JSON can change hash when nothing but the server's key order changed.

Compression and transfer encoding. RFC 9530 warns that "Content coding mechanisms can support different encoding parameters, meaning that the same input content can produce different outputs. For example, GZIP supports multiple compression levels," and that therefore "the checksum conveyed by the Integrity fields cannot be used to provide a proof of integrity 'at rest' unless the whole content is persisted" (RFC 9530, §6.5). A hash of a compressed response is a hash of that particular compression, not of the article.

RFC 9530 builds this distinction into HTTP itself by defining two separate fields: "The Content-Digest field can be used for the integrity of HTTP message content. The Repr-Digest field can be used for the integrity of HTTP representations" (RFC 9530, Abstract). In plain terms, one covers the bytes as they travel in a particular message, which may be compressed or partial, and the other covers the representation those bytes stand for. If a server you publish to sends one of these fields, a receipt should record which field it was, because the two values are expected to differ for the same article whenever compression or partial responses are involved. Comparing a Content-Digest from one fetch with a Repr-Digest from another, or with a hash you computed over decompressed text, will produce mismatches that mean nothing.

Source versus rendered output. For a published article, at least three forms exist: the Markdown source, the rendered HTML, and the API's JSON. Each has its own hash. Rendered HTML often includes build-specific content such as asset fingerprints, timestamps or navigation, so its hash changes even when the article does not.

Editorial suggestion: every recorded hash should come with a note of the form it covers and any normalization applied, for example: "sha256 of article body Markdown, UTF-8, NFC, LF line endings, trailing whitespace stripped." Without that note, a mismatch later cannot be interpreted, and a match may be a coincidence of two different normalizations that happened to agree.

9. ETags are not content hashes

HTTP's ETag header looks like a fingerprint, and sometimes it is one, but the standard does not require it. RFC 9110 calls it "an opaque validator." It explains that "only the service author knows the implementation of a resource well enough to select the most accurate and efficient validation mechanism," and gives examples: a server "might use an internal revision number," while "Other implementations might use a collision-resistant hash of representation content, a combination of various file attributes, or a modification timestamp that has sub-second resolution" (RFC 9110, HTTP Semantics, §8.8.3).

So an unchanged ETag tells you the server considers the representation unchanged by its own rule, which may or may not be byte identity. And an ETag from one server cannot be compared with a hash you computed yourself. If a publishing receipt needs a content hash, compute it from the fetched body, and record the ETag separately as what the server reported.

10. Checksums, deprecated algorithms and shortened digests

Not every fingerprint in circulation is a secure hash. RFC 9530 created an IANA registry of algorithms for HTTP digest fields and, at publication in February 2024, listed only sha-256 and sha-512 as "Active," a status defined as "Algorithms without known problems." It listed md5, sha (SHA-1), unixsum, unixcksum, adler and crc32c as "Deprecated," defined as "Deprecated or insecure algorithms," noting for MD5 and SHA-1 that each "is vulnerable to collision attacks" (RFC 9530, §5 and §7.2). The RFC adds a warning that applies to any system accepting several algorithms: "A receiver that depends on a digest for security will be vulnerable to attacks on the weakest algorithm it is willing to accept" (§6.6). Registry contents can change after publication; check the live IANA registry before relying on a status.

Proposed explanation: checksums like CRC32 were designed to catch random transmission errors, and they still do that job. They were not designed to resist someone constructing a matching file. For a publishing receipt, where the point is to make a claim others can rely on, a deprecated algorithm weakens the claim even if no one is attacking it.

Shortened digests. People often display only part of a hash, as this article does in section 3. NIST SP 800-107 sets the rule for truncating a digest when it will actually be relied on: the truncated length, "If collision resistance is required, shall be at least twice the required collision resistance strength s (in bits) for the truncated message digest (i.e., 2s)" (NIST SP 800-107 Rev. 1). Applying the same L/2 rule from section 2 (arithmetic, not a NIST statement about this case): an 8-hex-character prefix is 32 bits, which gives an expected collision resistance of only about 16 bits. That is fine for a person glancing at a log line. It is not a basis for deciding two files are the same.

Editorial suggestion: display short prefixes for readability if you like, but store and compare full digests, always with the algorithm label.

11. What a hash cannot tell you

The Grok draft's central point stands, and it is worth listing the things a matching hash is not evidence of (editorial suggestion, with the reason for each):

Not evidence ofWhy
Factual accuracyA false sentence and a true one hash equally well; section 3
Source quality or citation validityA fabricated reference is just more bytes
Editorial approvalApproval is a decision by a person; record it separately
Authorship or originAnyone can compute a hash; origin needs signatures or provenance records (section 6)
FreshnessA matching hash shows the content has not changed, which may mean a correction was never applied
OriginalityIdentical hashes find exact copies; a lightly edited copy has an unrelated hash
Near-duplicationHashes do not measure similarity; one changed character gives a completely different digest
What the reader sawRendering, scripts, ads and caches act after the hashed bytes (section 8)

The "freshness" row is easy to overlook. A receipt showing that today's live page still matches last month's approved draft is good news if nothing needed to change, and bad news if a correction was approved in between. The hash cannot tell those apart; only the review log can.

12. Using hashes in a publishing receipt

A publishing receipt records what was approved and what went live. A hash makes the link between the two precise. The fields below are an editorial suggestion.

FieldExample
Itemwhat-a-content-hash-proves-and-does-not-prove
Hashed formarticle body Markdown, UTF-8, NFC, LF
Algorithm and digest of approved draftsha256:…
Approval recordwho reviewed, against which sources, when (a pointer, not a hash)
Algorithm and digest of live bodysha256:…, computed from a fresh fetch of the public URL, same normalization
Matchyes / no
Where the receipt is storeda location the publishing pipeline cannot rewrite
ETag and Last-Modified as servedrecorded separately, not compared with the digest

The receipt then supports two different statements, and it is important not to merge them. "The live body is byte-identical to the approved draft" is what the hashes show. "The approved draft is accurate and properly sourced" is what the approval record claims, and it is only as good as that review.

13. Worked example: a faithful copy of an error (hypothetical)

Hypothetical example, adapted from the Grok draft. A receipt shows that a live article's body hash matches the approved draft's hash. Everyone is satisfied. A month later, a reader points out that one statistic in the article has no source.

The hash was right: the approved text is exactly what went live. The review was what failed. The receipt proved the error was published faithfully. The correct response is to fix the text, run a new review, record a new approved hash, publish, and record a new live hash. The old receipt stays in the log as evidence of what was published and when.

The lesson is about where to look. When something is wrong with published content, a matching hash rules out "the pipeline changed it" and points straight at the source or the review. It does not make the content any less wrong.

14. Worked example: a false alarm from line endings (hypothetical)

Hypothetical example. A nightly check compares the SHA-256 of each live article body with its approved hash. One night, every article on the site fails. Nothing was published that day.

Investigation finds that the site's build moved to a new machine whose tooling writes Windows line endings. Every body now ends lines with CRLF instead of LF, and section 3's demonstration shows that this alone changes the digest. The content a reader sees is identical.

Two fixes are available, and the choice is an editorial decision. Normalize line endings before hashing, both at approval and at check time, and record that normalization in the receipt; or fix the build so it produces LF again. Either way, the incident shows why the hashed form has to be written down (section 8). Without that note, the team cannot tell a false alarm from a real change.

15. Hashes for deduplication and manifests

A hash is a natural key for finding identical files. If two files in different folders have the same SHA-256, they are, for practical purposes, the same file. That makes hashes useful in manifests that list what a batch produced and in reconciliation checks that compare the manifest with what actually landed.

Two cautions apply (editorial suggestions):

  • Identical is all it finds. Two drafts that differ by one corrected typo have unrelated hashes. A manifest keyed by hash will treat them as completely different files. Finding near-duplicates needs a different tool, such as a text diff or a similarity measure, not a cryptographic hash.
  • Normalize first, consistently. If one folder was written on a machine with CRLF line endings and another with LF, a hash-based deduplication will find no duplicates at all. Apply the same normalization before hashing everywhere the manifest is used.

16. Checklist

Before relying on a hash (editorial suggestion):

  1. Use SHA-256 or stronger for new records, and record the algorithm name with each digest.
  2. Write down exactly what form was hashed: source or rendered, encoding, Unicode normalization, line endings, whitespace handling.
  3. Apply the same normalization every time the hash is computed.
  4. Store reference hashes where the system being checked cannot rewrite them.
  5. Compute live hashes from a fresh fetch, not from the upload response.
  6. Record server validators such as ETag separately; do not compare them with your digests.
  7. Keep approval, sourcing and authorship evidence in their own records.
  8. When a hash matches, say "byte-identical to the approved version," never "verified correct."
  9. When a hash mismatches, check normalization before assuming the content changed.

17. What the evidence does and does not show

It shows, from the Secure Hash Standard and NIST guidance, that approved hash functions are designed so that finding a matching input or a colliding pair is computationally infeasible, that any change produces a different digest with very high probability, and that SHA-256's expected collision resistance is 128 bits. It shows, from the 2017 collision paper, NIST's 2022 announcement and Git's transition document, that SHA-1 no longer meets that bar against a deliberate attacker and is being phased out. It shows, from RFC 9530 and the W3C Subresource Integrity specification, that a digest protects against tampering only when the digest itself arrives through a channel the attacker cannot alter. It shows, from Unicode, RFC 8785, RFC 9530 and RFC 9110, that the same visible content can be different bytes, and that HTTP validators are not required to be hashes. The demonstrations in sections 3 and 8 are observed results of simple computations, not studies.

It does not show anything about the quality of hashed content, because no hashing standard makes any claim about meaning. The receipt design, the normalization advice and the checklist are editorial suggestions. NIST's approval status for each algorithm is as listed on 26 November 2026 and may change; the SHA-1 phase-out date is the one NIST announced in December 2022.

Related reading on Apiary

  • hashing-vs-encryption
  • biggie-data-provenance
  • uploaded-artifact-vs-verified-live-page
  • reconcile-a-writing-batch-with-a-manifest
  • guide-build-a-dry-run-checklist-for-a-document-automation

Sources

Last checked: 2026-11-26.

  1. National Institute of Standards and Technology. "FIPS 180-4: Secure Hash Standard (SHS)." August 2015. https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf - purpose of digests, preimage and collision properties, digest sizes.
  2. NIST Computer Security Resource Center. "Hash Functions" project page. https://csrc.nist.gov/projects/hash-functions - approved algorithms, FIPS 202 SHA-3, SHA-1 deprecation 2011, signature disallowance 2013, December 2022 transition plan.
  3. National Institute of Standards and Technology. "NIST Retires SHA-1 Cryptographic Algorithm." News release, 15 December 2022. https://www.nist.gov/news-events/news/2022/12/nist-retires-sha-1-cryptographic-algorithm - phase-out by 31 December 2030, Celi quotation.
  4. Stevens, M., Bursztein, E., Karpman, P., Albertini, A., Markov, Y. "The first collision for full SHA-1." IACR Cryptology ePrint Archive 2017/190 (revision of a CRYPTO 2017 paper). https://eprint.iacr.org/2017/190 - first known collision, colliding PDFs, 6,500 CPU years and 100 GPU years (abstract page read).
  5. Dang, Q. "NIST SP 800-107 Revision 1: Recommendation for Applications Using Approved Hash Algorithms." NIST, August 2012. https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-107r1.pdf - collision resistance of L/2 bits, SHA-256 at 128 bits.
  6. Polli, R., Pardue, L. "RFC 9530: Digest Fields." IETF, February 2024. https://www.rfc-editor.org/rfc/rfc9530 - not protection against malicious tampering (§6.1), end-to-end integrity use (§6.2), content-coding variation (§6.5).
  7. Fielding, R., Nottingham, M., Reschke, J. (eds.). "RFC 9110: HTTP Semantics." IETF, June 2022. https://www.rfc-editor.org/rfc/rfc9110 - ETag as opaque validator and its possible constructions (§8.8.3).
  8. W3C Web Application Security Working Group. "Subresource Integrity." W3C (the version at this address was a Working Draft when fetched). https://www.w3.org/TR/SRI/ - integrity attribute, refusal to execute on mismatch.
  9. Git project. "hash-function-transition." Git documentation. https://git-scm.com/docs/hash-function-transition - content-addressable storage, integrity checking, SHAttered response, hardened SHA-1, SHA-256 object format, signed object names.
  10. Unicode Consortium. "Unicode Standard Annex #15: Unicode Normalization Forms." https://www.unicode.org/reports/tr15/ - canonical equivalence, unique binary representation after normalization.
  11. Rundgren, A., Jordan, B., Erdtman, S. "RFC 8785: JSON Canonicalization Scheme (JCS)." RFC Editor Independent Submission (Informational), June 2020. https://www.rfc-editor.org/rfc/rfc8785 - need for invariant format before hashing.
Frequently asked
What is What a Content Hash Proves and Does Not Prove: Same Bytes, Not Right Content about?
A content hash, such as a SHA-256 digest, is a short, fixed-length fingerprint computed from the exact bytes of a file. It is very good at one job: showing…
What should you know about 1. What a hash function does?
The U.S. Secure Hash Standard, FIPS 180-4, specifies the SHA-1 and SHA-2 families of hash algorithms. Its abstract says the standard "specifies hash algorithms that can be used to generate digests of messages. The digests are used to detect whether messages have been changed since the digests were generated" ( NIST,…
What should you know about 2. What "secure" means for a hash?
FIPS 180-4 states what its algorithms guarantee, and the wording is precise: "The hash algorithms specified in this Standard are called secure because, for a given algorithm, it is computationally infeasible 1) to find a message that corresponds to a given message digest, or 2) to find two different messages that…
What should you know about 3. A small demonstration?
Observed result of a computation performed for this article on 26 November 2026, using Python's hashlib SHA-256. This replaces a demonstration in the Grok draft that could not be reproduced from its text. Five byte strings and their SHA-256 digests:
What should you know about 4. What a matching hash proves?
If you compute the SHA-256 of a file now and it equals a SHA-256 you recorded earlier, you have strong evidence of one thing: the bytes are the same as the bytes that were hashed then. That supports several practical claims:
References & sources
  1. Apiary Reading Room — Open, cited knowledge base — funded to keep bee & practical research free.
From the Apiary Reading Room. Opinion & editorial — not financial advice. We don't overclaim.
More from the Reading Room