Hi,

I'm trying to find out the implementation logic of encrypting a data source
password when adding a new data source from the Carbon console. When I try
to add a new data source it is getting created in registry as following;

<datasource><name>MyTestDS</name><description>test data
source</description><definition
type="RDBMS"><configuration><driverClassName>oracle.jdbc.OracleDriver</driverClassName><url>...</url><username>mydeq_usr</username><password
encrypted="true">M/9Vf2jJLZTaIgyJJYSQTATcWkxdYyXiPkxMBPBurBJUqXuRvIWX6T8wt76cMW7lA9KN/0xiwKoSIKyQRMT6xi0SK7hCcKqTJcposC4LhL2/kR0ZIS5VANUpmV111068vPR/zt64L2pHqTcFlHE7De52UeA3JkCVN2c+ImzZcWE=</password><validationQuery>select
1 from dual</validationQuery></configuration></definition></datasource>

It seems password is encrypted before storing as it should be. Can anyone
please point me to the source code in which this encryption() method is
called?

Thanks.

-- 
Akila Ravihansa Perera
Software Engineer, WSO2

Blog: http://ravihansa3000.blogspot.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to