Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-13-2011, 09:42 PM   PM User | #1
garf90
New to the CF scene

 
Join Date: Dec 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
garf90 is an unknown quantity at this point
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
garf90 is offline   Reply With Quote
Old 12-13-2011, 10:12 PM   PM User | #2
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,505
Thanks: 45
Thanked 439 Times in 428 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
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.
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Reply

Bookmarks

Tags
encryption

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:21 AM.


Advertisement
Log in to turn off these ads.