SHA256 checksums

Anders F Björklund afb at macports.org
Mon Oct 10 05:26:11 PDT 2011


Jeremy Lavergne wrote:

> Following up on a previous thread conversation [1], I'd like to know if
> we're remotely interested in offering multi-length SHA256 checksums. This
> will allow us to have SHA256 checksums of a more desirable length while
> automatically switching between the bases.

There was no such interest, and RIPEMD-160 was kept too...

> Specifically, inside the portchecksum::checksum_main function we would
> check the length of the existing checksum to provide an optional argument
> to portchecksum::calc_256 to switch which the base of checksum it returns.
> Apparently afb already submitted base32 encode/decode to pextlib.

That was the idea, yes. And I used base32hex, personal bias.

--anders



More information about the macports-dev mailing list