Hello -
I'm using jasypt in one of our apps.
I have the passphrase externalized in a properties file so it can be kept secure. Rest of the properties are in a different properties file including the encrypted passwords and they get loaded up through Spring. I'm observing that if i type the passphrase directly into the wired encryptor, the encryption works. But if i store it in the external file it throws EncryptionNotPossibleException. Below is my spring wiring. I'm wondering if this is a defect. Can you please help.
<bean id="user-content-propertyConfigurer" class="">
<constructor-arg ref="configurationEncryptor">
<property name="locations">
<list>
<value>classpath:passphrase.properties</value>
<value>classpath:app.properties</value>
</list>
</property>
</constructor-arg></bean>
<bean id="user-content-bcProvider" class=""></bean>
<bean id="user-content-configurationEncryptor" class="">
<property name="algorithm" value="PBEWithMD5AndDES">
<property name="password" value="${passphrase}">
<property name="provider">
<ref bean="bcProvider">
</ref></property>
</property></property></bean>