How to encrypt my code for phpdesktop-chrome-57.0-rc-php-7.1.3

1,540 views
Skip to first unread message

Shobhit Gupta

unread,
Aug 3, 2018, 5:22:15 AM8/3/18
to PHP Desktop
Hi
I want to encrypt my php code before deplying it to assure that core logics remain safe.
Please suggest how to do it.
The following link states that none of the tools are compatible with PHP 7

Czarek Tomczak

unread,
Aug 3, 2018, 5:39:09 AM8/3/18
to PHP Desktop
I've updated that page, see the link below:

This wiki page discusses a few open source solutions for php source code protection. This page is outdated, it was written as of May 2017 and for PHP 5. See many more solutions for code protection on the KB page: How do I protect PHP sources in the "www" directory?.

Shobhit Gupta

unread,
Aug 3, 2018, 7:18:32 AM8/3/18
to PHP Desktop
Hi,

Following is the nly tool compatible with PHP 7

ColdevProLayer - supports PHP 5.4, 5.5, 5.6, 7.0. The demo application bundle (testing_mod_php.rar) comes with PHP Desktop and PHP 7 and works out of the box. All downloads including extensions for other PHP versions are available here.

But, testing_mod_php.rar gives phpdesktop-chrome-47.5-rc which not creates problem in print preview. The same print preview worked fine in phpdesktop-chrome-57.0-rc-php-7.1.3

My assumption is that
phpdesktop-chrome-47.5-rc doesnot work on PHP 7 (I am not sure about this, you may know it better, for me its just an assumption) because print preview shows nothing but just a blank gray window while it is expected to show the print dialog box.

I tried copying all the non existingfiles of  phpdesktop-chrome-47.5-rc to the folders of phpdesktop-chrome-57.0-rc-php-7.1.3 but then, on running the page, I see the encrypted codes instead of html outputs.

I am really stuck in these 3 things here.

I want:
Print dialog box for printing pdf generated with mpdf and also I want to encode my code.
What do I do now?

Czarek Tomczak

unread,
Aug 3, 2018, 7:50:00 AM8/3/18
to PHP Desktop
PDF is supported in PHP Desktop 57.0. For any issues with the ColdevProLayer extensions you have to ask for help on a support channel for that extension. See its documentation. This forum is for phpdesktop questions only.

pit...@gmail.com

unread,
Mar 13, 2019, 7:03:40 AM3/13/19
to PHP Desktop
Hi,

Hope I'm not too late :)
I've been testing ColdevProLayer,... and it is great. (I hope it is a trustful php extension).
So,... what you can do is, use their phpdesktop just to encode your files.

Then in your phpdesktop, be sure to have thread safe php version and the correct coldevpro php extension version and copy encoded files to your own version of phpdesktop.

For example: your php version (in your phpdesktop) is 7.2. It must be ThreadSafe version. Download from ColdevProLayer github correct version (php7.2.rar)
Take out their extension php_coldevprolayer.dll from ext directory and use/include/enable it in your phpdesktop php.

Now, use coldevpro phpdesktop just to encode all your php files and then copy them to your phpdesktop.

That's it.

rajde...@gmail.com

unread,
Mar 1, 2020, 1:36:07 PM3/1/20
to PHP Desktop
I didn't understand how to implement coldevpro layer can u please elaborate step by step guide, please

Terry J

unread,
Mar 1, 2020, 5:06:32 PM3/1/20
to PHP Desktop
Go to there github respository and download. Look at testing mod_php.part1.rar, testing mod_php.part2.rar and testing mod_php.part3.rar

Already integrated with phpdesktop in those files and you can learn from them.

Khalfan Mohamed

unread,
Mar 3, 2020, 4:13:12 AM3/3/20
to PHP Desktop

heyfly...@gmail.com

unread,
Jul 7, 2020, 2:57:16 PM7/7/20
to PHP Desktop
There is no proper documentation on how to encrypt with coldevlayer

ATHOME TECHNOLOGY

unread,
Jul 8, 2020, 5:06:41 PM7/8/20
to PHP Desktop
php  desktop application Successfully inno setup compile after installation open application error chrome_elf.dll missing how to solve this problem?
Reply all
Reply to author
Forward
0 new messages