Does anybody know what encrypting technique is JDeveloper/SQL Developer using to persist credentials?

后端 未结 11 2132
广开言路
广开言路 2020-12-22 18:46

I\'d be more than interesting for me to understand which technique is being used here to persist sensible data since I\'m needing to implement a similar solution. Here\'s a

11条回答
  •  误落风尘
    2020-12-22 19:39

    The same code as kornelissietsma has given, but written on java:

    import oracle.jdevimpl.db.adapter.DatabaseProviderHelper;
    
    class Decode {
        String pass = ""; 
    
        public Decode() {
            pass = DatabaseProviderHelper.comingIn("HASH");
            System.out.println(pass);
        }   
    
        public static void main(String[] args){
            new Decode();
        }   
    }
    

    Can be executed as following:

    # javac -classpath .:/full/path/to/sqldeveloper/BC4J/lib/db-ca.jar:/full/path/to/sqldeveloper/jlib/ojmisc.jar sqldeveloper_hash_decode.java
    # java -classpath .:/full/path/to/sqldeveloper/BC4J/lib/db-ca.jar:/full/path/to/sqldeveloper/jlib/ojmisc.jar Decode
    

提交回复
热议问题