I am only able to import bcrypt passwords that are hashed using version $2b$
but cannot see a way to import version $2a$
.
This is a problem because I am importing passwords from a system that used Spring’s BcryptPasswordEncoder to hash passwords. BcryptPasswordEncoder uses version $2a$
by default (side note: from looking at most other libraries this is the most common default). The import works just fine using the instructions here, I can activate the user, but then I cannot login with the password.
From troubleshooting, I generated a hash with version $2b$
using the same steps and login works correctly.