Urgent.News

What's breaking now, across thousands of outlets.

Tech

What a failed hash check actually tells you about your file

Your timestamp check comes back "not found." What did you actually learn? It's tempting to read that as "the file was changed." Sometimes that's true. But the check didn't tell you so. What it tells you is narrower than that, and the space between the two is exactly where you lose an afternoon. What the check actually compares A timestamp proof for a file is really a proof about a hash. Here's…

A failed hash check doesn't necessarily mean a file has been altered. The check is actually testing a hash proof, which confirms the exact bytes were anchored at a specific time. This proof can't determine if the content or file structure has changed. SHA-256 hashes are designed to produce different outputs for even a single-bit modification, so any alteration will result in a mismatch.

A miss on the hash check doesn't provide enough information to pinpoint the cause, as various factors like compression, encoding, or file metadata can lead to different hashes for the same content. To ensure accurate timestamp verification, it's crucial to anchor the exact bytes you consider the record, and maintain reproducibility throughout the build process.

This includes using tools like gzip -n, sorted tar entries, and pinned modification times, to minimize variations caused by compression headers, file ordering, or timestamp records. By anchoring the right bytes and ensuring deterministic builds, you can confidently anchor files that remain unchanged across different rebuilds.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

What was your win this week??

👋👋👋👋 Looking back on your week -- what was something you're proud of? All wins count -- big or small 🎉 Examples of 'wins' include: Getting a promotion!

How a Tool Directory Stays Useful When It Has Too Many Tools

The hardest part of a small utility site is not adding one more calculator. It is helping a visitor find the right one without making them learn the site's architecture first.

  • Be Good Tool homepage uses Vue framework for navigation and search integration
  • Catalogue list imported as composable, maintaining separate data structures
  • Structured data and responsive visuals adapt to different device views

Three Sales Ops Automations, With What They Actually Cost

TL;DR: $6,500 to build all three, $270/month to run, roughly 50 hours a month of manual work replaced. Payback around two months.

  • First automation cost $3,500 with $180/month running cost, saving 50 manual hours/month
  • Pipeline reporting automation for logistics company, $1,800 dev cost, $60/month
  • Stalled deals alert system, $1,200 dev cost, $30/month

More from Friday 9 October →