Note: We can do this only if we have boot.properties file under $DOMAIN_HOME/servers/AdminServer/security
Copy and paste the below code into it and save the file:
from weblogic.security.internal import *
from weblogic.security.internal.encryption import *
encryptionService =
SerializedSystemIni.getEncryptionService(".")
clearOrEncryptService = ClearOrEncryptedService(encryptionService)
# Take encrypt password from user
pwd = raw_input("Paste encrypted password ({AES}fk9EK...): ")
# Delete unnecessary escape characters
preppwd = pwd.replace("\\", "")
# Display password
print "Decrypted string is: " +
clearOrEncryptService.decrypt(preppwd)
Save and close the file
Set the environment variables as below:
Get encrypted username and password from boot.properties file of
AdminServer as below:
Username:
Password:
Copy this encrypted password and keep it with you
Decrypting the weblogic server admin password:
Navigate to $DOMAIN_HOME/security directory
and run the following command to start decryption:
It will ask us to paste the encrypted password,
Paste the encrypted password we get above and click enter
We will get the decrypted password as below: