Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
dd86k committed Dec 23, 2021
1 parent e7f0176 commit ba189c5
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# ddh, Generic hasher
# ddh, DD's Hashing command utility

ddh is a generic hasher available cross-platform (Windows, macOS, Linux, BSDs)
ddh is a simple hasher available cross-platform (Windows, macOS, Linux, BSDs)
and comes with more features than built-in OS utilities.

## Feature Comparison

| Feature | ddh | GNU coreutils | openssl | crc32(1)[^1] |
| Feature | ddh | GNU coreutils | OpenSSL | crc32(1)[^1] |
|---|---|---|---|---|
| Binary mode | ✔️ | ✔️ | ✔️ | ✔️ |
| Text mode | ✔️ | ✔️ | | |
| Check support | ✔️ | ✔️[^2] | ✔️ | ✔️ |
| File support | ✔️ | ✔️ | ✔️ | ✔️ |
| Memory-mapped file support | ✔️ | | | |
| Standard input (stdin) support | ✔️ | ✔️ | ✔️ | |
| GNU style hashes | ✔️ | ✔️ | | |
| GNU style hashes | ✔️ | ✔️ | ✔️[^4] | |
| BSD style hashes | ✔️ | ✔️ | ✔️ | |
| [SRI style](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) hashes | ✔️ | | | |
| [SRI style](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) hashes | ✔️ | [^5] | [^5] | |

## Algorithm Availability

| Checksum or Hash | ddh | GNU coreutils | openssl[^3] | crc32(1)[^1] |
| Checksum or Hash | ddh | GNU coreutils | OpenSSL[^3] | crc32(1)[^1] |
|---|---|---|---|---|
| CRC-32 | ✔️ | | | ✔️ |
| CRC-64-ISO | ✔️ | | |
Expand Down Expand Up @@ -126,4 +126,6 @@ dub build -b release-nobounds --compiler=ldc2

[^1]: From the Perl Archive::ZIP package
[^2]: All but cksum and sum
[^3]: See `dgst` command
[^3]: See `dgst` command
[^4]: For unknown reasons, openssl prepends filenames with `*`
[^5]: Possible to do with a [chain of commands](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity#tools_for_generating_sri_hashes), but good luck remembering them.

0 comments on commit ba189c5

Please sign in to comment.