package it.finki.charitable.security; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; @Configuration public class PasswordEncoder { @Bean public static BCryptPasswordEncoder bCryptPasswordEncoder() { return new BCryptPasswordEncoder(10); } }