How to Decrypt Weblogic Admin Password

Please find below steps on how to change Weblogic Admin Password !!!!

 

1. Copy below WLST script and save it in a file called PasswordDecryption.py

###########################################################################
import os
import weblogic.security.internal.SerializedSystemIni
import weblogic.security.internal.encryption.ClearOrEncryptedService

def decrypt(domainHomeName, encryptedPwd):
domainHomeAbsolutePath = os.path.abspath(domainHomeName)
encryptionService = weblogic.security.internal.SerializedSystemIni.getEncryptionService(domainHomeAbsolutePath)
ces = weblogic.security.internal.encryption.ClearOrEncryptedService(encryptionService)
clear = ces.decrypt(encryptedPwd)
print “RESULT:” + clear

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
###########################################################################

2. Set your environment

$ cd [FMW_HOME]/wlserver_10.3/server/bin/ and run the script setWLSEnv.sh
$ . ./setWLSEnv.sh

3. Run the above created script.

$ java weblogic.WLST PasswordDecryption.py /u01/fmw/user_projects/domains/base_domain {AES}PU5dLTT0PlnNb5Cl1Fo97rC2AbMFwIcyLtCVEDTb+7zZ\=

Nagulu Polagani

"We are all apprentices in a craft where no one ever becomes a master."