blake3 / incompatibilities with cli (original) b3sum implementation

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Anselm
Junior Member
Junior Member
Posts: 31
Joined: 2013-09-17, 17:06 UTC

blake3 / incompatibilities with cli (original) b3sum implementation

Post by *Anselm »

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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48118
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: blake3 / incompatibilities with cli (original) b3sum implementation

Post by *ghisler(Author) »

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.
Author of Total Commander
https://www.ghisler.com
JOUBE
Power Member
Power Member
Posts: 1484
Joined: 2004-07-08, 08:58 UTC

Re: blake3 / incompatibilities with cli (original) b3sum implementation

Post by *JOUBE »

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
Anselm
Junior Member
Junior Member
Posts: 31
Joined: 2013-09-17, 17:06 UTC

Re: blake3 / incompatibilities with cli (original) b3sum implementation

Post by *Anselm »

ghisler(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.
1. Thank you, this solves my problem
2. There is also an option to generate unix lf, this solves my other issue

Thank you!
Solved!
Anselm
Junior Member
Junior Member
Posts: 31
Joined: 2013-09-17, 17:06 UTC

Re: blake3 / incompatibilities with cli (original) b3sum implementation

Post by *Anselm »

JOUBE 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
2JOUBE
You have enough knowledge to do it manually? I can help you to do it automatically:
use dos2unix and iconv
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48118
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: blake3 / incompatibilities with cli (original) b3sum implementation

Post by *ghisler(Author) »

Moderator message

Moved to English forum
Author of Total Commander
https://www.ghisler.com
Post Reply