Jump to content

Better approach to encrypt a personal small module


Recommended Posts

Hello there

I have a simple module (script .php file) and I am looking a way to restrict\limit it access by my authorization only. I have heard that ioncube can encrypt file, but I guess it only obfuscate other to not see code it self, but not restrict it uses against authorization. There is a WHMCS license addon, but as I do not intend to sell this module online, it looks to much hard job for that purpose...

So let me explain in more details:

- I have a payment gateway module (2 files in php) and there is a managed partners hosting account under our company managements that as a partner we could allow ("rent") they to use our module while they have a package WHMCS system with us. So module belongs to us which is a added value these days for online payment , and I would like to have control on it...I could just upload encrypted module to my partner environment, but would be better if I found a way to in case If do not want Partner to use a module to lock it (lets say a partner decide go away and keep my module even encrypt to use it).

Should I use license addon for that purpose or there is a easy way to achieve that.

My other idea would be if a module prompt for a password on first installation, where this partner would not know that password...

When I start thinking on License addon I get sick😰

 

Link to comment
Share on other sites

WHMCS Licensing Addon implements what ionCube already offers. You can create scripts that expire after X minutes, hours, days or on a specific date. Then we have server restrictions (eg. hello.php can run only on google.com). Click to enlarge.

ionCube.thumb.png.7a7e72016ec653c68ea30e3e3f3da322.png

That said, the solution that suits your needs best IMO is WHMCS Licensing Addon. It does  exactly what you need but be prepared to face a lot of problems.

 

Link to comment
Share on other sites

Thanks @Kian

Sounds that WHMCS License  Addon   would be best choice, but  it scares me when   I think   I would  get it up working  alone.

they    are advertising  that there is an optin   to copy and paste to make it works...Perhaps   in my case it could be more simple    as   I do not need   a beauthiful module...I only want   to encrypt   2 files and updload it on    desired   cpanel account.

I also found a docs here https://docs.whmcs.com/Licensing_Addon to learn more...

I will try it , if it  gets to complicated to   get it working...will look a developer.

image.thumb.png.ee4e0136be8e260e92ab1a1d0df955fb.png

Edited by zitu4life
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

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