zyedidia / eget

Easily install prebuilt binaries from GitHub.
MIT License
1k stars 42 forks source link

Feature Request: Expand download validation to other formats #114

Open gdevenyi opened 2 weeks ago

gdevenyi commented 2 weeks ago

The following hash functions are pacakged in coreuitls: sha1sum sha224sum sha256sum sha384sum sha512sum shasum in addition there is the older md5sum

They all follow the same structure/format.

I imagine if more than one is available there would be a rank-ordered preference.

JoeKar commented 1 week ago

As mentioned in https://github.com/zyedidia/micro/issues/3486#issuecomment-2380978353 it would be nice to directly support the generic *.sha (chosen for the micro artifacts :wink:) file extension for an arbitrary sha hash...may it be sha1, sha224, sha256, sha384 or sha512. The length of the hash should be sufficient enough to identify the respective sha#sum for validation, in case the core libraries don't do it themself.