Minimal command-line hashing utility for EriX SHA-2 workflows.
Find a file
Erik Inkinen e4d78bb197
All checks were successful
CI / test (push) Successful in 4s
CI / security (push) Successful in 1m26s
CI / minimal-versions (push) Successful in 11s
sha2-tool: drop unstable rustfmt options for stable toolchains
2026-03-23 10:19:57 +02:00
.github Refactor milestone terminology to "Component Milestone" for clarity in PR template and contributing guidelines; enhance README with additional sections on usage, dependencies, and design constraints. 2026-03-05 11:55:46 +02:00
src Enhance README and main.rs to support SHA-256 hashing and update usage instructions 2026-02-26 17:08:32 +02:00
.editorconfig Initial commit 2026-02-26 15:55:53 +01:00
.gitignore Initial commit 2026-02-26 15:55:53 +01:00
ARCHITECTURE.md Initialize sha2-tool 2026-02-26 16:58:19 +02:00
Cargo.toml Add initial implementation of sha2-tool with SHA-512 support 2026-02-26 17:01:39 +02:00
CODE_OF_CONDUCT.md Initial commit 2026-02-26 15:55:53 +01:00
CONTRIBUTING.md Refactor milestone terminology to "Component Milestone" for clarity in PR template and contributing guidelines; enhance README with additional sections on usage, dependencies, and design constraints. 2026-03-05 11:55:46 +02:00
LICENSE Initial commit 2026-02-26 15:55:53 +01:00
README.md Refactor milestone terminology to "Component Milestone" for clarity in PR template and contributing guidelines; enhance README with additional sections on usage, dependencies, and design constraints. 2026-03-05 11:55:46 +02:00
ROADMAP.md Update README and ROADMAP to reflect implemented SHA-256 and SHA-512 commands, enhance current status, and clarify next steps 2026-02-28 04:53:45 +02:00
rustfmt.toml sha2-tool: drop unstable rustfmt options for stable toolchains 2026-03-23 10:19:57 +02:00
SECURITY.md docs: align security policy phase numbering 2026-03-11 05:28:15 +02:00

sha2-tool

Minimal command-line hashing utility for EriX SHA-2 workflows.

This tool is intended as a clean-room sha256sum/sha512sum style utility, built on lib-sha2.


Scope

Implemented commands:

  • hash files and stdin with SHA-512
  • hash files and stdin with SHA-256
  • print deterministic lowercase hex digests

This tool does not provide:

  • HMAC/KDF functionality
  • signature verification
  • recursive directory hashing policy

Why this exists

EriX needs a local, auditable hashing CLI for development pipelines and test fixtures without external dependencies.


Design constraints

  • no external Rust crates
  • deterministic output formatting
  • explicit, non-ambiguous error messages
  • suitable for CI and scripting

Planned usage shape

Examples:

  • sha2-tool sha512 <file>
  • sha2-tool sha256 <file>
  • sha2-tool sha512 - (read stdin)

Dependencies

  • lib-sha2 for hashing implementation

Status

Implemented baseline.

sha256 and sha512 command paths, stdin mode, and sum-style output are implemented. Remaining work focuses on robustness tests and optional compatibility flags.

See ARCHITECTURE.md and ROADMAP.md.