One comment

  • I had an issue with syntax for the python scripts posted in several locations. Here is what finally worked after some formatting:

    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:
    decrypt(sys.argv[1], sys.argv[2])
    except:
    print “Unexpected error: “, sys.exc_info()[0]
    dumpStack()

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s