RustCrypto / password-hashes

Password hashing functions / KDFs
652 stars 80 forks source link

are these 2 different parameters basically the same? #493

Closed leyloe closed 5 months ago

leyloe commented 5 months ago

argon2id iterations: 20 mem cost: 250 mb

argon2id iterations: 2 mem cost: 5gb

does this basically have more memory over time? will these be equally just as hard to crack in all circumstances

tarcieri commented 5 months ago

One is using more memory, whereas the other has more iterations, so they are not the same.

Their relative strength will depend on the attacker's relative computation and memory bandwidth.