-1

Is there any way to encrypt a PHP plug-in, that will still be compatible with many servers. Right now I am using ionCube, for my wordpress plugin. However, it is not compatible with many servers, is there a better way of code encryption that still work with more servers?

CodesInChaos
  • 106,488
  • 23
  • 218
  • 262
  • 3
    The better question is, "why would you *want* to encrypt your PHP plugin"? – user229044 Jan 05 '12 at 17:36
  • So people dont try to copy my plugin – user1130826 Jan 05 '12 at 17:47
  • 1
    People will copy it regardless. All you're doing it making it harder for people to use your plugin. Your goal should be to make it easy for people to use your code and make derivative works. – user229044 Jan 05 '12 at 17:57
  • Does sound like obfuscation, not encryption. – CodesInChaos Jan 05 '12 at 18:11
  • possible duplicate of [Encrypt php code](http://stackoverflow.com/questions/764927/encrypt-php-code) – ceejayoz Jan 05 '12 at 18:14
  • @CodeInChaos This is actual encryption and not obfuscation - it's why it requires an additional server module to run. – Narf Jan 05 '12 at 20:48
  • Make a good license system and write code nobody wants to copy, because you make good stuff and provide updates . – KingCrunch Jan 05 '12 at 20:50
  • @Narf I don't count encryption where the key is in a place that's accessible to the adversary as real encryption. – CodesInChaos Jan 05 '12 at 20:50
  • @CodeInChaos Not that I know so much about the exact way ionCube handles loading of the encrypted files, but even if you encrypt something and then make the key publicly available on your blog - that doesn't change the technique being used, it would just mean that you're stupid enough to leak it. Plus, so far I don't know of anybody that's been successful in breaking ionCube encrypted scripts (as opposed to Zend Guard) and they don't release source code. I don't mean to be hostile and I won't start re-tagging the question each time, but what *you* think about it doesn't really help. – Narf Jan 06 '12 at 09:47

1 Answers1

0

Yes, Zend Guard is widely used, but it's not free http://www.zend.com/en/products/guard/

aurelijusv
  • 564
  • 2
  • 5
  • Do u know if it is compitable with most of the hosting service provider? – user1130826 Jan 05 '12 at 17:50
  • Yes, most hosting providers have Zend Optimizer or Zend Guard Loader (free decoders). Zend is most widely used encoder/decoder. – aurelijusv Jan 05 '12 at 17:53
  • Uh, most providers do not have either one of those installed. – ceejayoz Jan 05 '12 at 18:13
  • The question was if there is a more widely used decoder/encoder than ioncube, and the answer is zend. – aurelijusv Jan 05 '12 at 18:22
  • You said in your comment "most hosting providers" have it installed. That is false. – ceejayoz Jan 05 '12 at 18:32
  • Actually, in my answer I said that Zend Guard is widely used, though I mentioned that most hosting providers have it installed in the comments. That is my bad, because I meant it from my experience and did not specify that :) – aurelijusv Jan 05 '12 at 18:43