2023-02-19 13:20:30 +01:00
|
|
|
# b3sum
|
|
|
|
|
2023-05-19 11:34:36 +02:00
|
|
|
> Calculate BLAKE3 cryptographic checksums.
|
2023-02-19 13:20:30 +01:00
|
|
|
> More information: <https://github.com/BLAKE3-team/BLAKE3/tree/master/b3sum>.
|
|
|
|
|
2023-05-19 11:34:36 +02:00
|
|
|
- Calculate the BLAKE3 checksum for one or more files:
|
2023-02-19 13:20:30 +01:00
|
|
|
|
2023-05-19 11:34:36 +02:00
|
|
|
`b3sum {{path/to/file1 path/to/file2 ...}}`
|
2023-02-19 13:20:30 +01:00
|
|
|
|
2023-05-19 11:34:36 +02:00
|
|
|
- Calculate and save the list of BLAKE3 checksums to a file:
|
2023-02-19 13:20:30 +01:00
|
|
|
|
2023-05-19 11:34:36 +02:00
|
|
|
`b3sum {{path/to/file1 path/to/file2 ...}} > {{path/to/file.b3}}`
|
2023-02-19 13:20:30 +01:00
|
|
|
|
2023-05-19 11:34:36 +02:00
|
|
|
- Calculate a BLAKE3 checksum from `stdin`:
|
2023-02-19 13:20:30 +01:00
|
|
|
|
2023-05-20 04:11:11 +02:00
|
|
|
`{{command}} | b3sum`
|
2023-02-19 13:20:30 +01:00
|
|
|
|
2024-11-23 22:45:05 +01:00
|
|
|
- Read a file of BLAKE3 checksums and filenames and verify all files have matching checksums:
|
2023-02-19 13:20:30 +01:00
|
|
|
|
2025-03-26 02:30:50 +02:00
|
|
|
`b3sum {{[-c|--check]}} {{path/to/file.b3}}`
|
2023-02-19 13:20:30 +01:00
|
|
|
|
2023-05-19 11:34:36 +02:00
|
|
|
- Only show a message for missing files or when verification fails:
|
2023-02-19 13:20:30 +01:00
|
|
|
|
2025-03-26 02:30:50 +02:00
|
|
|
`b3sum {{[-c|--check]}} --quiet {{path/to/file.b3}}`
|
2024-11-23 22:45:05 +01:00
|
|
|
|
|
|
|
- Check a known BLAKE3 checksum of a file:
|
|
|
|
|
2025-03-26 02:30:50 +02:00
|
|
|
`echo {{known_blake3_checksum_of_the_file}} {{path/to/file}} | b3sum {{[-c|--check]}}`
|