Obfuscating string values in PHP source code

后端 未结 3 788
悲哀的现实
悲哀的现实 2021-01-24 17:36

I want to protect PHP source code at easy way.

here is a example.

 $a = \"\\x46\\122\" . chr(578813952>>23) . \"\" . chr(0105) . \"\\x2d\"; 
 $b =          


        
3条回答
  •  闹比i
    闹比i (楼主)
    2021-01-24 18:02

    This is a, frankly, stupid way of "protecting" your code. Hopefully you realize that once the code is delivered to the clients, they can simply undo all of this and extract the values themselves?

    Use legal means to protect the code. "here's my code, you are not allowed to share it. If you do, I get $50 kazillion dollars and the Droit de Seigneur with your most beautiful daughter, or an extra 200 kazillion in lieue if they're all ugly".

    An iron-clad licensing agreement will be far better protection than any cereal-box decoder-ring wet kleenex method you care to apply ever will be.

提交回复
热议问题