bcrypt.js icon indicating copy to clipboard operation
bcrypt.js copied to clipboard

is there a way to generate password with old scheme 2a?

Open gerald2545 opened this issue 9 months ago • 2 comments

We updated our web app to reinit our users password using bcrypt.js. During our tests, we identified a problem : password are currently set using old scheme 2a.

So if we use bcrypt.js to reinit passwords, they are set using 2b scheme...and our other (old) apps can no longer connect (e.g. error : unrecognised crypt scheme 2b).

I will plan to test and update all my other apps....be it will be a huge work....in the meantine, I'm wondering if bcrypt.js can generate passwords with 2a scheme...

thank you for your help

Gérald

gerald2545 avatar May 05 '25 16:05 gerald2545

hum, seems replacing $2b with $2a in the generated password works!!

gerald2545 avatar May 05 '25 16:05 gerald2545

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in one week if no further activity occurs. Thank you for your contributions!

github-actions[bot] avatar Jun 05 '25 01:06 github-actions[bot]