Hi,
i am using b3sum (rust) to validate the blake3 checksums generated by total commander.
But the implementation of total commander and b3sum have some issues working together.
GitHub - BLAKE3-team/BLAKE3: the official Rust and C implementations of the BLAKE3 cryptographic hash function
https://github.com/BLAKE3-team/BLAKE3
b3sum --version
b3sum 1.5.0
Total Commander 11.02
1. I am getting issues regarding German Umlaute. b3sum seem to expect UTF8 encoding.
Error: stream did not contain valid UTF-8
2. Total Commander generates the hash file with a cr/lf at the end of the line.
checking with b3sum -c gives the error:
: FAILED (Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch. (os error 123))
b3sum: WARNING: 1 computed checksum did NOT match
This seems to addressed but not solved here:
b3sum can't read hashes from file with non-unix endings · Issue #222 · BLAKE3-team/BLAKE3 · GitHub
https://github.com/BLAKE3-team/BLAKE3/issues/222
blake3 / incompatibilities with cli (original) b3sum implementation
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: blake3 / incompatibilities with cli (original) b3sum implementation
1. There is a checkbox to force UTF-8 when creating checksums
2. Total Commander is a Windows program, so it uses Windows style line breaks when creating checksums. It can handle also Unix and Mac style line breaks. It's not our fault that b3sum doesn't support them, sorry.
2. Total Commander is a Windows program, so it uses Windows style line breaks when creating checksums. It can handle also Unix and Mac style line breaks. It's not our fault that b3sum doesn't support them, sorry.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: blake3 / incompatibilities with cli (original) b3sum implementation
2Anselm
Anyone who is reasonably knowledgeable can manually rework checksum files in one or another way before further processing without any problems. Where is that a problem? Shaking head...
Jo"sed rules"ube
Anyone who is reasonably knowledgeable can manually rework checksum files in one or another way before further processing without any problems. Where is that a problem? Shaking head...
Jo"sed rules"ube
Re: blake3 / incompatibilities with cli (original) b3sum implementation
1. Thank you, this solves my problemghisler(Author) wrote: 2023-11-27, 10:01 UTC 1. There is a checkbox to force UTF-8 when creating checksums
2. Total Commander is a Windows program, so it uses Windows style line breaks when creating checksums. It can handle also Unix and Mac style line breaks. It's not our fault that b3sum doesn't support them, sorry.
2. There is also an option to generate unix lf, this solves my other issue
Thank you!
Solved!
Re: blake3 / incompatibilities with cli (original) b3sum implementation
2JOUBEJOUBE wrote: 2023-11-27, 12:24 UTC 2Anselm
Anyone who is reasonably knowledgeable can manually rework checksum files in one or another way before further processing without any problems. Where is that a problem? Shaking head...
Jo"sed rules"ube
You have enough knowledge to do it manually? I can help you to do it automatically:
use dos2unix and iconv
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: blake3 / incompatibilities with cli (original) b3sum implementation
Moderator message
Moved to English forum
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com