How snowfish2871/ehsc- works
EHsc is a Windows command-line and interactive tool for hashing and checking files, implemented without external cryptographic libraries. The main workflow accepts command-line or menu input, resolves files or folders, computes selected digests, and presents or saves results; users can also verify manifests, compare files, benchmark algorithms, and monitor file activity. The README documents these capabilities and the layer design; sampled excerpts show several command-to-engine calls, but not every internal implementation link.
Main entry points: main.cpp Commands and menu · core.cpp Hash jobs · watch.cpp File activity monitor · report.cpp Manifest verification
Components 15
Entry and interaction
- Commands and menu
src/main.cpp - Console UI and config
src/ui.cpp
File processing
- Job control
src/core.cpp - File and folder scan
src/core.cpp - Hash jobs
src/core.cpp - Byte comparison
src/core.cpp - Algorithm benchmark
src/core.cpp
Reports and monitoring
- Manifest output
src/report.cpp - Manifest verification
src/report.cpp - File activity monitor
src/watch.cpp
Algorithms and Windows
- Hash algorithms
src/hashes.cpp - Windows utilities
src/win32_utils.cpp
Other components
- User or script
- Local files
- Windows processes
Connections 23
- User or script → Commands and menu: invokes
README.md - Commands and menu → Console UI and config: uses interface
src/main.cpp - Commands and menu → Hash jobs: runs hash job
src/main.cpp - Commands and menu → Manifest verification: verifies manifest
src/main.cpp - Commands and menu → Byte comparison: compares files
src/main.cpp - Commands and menu → Algorithm benchmark: runs benchmark
src/main.cpp - Commands and menu → File activity monitor: starts monitor
src/main.cpp - Commands and menu → Manifest output: builds watch report
src/main.cpp - Commands and menu → Job control: controls tasks
- File and folder scan → Local files: enumerates
- Hash jobs → File and folder scan: scans targets
src/core.cpp - Hash jobs → Hash algorithms: computes digests
- Hash jobs → Local files: reads files
- Byte comparison → Local files: reads bytes
- Algorithm benchmark → Hash algorithms: measures throughput
- Manifest verification → Manifest output: parses manifest
src/report.cpp - Manifest verification → Hash jobs: recomputes digests
- Manifest output → Local files: writes output
- File activity monitor → Local files: observes changes
- File activity monitor → Windows processes: samples handles
- Commands and menu → Windows utilities: uses platform services
src/main.cpp - Console UI and config → Windows utilities: uses console and dialogs
src/ui.cpp - File activity monitor → Windows utilities: uses native APIs