|
1 |
| -# ddh, Generic hasher |
| 1 | +# ddh, DD's Hashing command utility |
2 | 2 |
|
3 |
| -ddh is a generic hasher available cross-platform (Windows, macOS, Linux, BSDs) |
| 3 | +ddh is a simple hasher available cross-platform (Windows, macOS, Linux, BSDs) |
4 | 4 | and comes with more features than built-in OS utilities.
|
5 | 5 |
|
6 | 6 | ## Feature Comparison
|
7 | 7 |
|
8 |
| -| Feature | ddh | GNU coreutils | openssl | crc32(1)[^1] | |
| 8 | +| Feature | ddh | GNU coreutils | OpenSSL | crc32(1)[^1] | |
9 | 9 | |---|---|---|---|---|
|
10 | 10 | | Binary mode | ✔️ | ✔️ | ✔️ | ✔️ |
|
11 | 11 | | Text mode | ✔️ | ✔️ | | |
|
12 | 12 | | Check support | ✔️ | ✔️[^2] | ✔️ | ✔️ |
|
13 | 13 | | File support | ✔️ | ✔️ | ✔️ | ✔️ |
|
14 | 14 | | Memory-mapped file support | ✔️ | | | |
|
15 | 15 | | Standard input (stdin) support | ✔️ | ✔️ | ✔️ | |
|
16 |
| -| GNU style hashes | ✔️ | ✔️ | | | |
| 16 | +| GNU style hashes | ✔️ | ✔️ | ✔️[^4] | | |
17 | 17 | | BSD style hashes | ✔️ | ✔️ | ✔️ | |
|
18 |
| -| [SRI style](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) hashes | ✔️ | | | | |
| 18 | +| [SRI style](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) hashes | ✔️ | [^5] | [^5] | | |
19 | 19 |
|
20 | 20 | ## Algorithm Availability
|
21 | 21 |
|
22 |
| -| Checksum or Hash | ddh | GNU coreutils | openssl[^3] | crc32(1)[^1] | |
| 22 | +| Checksum or Hash | ddh | GNU coreutils | OpenSSL[^3] | crc32(1)[^1] | |
23 | 23 | |---|---|---|---|---|
|
24 | 24 | | CRC-32 | ✔️ | | | ✔️ |
|
25 | 25 | | CRC-64-ISO | ✔️ | | |
|
@@ -126,4 +126,6 @@ dub build -b release-nobounds --compiler=ldc2
|
126 | 126 |
|
127 | 127 | [^1]: From the Perl Archive::ZIP package
|
128 | 128 | [^2]: All but cksum and sum
|
129 |
| -[^3]: See `dgst` command |
| 129 | +[^3]: See `dgst` command |
| 130 | +[^4]: For unknown reasons, openssl prepends filenames with `*` |
| 131 | +[^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 commit comments