Menu

Password decryption in the xml config file.

Help
Alex Tan
2013-10-29
2013-10-29
  • Alex Tan

    Alex Tan - 2013-10-29

    I read the document in the website about database password encryption in the xml config file and I unable to decrypt the password when I connect to my database. So, it return me exception which is invalid user and password. The following is my configuration in my xml config file:

    <xa-datasource id="Derby1A" weight="100" local="true">
    <name>org.apache.derby.jdbc.ClientXADataSource</name>
    <property name="user">clientuser</property>
    <property name="password">64:MTIzNDU2Nzg=</property>
    <property name="portNumber">1527</property>
    <property name="databaseName">Testing</property>
    <property name="serverName">127.0.0.1</property>
    <user>clientuser</user>
    <password>64:MTIzNDU2Nzg=</password>
    </xa-datasource>

    I put 64 in front the password, so, it will decode the password by using Base64 decoder. I referred the document to do this but somehow I still unable to decrypt the password when I connect to my database. Anyone have any idea about my problem ?
    Thanks for your help... :)

     

    Last edit: Alex Tan 2013-10-29
  • Paul Ferraro

    Paul Ferraro - 2013-10-29

    I'm going to hazard a guess that your classpath is missing the apache commons-codec jar, which a dependency of HA-JDBC's Base64CodecFactory. Is that the case?

     

Log in to post a comment.