Encrypt the password
Closed this issue · 1 comments
ThiagoHSouza commented
How can I create a controller to add a user? I don't know how to encrypt the password
szerhusenBC commented
Take a look at this class org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder. I guess you can use it to encode a password string into a bcrypted hash. Otherwise search Google for something like "java bcrypt password".