Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-565

Add a getEncryptedString method in the Configuration interface

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.x
    • Fix Version/s: 2.0
    • Component/s: Expression engine
    • Labels:
      None

      Description

      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

       StandardPBEStringEncryptor encryptor = new StandardPBEStringEncryptor();
                  encryptor.setPassword("mypassphrase");
      encryptor.decrypt("database.password");
      

      decrypt the value and then return the decrypted value. This will allow for more secure property files.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              paranoiabla Petar Tahchiev
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: