I removed the public key line from the encrypted file and moved it into the code section. It was a bit redundant to read it from the encrypted line, only to use in the code. With this change, the encrypted part of the file now only contains the encryption.
I added the logic to return the proper decoding code based on whether the GhostHash is being used or not.
If you would like to see what I have done, just shoot me an e-mail to dave at wagontrader dot com.