Re: Checksums, hashes, and digests, oh my!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Just so you know,

Phix begrudgingly(/not an exact match for OE) supports hash(x,HSIEH30), in builtins\hash.e, for reasons lost in the mists of time, and no other values for algo.
(There is also a half-baked and probably quite long dead builtins\phash.e...)

Otherwise it has (not as autoincludes)
builtins\sha256.e (and [uniquely in this list] a separate hand-crafted pwa\builtins\sha256.js)
builtins\sha512.e
builtins\sha1.e
builtins\hmac.e
builtins\md5.e
builtins\ripemd160.e
along with a few other crc32|md4|md5 bits 'n pieces in demo\rosetta.

I would say it feels wrong to me to bundle all such hash algorithms in a single file, as most apps likely only need one, and while the compiler can help a bit, it must be simpler to swap out one for another, without breaking some other unrelated program, ditto ship sources, when they are all in separate files. To my mind a builtins\hash.e might|should perhaps contain some common helper routines, but nothing else.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu