Professional Documents
Culture Documents
Data Source Password
Data Source Password
So, how to decrypt this data in 3 easy steps. Just follow this techtapa recipe:
Ingredients:
- 1 WLST script
- The path of the WebLogic Server domain
- The encrypted field, for example, username and password from boot.properties
Preparation:
1. Copy this WLST script (you can also download it here).
import os
import weblogic.security.internal.SerializedSystemIni
import weblogic.security.internal.encryption.ClearOrEncryptedService
try:
if len(sys.argv) == 3:
decrypt(sys.argv[1], sys.argv[2])
else:
print "INVALID ARGUMENTS"
print " Usage: java weblogic.WLST decryptPassword.py DOMAIN_HOME
ENCRYPTED_PASSWORD"
print " Example:"
print " java weblogic.WLST decryptPassword.py
D:/Oracle/Middleware/user_projects/domains/base_domain
{AES}819R5h3JUS9fAcPmF58p9Wb3syTJxFl0t8NInD/ykkE="
except:
print "Unexpected error: ", sys.exc_info()[0]
dumpStack()
raise
3.Run the script. Go to the path where you copied the WLST script
( decryptPassword.py) and run it. You must provide two arguments, the WebLogic
Server domain Home full path and the string you want to decrypt, for example: