Hi, If you need the place where encryption happens, it's in [1] method "encrypt"
[1] - https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/core/org.wso2.carbon.core/4.2.0/src/main/java/org/wso2/carbon/core/util/CryptoUtil.java Thanks, On Mon, Jan 19, 2015 at 12:16 PM, Rajith Vitharana <[email protected]> wrote: > Hi, > > It is done in class [1] method secureSaveElement > > [1] - > https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/core/org.wso2.carbon.ndatasource.core/4.2.0/src/main/java/org/wso2/carbon/ndatasource/core/utils/DataSourceUtils.java > > Thanks, > > On Mon, Jan 19, 2015 at 11:59 AM, Akila Ravihansa Perera < > [email protected]> wrote: > >> 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 >> > > > > -- > Rajith Vitharana > > Software Engineer, > WSO2 Inc. : wso2.com > Mobile : +94715883223 > Blog : http://lankavitharana.blogspot.com/ > -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
