A new digest command that computes a hash of a file's contents on a disc image.
Use case
When comparing files across disc images, or verifying that an extract-and-rebuild cycle produced an identical file, a content hash is the simplest way to confirm integrity. Currently the only way to compare is to extract both copies and diff them externally.
Proposed behaviour
beebtools digest mydisc.ssd T.MYPROG
beebtools digest mydisc.ssd T.MYPROG --algorithm sha256
Prints the hash of the file's raw data on disc. Default algorithm is SHA-256.
A new
digestcommand that computes a hash of a file's contents on a disc image.Use case
When comparing files across disc images, or verifying that an extract-and-rebuild cycle produced an identical file, a content hash is the simplest way to confirm integrity. Currently the only way to compare is to extract both copies and diff them externally.
Proposed behaviour
Prints the hash of the file's raw data on disc. Default algorithm is SHA-256.