BCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder(10);
String encode = bCryptPasswordEncoder.encode("root");
System.out.println(encode);
String encode2 = bCryptPasswordEncoder.encode("root");
System.out.println(encode2);
System.out.println(bCryptPasswordEncoder.matches("root", encode));
System.out.println(BCrypt.checkpw("root", encode2));