szerhusenBC/jwt-spring-security-demo

Encrypt the password

Closed this issue · 1 comments

How can I create a controller to add a user? I don't know how to encrypt the password

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".