Decrypting sg and ic template files


Both sourceguardian and ioncube can encrypt non php files. They both use a similar method to do that. The PHP encoded files that include the encrypted template file contain information related to the owner of the software and protection keys. These keys are used for encryption of the template files. So, reversing the template files is easy. We just need one encoded PHP file from the same script to extract the key and reverse the encryption methods!