Skip to content

Pipe hashes to a file #8

@sergeevabc

Description

@sergeevabc

Windows 7 x64, sha256sum 2.0.4.

Source: sha256sum_20250612.zip

Проверка
├── birds.txt
├── pájaros.txt
├── rhash.exe
├── sha256sum01.exe
├── sha256sum02.exe   - di-mgt.com.au
├── sha256sum03.exe   - coreutils 6.11
├── sha256sum04.exe   - github.com/markpizz/HashSum (should be renamed to sha256sum.exe to work)
├── vögel.txt
├── птицы-vögel-pájaros-birds.txt
└── птицы.txt

sha256sum01 by @cwansart is the only sha256sum out of four you can find on the Internet that works with Unicode, great! But I still cannot pipe hashes to a file, because sha256sum01 *.txt > sums throws an error.

image

I do not know if only Windows 7 is affected, but I know for sure that it can be fixed, because rhash (written in C as well) can do that. It pipes hashes to a UTF8 file which can then be verified without issues.

$ rhash --sha256 *.txt > sums

$ file sums
sums: Unicode text, UTF-8 text, with CRLF line terminators

$ sha256sum01 -c sums
birds.txt: OK
pájaros.txt: OK
vögel.txt: OK
птицы-vögel-pájaros-birds.txt: OK
птицы.txt: OK

Oh, Christian! You are one step away from creating the perfect sha25sum. It's so exciting!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions