Open mentalisttraceur opened 7 months ago
You have a comment in the readme about being unable to make sha256 portable without relying on Python.
Well, there's at least partial progress to be made by using shasum as a fallback. For example:
shasum
if command -v sha256sum >/dev/null then sha256sum ... else shasum -a 256 ... fi
I believe this will cover basically every modern practically usable system that has a /bin/sh.
/bin/sh
In particular, to my knowledge/memory, this covers
sha256sum
If neither exists, yet another option which might be available in places Python isn't is the openssl CLI: openssl sha256, although that has a different output format than the already mentioned.
openssl
openssl sha256
You have a comment in the readme about being unable to make sha256 portable without relying on Python.
Well, there's at least partial progress to be made by using
shasum
as a fallback. For example:I believe this will cover basically every modern practically usable system that has a
/bin/sh
.In particular, to my knowledge/memory, this covers
sha256sum
installed by default),shasum
installed by default).