[
https://issues.apache.org/jira/browse/CONFIGURATION-565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oliver Heger resolved CONFIGURATION-565.
----------------------------------------
Resolution: Fixed
Fix Version/s: 2.0
Fixed in subversion in revision 1638386. The user guide has been updated; there
is a new subsection "Encoded Properties" in the "Basic Features" chapter.
> Add a getEncryptedString method in the Configuration interface
> --------------------------------------------------------------
>
> Key: CONFIGURATION-565
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-565
> Project: Commons Configuration
> Issue Type: New Feature
> Components: Expression engine
> Affects Versions: 2.x
> Reporter: Petar Tahchiev
> Fix For: 2.0
>
>
> Hi guys,
> it would be really awesome if the {{Configuration}} could be created with a
> passphrase (another constructor which accepts a string, let's say
> 'mypassphrase') and then you also add a method in the interface (let's say
> getEncodedString('database.password')) so we could have encoded properties in
> our properties files. Internally the method just needs to delegate to
> jasypt's {{StandardPBEStringEncryptor}} for instance
> {code}
> StandardPBEStringEncryptor encryptor = new StandardPBEStringEncryptor();
> encryptor.setPassword("mypassphrase");
> encryptor.decrypt("database.password");
> {code}
> decrypt the value and then return the decrypted value. This will allow for
> more secure property files.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)