Which password hashing algorithms are supported #616
Replies: 1 comment 2 replies
-
Hey @Erudition — we use There, you can configure the hashing algorithm and many more options: https://github.com/saintedlama/passport-local-mongoose#options But, we don't currently expose a way to override What are your thoughts? PS - I'm going to move this to a Discussion so we can continue there! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Documentation Issue
I cannot find anything in the documentation on how the password hashing works. I see the hash and salt are stored in the database, but not a field regarding which algorithm was used (does this mean it's hardcoded?)
Additional Details
We at Snowdrift.coop are currently using PBKDF1, for example, and now that Payload is FLO I'd like to advocate using it for our new site. If we could migrate our user database without having to force everyone to reset their password, that would be a boon.
Ideally, we store the old hashes with a hash algo field set to PBKDF1, and upon password reset Payload can replace it with whatever it uses as default. Both would co-exist peacefully and the old records would slowly be replaced over time.
Beta Was this translation helpful? Give feedback.
All reactions