Hi i am trying to encrypt a page of code for my script but the code when encrypted will not work. When i leave it as is it will work fine but when i encrypt it the code will show on the header of the site decrypted. Do some certain scripts not allow to read encrypted code or do i need a .htaccess code to help. Appreciate some help if possible thank you.
You can't really "encrypt" php as it's not a compiled language and has to be interpreted at run time. I'm guessing you are referring to encoding and not encrypting. Getting to the point, there are number of tools that do PHP encoding so you need to be more specific as to what you are using. Better yet, the tool you are using, eg. Zend Guard, should have some kind of support forum. Your best bet is to head in that direction, it might be difficult finding help about something as random as that on here.
What are you using? If it's something like ioncube it requires an extra module, but something like Zend does not.
Yes my filed are still php the encoding will work on another of my scripts but not on this one could there be a script related issue that does not allow encoding.
It's 10 bucks to break a ZEND or Ioncube (which they say are the best) encrypted php code. It's $597 Zend Guard. What's the deal?!
Sounds like it's just a really cheap and crappy encoder then. It's really not that hard to break the encoding, but Zend Guard is supposed to be fairly nice, I haven't had any experience in breaking it apart, but in this business sometimes you really do get what you pay for.
You are not encrypting, you are encoding, aka obfuscating, it might be tricky but theres always a way to reverse engineer it. It's there to discourage the average user from getting at the source, but for someone that really wants to do it, it can be done.
It's the same with encrypted code (sometimes easier with memreads), so let's not go there Obfuscated code has some drawbacks: you can't use register_globals and you can't use variable variables or variable functions. Generally, it's the register_globals that people come up against... could that be the problem? Alternatively, you're using a crappy obfuscator... if only there was one that I could recommend
What is the error, which is displayed? If it's for example, that PHP just doesn't understand the encrypted code, than you will probably have to add an "include" of a certain php package or module. lionstarr
He said it worked on his other pages, just not this particular one. I'm going with the explanation of it's just a shitty encoder.
Yes you were correct just a crappy encoder i have tried another and it worked fine. Thanks to all for your help.
Err WHMCS a hosting billing system uses ioncube encoding on every single file and they require register_globals to be on. So I think you're incorrect there
ionCube 'encoded' is encrypted, not obfuscated. Encrypted files can require register_globals, but require server side libraries as 'out of the box', they are not, in and of themselves, 'legal' PHP. Obfuscated files, on the other hand ARE PHP in and of themselves and so do not require anything special server side, but then they cannot require register globals and so on. I mean technically it's possible, but I have not seen any pure obfuscators that allow register_globals.
My fault there I was looking at http://www.encodercompare.com/index.php And it said Obfuscation so I assume people were lumping some of these together and interchanging encoding, encrypting ect.