How do I verify a download wasn't corrupted?

GB Files records a SHA-256 hash for every chunk of every file. Compare those hashes with your downloaded file to prove it matches what was sent.

The short answer

Every GB Files transfer has a manifest listing the SHA-256 hash of every chunk of every file. Hash the same byte ranges of your download and compare. If every chunk matches, your file is byte-for-byte what the sender uploaded.

You usually don't need to. Storage already rejects any chunk whose bytes don't match its hash during upload, and HTTPS protects the download. Verification is for when you need proof: legal handoffs, archives, datasets, or an automated pipeline.

The easy way

npx gbfiles download https://gbfiles.com/t/<transfer> --verify

The CLI downloads (or resumes) every file and checks each chunk against the manifest. If a file is already downloaded, it just verifies it.

Steps to verify by hand

  1. Get the manifest: curl https://gbfiles.com/v1/transfers/<transfer>/manifest.json (add -H "X-Transfer-Password: …" if it's protected).
  2. For each file, note chunks[].index, chunks[].sizeBytes and chunks[].sha256. All chunks except the last are the same size.
  3. Hash each chunk of your downloaded file and compare it with the manifest.

Example script

FILE=cut.mov
CHUNK=$((64*1024*1024))   # use the file's chunk size from the manifest
i=0
while dd if="$FILE" bs=$CHUNK skip=$i count=1 2>/dev/null | head -c1 | grep -q .; do
  dd if="$FILE" bs=$CHUNK skip=$i count=1 2>/dev/null | shasum -a 256 | awk -v i=$i '{print i, $1}'
  i=$((i+1))
done

Compare each line with the matching index and sha256 in the manifest.

FAQ

Why per-chunk hashes instead of one hash for the whole file?

Chunks are hashed in parallel as they upload, which keeps uploads fast. Per-chunk hashes also tell you exactly which part of a file differs, if anything does.

Send up to 5 TB. Pay once.

$1.99 for up to 100 GB. No account, nothing to install, resumes if the connection drops.

Start a transfer