Improve password hashing algorithm being used #302
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently FoundKey uses bcrypt with the input cost set to 8 (as seen here).
Bcrypt is however not designed to be resistant to GPU and ASIC password crackers. Moreover, it also has limitations like truncating the input to 72 bytes.
We could possibly move to something more modern like Argon2i or Argon2id, though we do have to make sure existing bcrypt password hashes can still work at least for now.
Implemented in #308 - which implements Argon2id, still allows logins with bcrypt passwords, and automatically rehashes on sign-in (though not other password-verification cases).
Implemented in
ed9d4023d4
, thanks @toast!