Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2011
    Thanked 0 Times in 0 Posts

    need to encrypt a php file for software release


    We are launching a WordPress eCommerce plugin and we have a "paid" option and need to encrypt the relevant file that's in our free version (and has to be).

    We have used ion cube, but both proved a pain for maybe 10% of our users, (ioncube not activated or available on some servers). That 10% was enough to search out a simpler easier solution.

    So i thought i would try here for ideas / suggestions.

    We do not need the end user to decrypt at any time, just need this file working, but unusable outside of our software.

    Thanks in advance.


  2. #2
    Master Coder
    Join Date
    Feb 2011
    Your Monitor
    Thanked 615 Times in 601 Posts
    ioncube really is the leader for this. Unless you're willing to encode it using your own function and then decode it using your own function (pointless as you'll be giving them the code to do so themselves) then there is no other way unless the server has a decoder installed.

    The only other thing you could do is obfuscate it but that basically renames variables to something less obvious.

    The only other thing you could do (and this means your website must have 100% uptime) is to keep the code on your website and issue a key to each user which is linked to their sites ip address/domain. Their script then connects to your server and downloads the code (via some obfuscated code which has been base64_encoded) and then runs that code through eval. Be warned though this makes things very messy if something goes wrong.

    In short there is no 100% perfect way to acheive what you're trying to do.
    Quote Originally Posted by deathshadow View Post
    So seriously, loosen up that tie, let out the belt, and try relating to normal people on the street instead of the gentleman's club crowd.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts