Re: encode php scripts with opcache compatibility

From: Date: Wed, 21 May 2014 22:53:04 +0000
Subject: Re: encode php scripts with opcache compatibility
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-74422@lists.php.net to get a copy of this message
On Wed, 21 May 2014, Nicolai Scheer wrote: > Do you have an example of a tool that can reverse opcodes to php code? > Maybe I did not search for the right thing, I did not stumble upon any. It exists, there are tools. I might have seen code that does it. > I always thought the opcodes where kind of cryptic, at least a bit... I'm > not longing for "true" protection. It's enough if the scripts can not be > read and modified in an easy way. Yes, that is definitely possible. I actually have a working extension for PHP 5.3 and 5.4 that stores encrypted opcodes. PHP 5.5 not yet implemented. > All I'm asking for is a way do so in way, that scripts are still > cacheable (even if this makes dumping the opcodes easier...). Yes, correct. You can get to the opcodes, it's not difficult, it even works with VLD, that you mention here: > I found Derick's Vulcan Logic Disassembler, I think this can help my > understanding of what opcodes of a script look like. cheers, Derick

« previous php.internals (#74422) next »