Keats / rust-bcrypt

Easily hash and verify passwords using Bcrypt
MIT License
340 stars 49 forks source link

Question on the default version change #50

Closed alex35mil closed 4 years ago

alex35mil commented 4 years ago

In the 0.6.0, there was a change in default version from 2y to 2b. I have existing userbase with hashes that were generated with the previous default version 2y. Should I opt-out of the new default and stay on the same version during crate update or I can switch to the new default and verify would work for both: old hashes generated with the old default version and the new hashes generated with the new default?

Keats commented 4 years ago

verify will work for both, I think you should be fine staying on the default

alex35mil commented 4 years ago

Thanks!