Hello and welcome to our community! Is this your first visit?
Register
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
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    need to encrypt a php file for software release

    Hi,

    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.

    G

  • #2
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,296
    Thanks
    57
    Thanked 524 Times in 511 Posts
    Blog Entries
    5
    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.
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!


  •  

    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
    •