How To Encrypt your passwords in Oracle Application Server

Add the following entry to data-sources.xml
<data-source
class=”com.evermind.sql.DriverManagerDataSource”
name=”jdbc/Oracle”
location=”jdbc/OracleCoreDS”
xa-location=”jdbc/xa/OracleXADS”
ejb-location=”jdbc/OracleDS”
connection-driver=”oracle.jdbc.driver.OracleDriver”
username=”scott”
password=”->PwdForScott”
url=”jdbc:oracle:thin:@incq245ac.idc.oracle.com:1521:V10UTF8″
inactivity-timeout=”30″/>

Then add the following entry to jazn-data.xml

<user>
<name>PwdForScott</name>
<display-name>PwdForScott</display-name>
<description>Scott’s
password</description>
<credentials>!tiger</credentials>
</user>

Restart the OC4J and checked the jazn-data.xml

You will the following With password Encrypted.


<user>
<name>PwdForScott</name>
<display-name>PwdForScott</display-name>
<guid>82D9DA218DD411DBBF9ADBCC94167DAD</guid>
<description>Scott’s
password</description>
<credentials>{903}Say314L4or3AWmsUFg/Glf2L/6GFrqqi</credentials>
</user>

Incoming search terms:

  • how to encrypt and decrypt password in unix for oracle
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


+ 3 = four

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>