|
|
|
@ -27,23 +27,5 @@ public class XitFrameworkApplicationCommandLineRunner implements CommandLineRunn
|
|
|
|
|
//System.out.println(new SCryptPasswordEncoder().encode("gnadmin"));
|
|
|
|
|
//System.out.println(new DelegatingPasswordEncoder().encode("gnadmin", ""));
|
|
|
|
|
//System.out.println(new Pbkdf2PasswordEncoder().encode("gnadmin"));
|
|
|
|
|
|
|
|
|
|
String url = "jdbc:oracle:thin:@211.119.124.118:1521:bustms";
|
|
|
|
|
String username = "traffic";
|
|
|
|
|
String password = "xhdgkq0";
|
|
|
|
|
|
|
|
|
|
System.out.println(jasyptEncoding(url));
|
|
|
|
|
System.out.println(jasyptEncoding(username));
|
|
|
|
|
System.out.println(jasyptEncoding(password));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String jasyptEncoding(String value) {
|
|
|
|
|
|
|
|
|
|
String key = "xit_jasypt_key";
|
|
|
|
|
StandardPBEStringEncryptor pbeEnc = new StandardPBEStringEncryptor();
|
|
|
|
|
pbeEnc.setAlgorithm("PBEWithMD5AndDES");
|
|
|
|
|
pbeEnc.setPassword(key);
|
|
|
|
|
return pbeEnc.encrypt(value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|