seraphis-migration / wallet3

Info and discussions about a hypothetical full 'wallet2' rewrite from scratch
MIT License
14 stars 0 forks source link

Should we change the password hashing algorithm? #63

Open DangerousFreedom1984 opened 9 months ago

DangerousFreedom1984 commented 9 months ago

Currently the wallet uses cn_slow_hash to hash the password at generate_chacha_key to get a chacha_key that is used for the private keys encryption. Should we replace it for Argon2_id ?

Cryptonight (cn_slow_hash)

Pros

Argon2

Pros

I'm in favor of replacing cn_slow_hash to Argon2 as it is one of the most recommended password hashing algorithm and it would make our library more standardized. Cryptographic arguments explaining why Argon2 is (not) safer are welcome.

UkoeHB commented 9 months ago

What is the wallet migration story for this? It sounds nice, but invites additional maintenance and development costs.