3 ms·
One of the best things to come out of protocol labs is https://multiformats.io/ https://multiformats.io/ Really simple mechanisms for things like identifying t
by rudolph9 6y ago
One of the best things to come out of protocol labs is https://multiformats.io/ https://multiformats.io/
Really simple mechanisms for things like identifying the hash algorithm and gives you a programmatic way of supporting new hash algorithms without breaking or changing anything that depends on the old.
- kardos 6y agoThe first example [1] doesn't have the hash-func-type prefix [1] https://multiformats.io/multihash/#the-multihash-format https://multiformats.io/multihash/#the-multihash-format Edit: someone already detected this: https://github.com/multiformats/website/pull/62 https://github.com/multiformats/website/pull/62
- tmcw 6y agoThe PHC string format https://github.com/P-H-C/phc-string-format/blob/master/phc-sf-spec.md https://github.com/P-H-C/phc-string-format/blob/master/phc-s... (used by stuff like Rust's LibreAuth/BoringAuth) is a less fancy but probably better-suited-to-passwords solution, because it can indicate salt values and additional parameters.
- dependenttypes 6y agoI do not think that this would work for the hashes that are used in signatures sadly. In addition I do not see the point for the digest-length parameter.
- owenmarshall 6y agoman 3 crypt | fgrep '$' It's been done before. ;)