import os import weblogic.security.internal.SerializedSystemIni import weblogic.security.internal.encryption.ClearOrEncryptedService Domain="/share1/domains/preprotprod01_domain" encryptedPassword="{AES}RsPj8qHImcgbT2k7xJK2jkTCv97JLN+9Zk3TiWcyKu62q0LE2ypIj8gDOVP7lvOt" print weblogic.security.internal.encryption.ClearOrEncryptedService(weblogic.security.internal.SerializedSystemIni.getEncryptionService(os.path.abspath(Domain))).decrypt(encryptedPassword)