Skip to main content
coreydaley.dev
Docs menu

Checksums

New in Purrchiver 1.1. If you don't see it, update Purrchiver from the App Store.

A checksum is a short fingerprint of a file’s contents, such as a SHA-256 hash. If even one byte of the file changes, the checksum changes. That makes checksums the simple way to answer “is this exactly the file it’s supposed to be?” after a download or a copy.

Purrchiver uses them in three places: when you create an archive, when you extract one, and in Shortcuts.

When you create an archive

In the Create Archive sheet, under Verify, turn on Write a checksum file. Purrchiver saves a .sha256 file beside the new archive, named after it: Photos.zip gets Photos.sha256.

It lists every file inside the archive with its SHA-256, in the standard shasum format, so whoever you send the archive to can check it with shasum or sha256sum, which come with macOS and Linux. After extracting, from the folder the files came out into:

shasum -a 256 -c ~/Downloads/Photos.sha256

Why Photos.sha256 and not Photos.zip.sha256: on macOS 27, the App Sandbox refused Photos.zip.sha256 beside an archive you chose, and allowed the same name with a different extension. Purrchiver reads either name.

Writing checksum files is offered for multi-file archive formats, not for single-file streams like .gz, split archives, DMGs, or archives wrapped in age encryption. It’s part of the one-time unlock, and you can save it in a preset.

When you extract

If an archive has a checksum file beside it (Photos.zip.sha256 or Photos.sha256, or .sha512), Purrchiver checks the archive against it when you extract everything, and tells you what it found.

A checksum for the download itself. The .sha256 file published next to a download usually holds one checksum, for the archive file as a whole (it’s what shasum -a 256 Photos.zip prints). Purrchiver checks the archive file against it:

  • “Photos.zip” matches “Photos.zip.sha256”: you have exactly the file that was published.
  • “Photos.zip” doesn’t match “Photos.zip.sha256”: the download may be damaged or incomplete, or isn’t the file the checksum describes. Get a fresh copy before relying on what’s inside.

A checksum for every file inside, like the ones Purrchiver writes. Purrchiver checks each file:

  • 40 files match “Photos.sha256”: the archive is exactly what the checksum file describes.
  • 3 files of 40 don’t match …: click Show Files… to see which, and why: contents that differ, files the checksum file lists but the archive doesn’t have, or files in the archive the checksum file doesn’t list.
  • Couldn’t check against …: for example, the checksum file has no usable checksums in it, or the archive couldn’t be read again.

The check reads the archive itself, so renaming or skipping a file while extracting doesn’t affect it. Extracting only a selection skips the check, because the checksum file describes the whole archive. Checking is free, and it runs on your Mac; nothing is uploaded.

In Shortcuts

Three actions, for automation or for checking a download:

  • Check File Checksum (free): checks any file against a SHA-256 or SHA-512 checksum you paste, say from a download page. Labels like SHA256:, capital letters, and stray spaces are fine.
  • Verify Checksums (free): checks an archive against a checksum file, either the archive’s own checksum or one for every file inside, using the one beside the archive if you don’t pass one.
  • Generate Checksums (part of the unlock): writes a checksum file listing every file in an archive, with SHA-256 or SHA-512.

See Shortcuts & automation for every action.

Checksums aren’t recovery data

A checksum tells you whether something changed; it can’t fix it. To be able to repair a damaged archive later, add recovery data when you create it.

Don't have Purrchiver yet? It's free on the Mac App Store.