My app stores db connection-strings in an xml config file that is stored under source-control ( svn ).
When deployed in prod, my app needs to retrieve the encrypted strings and decrypt them.
The ability to perform ad-hoc encryption should be limited to the prod operations group -- nobody else should know the raw prod db connection-strings. Only the encrypted prod db connection-strings are checked-in to source-control
The app's ability to decrypt the strings be limited to its deployment in prod. ( In dev/qa , the config file contains connection strings to non-prod dbs , and these are not encrypted. )
I am wondering if a public/private key certs based mechanism could be adapted for this purpose ?
Or what is a minimalist design ?
Are libs/tools available to this end ?