2023-02-19 12:20:30 +00:00
|
|
|
# b3sum
|
|
|
|
|
2023-05-19 10:34:36 +01:00
|
|
|
> Calculate BLAKE3 cryptographic checksums.
|
2023-02-19 12:20:30 +00:00
|
|
|
> More information: <https://github.com/BLAKE3-team/BLAKE3/tree/master/b3sum>.
|
|
|
|
|
2023-05-19 10:34:36 +01:00
|
|
|
- Calculate the BLAKE3 checksum for one or more files:
|
2023-02-19 12:20:30 +00:00
|
|
|
|
2023-05-19 10:34:36 +01:00
|
|
|
`b3sum {{path/to/file1 path/to/file2 ...}}`
|
2023-02-19 12:20:30 +00:00
|
|
|
|
2023-05-19 10:34:36 +01:00
|
|
|
- Calculate and save the list of BLAKE3 checksums to a file:
|
2023-02-19 12:20:30 +00:00
|
|
|
|
2023-05-19 10:34:36 +01:00
|
|
|
`b3sum {{path/to/file1 path/to/file2 ...}} > {{path/to/file.b3}}`
|
2023-02-19 12:20:30 +00:00
|
|
|
|
2023-05-19 10:34:36 +01:00
|
|
|
- Calculate a BLAKE3 checksum from `stdin`:
|
2023-02-19 12:20:30 +00:00
|
|
|
|
2023-05-20 03:11:11 +01:00
|
|
|
`{{command}} | b3sum`
|
2023-02-19 12:20:30 +00:00
|
|
|
|
2023-05-19 10:34:36 +01:00
|
|
|
- Read a file of BLAKE3 sums and filenames and verify all files have matching checksums:
|
2023-02-19 12:20:30 +00:00
|
|
|
|
2023-05-19 10:34:36 +01:00
|
|
|
`b3sum --check {{path/to/file.b3}}`
|
2023-02-19 12:20:30 +00:00
|
|
|
|
2023-05-19 10:34:36 +01:00
|
|
|
- Only show a message for missing files or when verification fails:
|
2023-02-19 12:20:30 +00:00
|
|
|
|
2023-05-19 10:34:36 +01:00
|
|
|
`b3sum --check --quiet {{path/to/file.b3}}`
|