Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
12-13-2011, 09:42 PM #1
- 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.
12-13-2011, 10:12 PM #2
- Join Date
- Feb 2011
- Your Monitor
- Thanked 503 Times in 490 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.My helpful sig is on vacation trying to loose some weight. It got a bit fat and caused a few problems but it will be back at some point!