Zen Cart Logo
Forums / All Other Contributions/Addons / IonCube Licensing add-on request

IonCube Licensing add-on request

Views: 1,526

Results 1 to 8 of 8
30 Sep 2011, 3:21 PM
#1
raydube avatar

raydube

New Zenner

Join Date:
Sep 2006
Posts:
51
Plugin Contributions:
0

IonCube Licensing add-on request

Has anyone considered or written a licensing add-on for Zen cart for software sales?

Has anyone integrated IonCube with Zen cart for the same purpose?

I'd rather not have to create my own mod, if one already exists.

Ray

1 Oct 2011, 6:36 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: IonCube Licensing add-on request

Why exactly are you wanting to use IonCube?

Encrypting code is largely considered contrary to GPL, and is essentially inappropriate if your encrypted code is intended to function within existing GPL code or requires existing GPL code in order to run.

What exactly are you trying to accomplish?

3 Oct 2011, 1:35 PM
#3
raydube avatar

raydube

New Zenner

Join Date:
Sep 2006
Posts:
51
Plugin Contributions:
0

Re: IonCube Licensing add-on request

Hey there,

I write software for sites that are not necessarily gpl, or open source, so to protect my work, it needs to be encoded.

Work done for gpl sites, naturally don't get the same treatment. :)

Ray

3 Oct 2011, 1:52 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: IonCube Licensing add-on request

So, what exactly are you wanting to accomplish?

IonCube encoding is generally done as a standalone process, and then the files zipped and made available for download/delivery. Why do this on-the-fly repeatedly when it can be done once, and tested securely, before zipping ... "once"?

3 Oct 2011, 2:33 PM
#5
raydube avatar

raydube

New Zenner

Join Date:
Sep 2006
Posts:
51
Plugin Contributions:
0

Re: IonCube Licensing add-on request

Hey Doc,

No, it's not a question of re-encoding the scripts every time, but a question of adding a license to an encoded file. Without a license, the script won't work, with the license, the script works, again, another level of security.

I wish I didn't have to encode my work, but after having a script or two stolen and resold to the profit of others, I have little choice. :(

Ray

3 Oct 2011, 8:16 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: IonCube Licensing add-on request

It would be simpler to generate a license key to be supplied upon payment completion, and deliver a pre-generated zip. Doing it that way would let you re-use the code concepts from several existing addons for generating software licenses/keys or calling card PINs etc. You could hook the notifier points in the order class for that.

Generating a separate customized download file requires further special coding to override/replace the built-in download logic. You could either replace the download/header_php code with your own, or you could consider hooking one or more of the notifier points in that code.

4 Oct 2011, 6:19 PM
#7
raydube avatar

raydube

New Zenner

Join Date:
Sep 2006
Posts:
51
Plugin Contributions:
0

Re: IonCube Licensing add-on request

Ideally yes, it would add the license file in the correct location in the zip, and one file would be downloaded.

But from your comments, it doesn't already exist, so I'll have to look into how to create and zip it together properly. I was just hoping I could save the time and not code the thing myself. True though, there are other mods that I may be able to use some code from to generate what I need, so I'll be helped. :)

But it's a back-burner item at the moment, but definitely worth the effort.

Ray

4 Oct 2011, 6:38 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: IonCube Licensing add-on request

I think there might even be a contributed addon for watermarking images or PDFs etc, which would be similar concept. You'd have to write your own ioncube encoding script to run on the server though.