The script is used for encrypting the datasource passwords on jboss servers [ref][jboss-wiki].
The flow is as follows:
- Encrypt the plain texts of passwords
- Change the
*-ds.xml
files, like
<!-- REPLACED WITH security-domain BELOW
<user-name>admin</user-name>