package lan.zold.emp; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.stereotype.Service; @Service public class PasswordService { public String enPass(String clearPass) { BCryptPasswordEncoder encoder = new BCryptPasswordEncoder(); String enPass = encoder.encode(clearPass); return enPass; } }