dischash

command
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: GPL-3.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command dischash hashes a disc image's track data to match it against a reference (redump-style) breakdown. It reads the disc through romloader, so it supports every container format romloader handles (CHD and cue/bin). It is not tied to a single file type.

For each disc it prints an overall CRC-32 taken over the concatenation of every track's raw sectors in track order (pregaps excluded, matching the length/sector counts of a redump-style breakdown). The overall CRC-32 is the value used to match a disc against a reference dump. The hashing is console-agnostic.

It also prints a product number (disc ID) and title when the disc carries a Sega Saturn IP header; other discs leave those blank.

With -v it instead prints a per-track table (number, type, pregap, length, sectors, size, CRC-32, MD5, SHA-1) followed by a Total row carrying the summed length, sector count, byte size, and the overall CRC-32.

Hashing is a single streaming pass: each sector is read once and fed to the active hashers, so memory use is independent of disc size.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL