Skip to content

feat: file and sector digest/hash command #27

@acscpt

Description

@acscpt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogFor future considerationcliCommand-line interfaceenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions