Hi Daniel,
love the tool so simple to use! Just discovered it yesterday and wow...
Anyway - I see how to use it with properties but how can we use it with ResourceBundles?
I have a multilingual application (i18n) where all the strings are in ResourceBundle files and copyrighted strings (yes, some of the strings are used under copyright licence) need to be encrypted across all languages.
I've completed the ToENC, but can't get the FromENC to work...
Many thanks and best regards
Seán
PS this is a relatively urgent requirement, we're supposed to release next week...
PPS on page http://www.jasypt.org/encrypting-configuration.html shouldn't the line
Properties props = new EncryptableProperties(encryptor);
actually be
EncryptableProperties props = new EncryptableProperties(encryptor);
We don't have any direct integration class for the ResourceBundle interface... but I at first thought I think it should be quite easy to create an implementation with almost the same code as the existing java.util.PropertyResourceBundle, modifying what's done in the constructor of this class:
...so that, intead of creating a "new Properties()" object, you create an "EncryptableProperties" one. Note that jasypt's "EncryptableProperties" class extends from java.util.Properties, so the rest of the code should work just fine.
About that line in the doc... that's correct, because, as said, EncryptableProperties is just a subclass of Properties.
Thanks Daniel,
you've lost me there, I'm not a java guru like you, In-fact I've only just
learnt java in the last two months...
Anyway - something to think about as a leading feature that no-one else can
do and, of course, a real example of how this could work (also to be
published on the web). At your convenience of course.
Thanks for your time and very swift response.
regards
On 29 September 2014 11:20, Daniel Fernandez dfernandez@users.sf.net
wrote:
Related
Feature Requests: #26
Thanks Daniel,
you've lost me there, I'm not a java guru like you, In-fact I've only just learnt java in the last two months...
Anyway - something to think about as a leading feature that no-one else can do and, of course, a real example of how this could work (also to be published on the web). At your convenience of course.
Thanks for your time and very swift response.
regards