Jump to content
  • 0
Shivansh

How i encrypt my whmcs module license file.

Question

I make an addon but I don't know how to encrypt php license file.

please help

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0

Encode it with ioncube.  It will work without any additional changes to the server as WHMCS depends on it.  Ioncube has a free online encoder for limited usage.   If you plan on doing modules for release, buying an ioncube license might be better.   There might be other options such as zend sourceguardian but they all work the same way and have the same exploitable holes of finding out at least what functions, classes, variables are used within the file but not actual code without breaking in to the encoding. 

Share this post


Link to post
Share on other sites
  • 0
On 3/9/2019 at 10:56 AM, Veehosty said:

I Also Tried

Yes it's really difficult to get back your orginal file

Share this post


Link to post
Share on other sites
  • 0
On 09/03/2019 at 05:20, Shivansh said:

If I encode then how I get back original file

you keep two copies - the original unencoded version of your file, and the IonCube encoded version.

if you later need to edit/update the code, you work on the original version and then encode it again (if you intend to sell/distribute it).

Share this post


Link to post
Share on other sites
  • 0
On 3/9/2019 at 12:20 AM, Shivansh said:

If I encode then how I get back original file

You need to keep unencrypted copies, not encrypt the only one you have.
I haven't used the encoder, but if it was the online one, you upload the files to be encoded, which doesn't delete your local copy (unless you copy them back and overwrite the originals).

Share this post


Link to post
Share on other sites
  • 0
6 minutes ago, brian! said:

you keep two copies - the original unencoded version of your file, and the IonCube encoded version.

if you later need to edit/update the code, you work on the original version and then encode it again (if you intend to sell/distribute it).

 

1 minute ago, bear said:

You need to keep unencrypted copies, not encrypt the only one you have.
I haven't used the encoder, but if it was the online one, you upload the files to be encoded, which doesn't delete your local copy (unless you copy them back and overwrite the originals).

Any Method to encoded then if I lose. ?

Share this post


Link to post
Share on other sites
  • 0
24 minutes ago, Shivansh said:

Any Method to encoded then if I lose. ?

if you mean that if you encode a file, then lose the original version, can you decode the IonCube encoded version to see your original source code... theoretically yes, but you would likely need to pay for additional software to do this - so *never* rely on this as being an option.

the easiest solution is not to lose the original version - so keep multiple copies of it stored in multiple DIFFERENT locations (e.g not just locally on your computer).

Share this post


Link to post
Share on other sites
  • 0
10 minutes ago, brian! said:

if you mean that if you encode a file, then lose the original version, can you decode the IonCube encoded version to see your original source code... theoretically yes, but you would likely need to pay for additional software to do this - so *never* rely on this as being an option.

the easiest solution is not to lose the original version - so keep multiple copies of it stored in multiple DIFFERENT locations (e.g not just locally on your computer).

Thanks for the information

 

One More Question Please help Solve It 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated