Is there any way that I could encrypt the application context entries, for example:
<bean id="securityDataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
<property name="url" value="jdbc:mysql://192.168.0.1/schemaname?useUnicode=true&characterEncoding=utf-8"/>
<property name="username" value="{this should be encrypted}"/>
<property name="password" value="{this should be encrypted}"/>
</bean>
What I want to do is to encrypt the username & password.
You will need to externalize the properties using the propertyPlaceHolder. Once you do that you can use the Jasypt version of property place holder that supports encryption.