Home > Enterprise >  What returns new BCryptPasswordEncoder
What returns new BCryptPasswordEncoder

Time:08-07

I have Spring Boot Security app with login form which works with BCryptPasswordEncoder.

My user has password 100.

So what I should put as a password in login form - hash of number 100?

like $2a$12$X.omeLbXLKHzA9Hp5hNY8.Buc0Fuisz6eG0gyizubZPu0l2pgwKM.?

CodePudding user response:

If user's password already exists in DB as a hash, just put 100 as a password. Spring Security automatically gets hash of your input and compares it with DB hash.

  • Related