FeatureFuel
3

feat(auth): use argon2id as default algorithm for GenerateFromPassword

Source: supabase/supabase#44689 · opened by @victorafael26
Summary

Supabase Auth already supports *verifying* argon2id hashes (PR #1597), but
GenerateFromPassword still defaults to bcrypt. Request: make argon2id the
default for all newly-created password hashes.

Motivation

• OWASP Password Storage Cheat Sheet designates Argon2id as first recommendation
• bcrypt silently truncates passwords >72 bytes; argon2id has no such limit
• argon2id is resistant to GPU/ASIC cracking attacks

Proposed behaviour

• New signups use argon2id instead of bcrypt
• Existing bcrypt hashes continue to work via the prefix-based dispatcher already in place
• On next successful login with old bcrypt hash, transparently re-hash to argon2id
• golang.org/x/crypto/argon2 is already a dependency — no new deps needed

References

• Community discussion:
• PR #1597 (argon2id verification already merged)

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests