ShellIntegration kept its own list of extensions, which had drifted from the one the app reads: .sha384sum and .b3sum
had no "Verify with Hash Tool" entry. It now uses ChecksumFileNames.KnownExtensions, and since the entries are written
again at every start, existing installations pick them up. Tests keep the Core list, the algorithms' extensions and
the macOS document types in build/macos/Info.plist in step.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HashTool.Core now holds everything that does not need a UI:
- HashEngine reads a file once for any number of algorithms, overlaps disk
reads with hashing (double buffering), uses BLAKE3's multi-threaded mode
for large blocks and opens files with FileShare.ReadWrite|Delete so files
still open in another program can be hashed.
- CRC-32 is now printed in the conventional big-endian order (CBF43926 for
"123456789"); HashMatcher still accepts the reversed values written by 1.x.
- ChecksumParser reads GNU (sha256sum), BSD/--tag, xxhsum, SFV, bare 1.x
sidecars and certutil output, including UTF-16 files; ChecksumWriter writes
GNU, BSD, SFV, JSON and CSV (formula-injection safe). Network (UNC) and
device paths inside checksum files are never resolved.
- ChecksumFileNames recognises checksum files by extension and *SUMS names
instead of Enum.TryParse, which accepted numeric extensions like .001.
- FileEnumerator walks folders on a background-friendly lazy enumerator,
skips unreadable folders and does not follow symbolic links or junctions
(the old walker looped forever on link cycles).
- BatchProcessor runs small files in parallel and large files in their own
lane, with per-file cancellation and timeouts, and reports every item once.
- SettingsStore saves atomically, recovers from corrupt files (keeps a .bak),
clamps values, reads 1.x files and imports font_settings.json, which 1.1.x
used as the only store for font choices.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>