|
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
|
|
|
public class HashPassword {
|
|
public static void main(String[] args) {
|
|
BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
|
|
String hash = encoder.encode("Admin@123");
|
|
System.out.println(hash);
|
|
}
|
|
}
|