On 2025-09-23 02:45, Jakob Bohm via Cygwin wrote:
On 9/19/2025 12:43 PM, Eric Lilja via Cygwin wrote:
I noticed I was missing the "shasum" command in /usr/bin, and was told to
install the package perl-Digest-SHA.

However: The Cygwin setup program displays this message if I select this
package:

Problem 1/1, nothing provides perl5_032 needed by perl-Digest-SHA-6.04-1,
Solution 1/1, default, - do not ask to install perl-Digest-SHA-6.04-1

Looks like the dependency tree for this package is broken?

That utility is now part of perl_base:

        $ cygcheck -f /usr/bin/shasum
        perl-5.40.3-1

which obsoletes perl-Digest-SHA and many more:

obsoletes: perl-CPAN-Meta, perl-CPAN-Meta-Requirements, perl-CPAN-Meta-YAML, perl-Carp, perl-Config-Perl-V, perl-Data-Alias, perl-Digest-SHA, perl-ExtUtils-CBuilder, perl-ExtUtils-MakeMaker, perl-Gnome2, perl-Gnome2-Canvas, perl-Gnome2-GConf, perl-Gnome2-Rsvg, perl-Gnome2-VFS, perl-Gnome2-Vte, perl-Gnome2-Wnck, perl-Gtk2, perl-Gtk2-GladeXML, perl-Gtk2-Notify, perl-Gtk2-SourceView2, perl-Gtk2-Spell, perl-Gtk2-Unique, perl-Gtk2-WebKit, perl-HTTP-Tiny, perl-IO-Socket-IP, perl-IPC-Cmd, perl-JSON-PP, perl-Module-Load-Conditional, perl-Module-Metadata, perl-Pod-Escapes, perl-Pod-Simple, perl-Socket, perl-Test-Harness, perl-Test-Simple, perl-Test2-Suite, perl-Unicode-Collate, perl-Unicode-Normalize, perl-Win32, perl-XSLoader, perl-Parse-CPAN-Meta

FYI legacy crc32:

        $ cygcheck -f /usr/bin/crc32
        perl-Archive-Zip-1.68-4

Note that the sha1sum program worth using is built from source in GNU
coreutils, not the perl script trying to immitate it.

I don't know how to check which Cygwin package contains which file, so
I cannot be sure if /usr/bin/sha1sum.exe is installed by the main
coreutils package or some extra package.

        $ cygcheck -f /usr/bin/sha1sum
        coreutils-9.0-1
        $ cygcheck -f /usr/bin/sum
        coreutils-9.0-1

Part of coreutils, `cksum` provides all the legacy sum, crc, md5, and modern secure hash digest interfaces, choice of command or option selection for most, binary, hex, or base64 output, un-/tagged, or check:

        b2sum, md5sum, sha1sum, sha224sum, sha256sum, sha384sum, sha512sum, sum

-a, --algorithm[=]

        sysv    equivalent to sum -s
        bsd     equivalent to sum -r
        crc     equivalent to cksum
        crc32b  only available through cksum
        md5     equivalent to md5sum
        sha1    equivalent to sha1sum
        sha224  equivalent to sha224sum
        sha256  equivalent to sha256sum
        sha384  equivalent to sha384sum
        sha512  equivalent to sha512sum
        blake2b equivalent to b2sum
        sm3     only available through cksum

If you are looking for the recalled SHA-0 algorithm (it was recalled
when it was brand new), I don't know if it is still available as an
"shasum" program.

Original SHA-0:
        https://nvlpubs.nist.gov/nistpubs/Legacy/FIPS/NIST.FIPS.180.pdf

Update notice with SHIFT added to XOR:
        https://www.govinfo.gov/content/pkg/FR-1994-07-11/html/94-16666.htm

Updated SHA-1:
        https://nvlpubs.nist.gov/nistpubs/Legacy/FIPS/fipspub180-1.pdf

SHA history:
        https://link.springer.com/rwe/10.1007/978-1-4419-5906-5_615

Source:
https://crypto.stackexchange.com/questions/62055/where-can-i-find-a-description-of-the-sha-0-hash-algorithm

--
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                -- Antoine de Saint-Exupéry

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to