multiformats/go-multihash

Add argon2id as a function

Closed this issue · 4 comments

This will need a codec here: https://github.com/multiformats/multicodec/. Like blake2b, this'll need a range of multicodecs (sigh).

I implemented it for myself :)
https://github.com/HazCod/gosecurity/tree/master/gohash

Note: in the end, argon uses blake, so are we not talking about the same thing?

Hm. Actually, this isn't going to work. It looks like Argon2 is a password-hashing algorithm build on blake2b. Multihash expects expects hash(data) to always produce the same result and is designed for identifying data and/or verifying data integrity. Argon2 generates a new random salt each time it hashes something, leading to a different "hash".

Good point! I will keep my repo.