Password encoders

Report a typo

Encode the given password with BCryptPasswordEncoder of the Spring Security Crypto module. Enter the missing code.

Java
String rawPassword = "password";
PasswordEncoder bCryptEncoder = new BCryptPasswordEncoder(6);
String encodedPassword = _________________;    // Fill in this blank
Kotlin
val rawPassword = "password"
val bCryptEncoder = BCryptPasswordEncoder(6)
val encodedPassword = _________________ // Fill in this blank
Enter a short text
___

Create a free account to access the full topic