Results 1 to 4 of 4

Thread: Recommended options to Encrypt datasource password

  1. #1
    Join Date
    May 2009
    Posts
    13

    Default Recommended options to Encrypt datasource password

    i am looking at recommendations for encrypting passwords in job xml or property files that it reads so that passwords are not in plain text..
    In org.springframework.batch-2.0.0.RELEASE\samples\org.springframework.batch.sa mples\src\main\resources\batch-oracle.properties the value for batch.jdbc.password=spring is in clear.. what would be approach to encrypt password and make it available within batch framework..

    Thanks in advance...

  2. #2
    Join Date
    Dec 2006
    Posts
    1,061

    Default

    If it were me, I would use a FactoryBean to wrap the dataSource, and unencrypt the password there. There may be a better way though. In terms of performing the actual encryption, that's a bit out of scope for this forum, and there's a ton of different ways to do it.

  3. #3

    Default

    jusyes,
    did you fix this problem?
    Even myself need to encrypt and decrypt my db2 password that I hard coded in batch-db2zos.properties.
    As I'm planning to deploy this as a client application in websphere can I configure datasource there and pick the password directly?
    Is it possible for client applications?
    In case enc/dec is the right options, can you suggest a little more details on this?
    Thanks

  4. #4
    Join Date
    Jan 2008
    Location
    San Diego
    Posts
    780

    Default

    Use jasypt. I blogged about this about six months ago...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •