How can I encrypt my PHP Code?

16 replies
Hi Fellow Warrior,

I am pretty sure all commercial coders may benefit this one.

Any starting point to encrypt a PHP code without any compromising site performance?

Any insight is highly appreciated.

Thanks.
#code #encrypt #encryption #php
  • Profile picture of the author eminc
    Hi,

    You can use IonCube or ZendGuard. You can always get more information with the help of Google


    Mohit
    {{ DiscussionBoard.errors[4913315].message }}
    • Profile picture of the author junabestano
      Thanks Mohit.

      Yes, I saw some few tools by googling the net. I like to learn it here because I know this is great place to interact such issue.

      I would like to have my own algorithm without the use of third-party software. The purpose of encrypting is to make it secret as much as possible to someone other than you. Using third-party software still makes your code vulnerable because somebody has already the idea of decrypting it.

      Anyways, thanks a lot for the insight. It's the least option though at this time. But I hope there great warrior over there who can share their thoughts about it.

      Thanks.
      Signature

      Your Virtual Assistant - Building Your Business Online

      {{ DiscussionBoard.errors[4914778].message }}
    • Profile picture of the author CyberSEO
      Originally Posted by Mohit Jawanjal View Post

      Hi,

      You can use IonCube or ZendGuard. You can always get more information with the help of Google


      Mohit
      I concur. My vote goes to IonCube.
      Signature
      CyberSEO Pro - the ultimate all-in-one autoblogging WordPress plugin, powered by OpenAI GPT-4, Anthropic Claude, Google Gemini Pro, DALL-E 3 and Stable Diffusion XL
      {{ DiscussionBoard.errors[4947586].message }}
  • Profile picture of the author Tobarja
    If you write an algorithm in straight PHP, I can run just enough of that to decode the code and dump it to a file instead of executing it.

    PHP is not a compiled language. You don't distribute binaries with it. Use a compiled language, or just accept that people that really want to, will read your code.

    IonCube and ZendGuard exist as plugins that are called from PHP. IIRC, you pay to have a tool that encodes your source. They keep the key. On the customers server, they run plugins, which are compiled and have the keys and decryption algorithm embedded in them.

    Learn a compiled language, pay up, or just get over it.
    Signature

    Regular guest posters wanted for blogging, white hat SEO, vacation/travel niches. New sites, will pay($) for good content. PM samples.

    {{ DiscussionBoard.errors[4914841].message }}
    • Profile picture of the author DEaFeYe
      Banned
      [DELETED]
      {{ DiscussionBoard.errors[4915077].message }}
      • Profile picture of the author synergyxtr
        i think so other people will not copy or clone it.
        Signature

        Synergy Extreme. Your extreme virtual assistant provider.

        {{ DiscussionBoard.errors[4946528].message }}
  • Profile picture of the author sathuri
    you can use a site like
    www[dot]byterun[dot]com/free-php-encoder[dot]php
    {{ DiscussionBoard.errors[4951543].message }}
  • Profile picture of the author pfreelancer
    I use PHP Obfuscator from Raizlabs, it is slow, but free and it does what i need it to. Do a Google search for it and you can find it.
    {{ DiscussionBoard.errors[4965489].message }}
    • Profile picture of the author Earnie Boyd
      Originally Posted by pfreelancer View Post

      I use PHP Obfuscator from Raizlabs, it is slow, but free and it does what i need it to. Do a Google search for it and you can find it.
      And if you want to write your own the C# source they used to build the encoding application is also available for download.
      Signature
      {{ DiscussionBoard.errors[5823658].message }}
  • Profile picture of the author tomzuck
    What're the differences between Ioncube and ZendGuard ... anyone have first hand experience with speed and efficiency?
    {{ DiscussionBoard.errors[4983182].message }}
  • Profile picture of the author Damon99
    you can use a site like
    www[dot]byterun[dot]com/free-php-encoder[dot]php
    Don't go for some unverified encoders... They may inject some viral script in your code.
    But in order to use IonCube, t need to supported by your webhost.
    {{ DiscussionBoard.errors[4983643].message }}
    • Profile picture of the author junabestano
      Originally Posted by Damon99 View Post

      Don't go for some unverified encoders... They may inject some viral script in your code.
      But in order to use IonCube, t need to supported by your webhost.
      I strongly agree.
      Signature

      Your Virtual Assistant - Building Your Business Online

      {{ DiscussionBoard.errors[4984794].message }}
  • Profile picture of the author newsky2010
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[4984438].message }}
    • Profile picture of the author junabestano
      Thanks a lot guys for your input. It really shed me some light. And I do respect each of your point of view. Though the question might so stupid or merely ignorant. I may say, in the information highway, who are you trusting though?
      Signature

      Your Virtual Assistant - Building Your Business Online

      {{ DiscussionBoard.errors[4984779].message }}
  • {{ DiscussionBoard.errors[5105156].message }}
  • Profile picture of the author wordcatcher
    How does the code encryption works? I don't understand how the script runs like normal php, but to the human eye, it just looks like a mess.
    {{ DiscussionBoard.errors[5823213].message }}
  • Profile picture of the author vulcanscripts
    It depends what you define as encryption? Most soft php encryption utilities are better described as obfuscators. Anything that uses internal php functions obfuscate. They work by using functions like base64_encode() or gzcompress() to hide the original source, but make the original source available to the php interpreter by reversing the encoded strings with base64_decode() or gzuncompress() and then executing the open code with functions like eval(). True hard encryption require third-pary loaders or extensions. The likes of Zend, SourceGuardian and ionCube. These work by compiling scripts into an executable binary which is basically native machine code. Unfortunately due to the open source nature of php itself, it's possible to translate these machine codes (opcodes) back to source. As a programmer I once took it upon myself to test everything on the market as I had a project that the source needed to stay closed in order for the business to remain viable. As it stands today I would rate ionCube version 7 as the most difficult to reengineer, so this is what I generally use if I have to protect my intellectual property. Hope this helps?
    Signature
    Live Track Mobile Spy - Android Spy Software
    Postcode Palâ„¢
    - Geo Datasets for GB, NI, CI and the Isle of Man
    {{ DiscussionBoard.errors[5823549].message }}
  • Profile picture of the author MemberWing
    ZenCrypt works by obfuscating the code - essentially it becomes garbled sequence of characters.
    This code has capability to decrypt itself during script execution and it does not require any third party component for it.
    Hence it is supported by 100% of hosts that support PHP.

    Gleb
    {{ DiscussionBoard.errors[5824055].message }}

Trending Topics