gangsterwanster1 Posted May 13, 2009 Share Posted May 13, 2009 I remember a while ago seeing a source that protected all of its string with base64. though its not that powerful of protection it still helps somewhat, so does anyone have an example of this implemented? Link to comment https://forums.phpfreaks.com/topic/157943-protect-source/ Share on other sites More sharing options...
gffg4574fghsDSGDGKJYM Posted May 13, 2009 Share Posted May 13, 2009 This show how it's done : <?php $code = "echo 'hello world!';"; $b64 = base64_encode($code); echo $b64."<br>"; eval(base64_decode($b64)); ?> But it didn't provide any kind of security. http://en.wikipedia.org/wiki/Obfuscated_code Link to comment https://forums.phpfreaks.com/topic/157943-protect-source/#findComment-833092 Share on other sites More sharing options...
gangsterwanster1 Posted May 13, 2009 Author Share Posted May 13, 2009 So then whats the best way to obfuscate php sources Link to comment https://forums.phpfreaks.com/topic/157943-protect-source/#findComment-833098 Share on other sites More sharing options...
gffg4574fghsDSGDGKJYM Posted May 13, 2009 Share Posted May 13, 2009 Outsourcing !!! No good programmers would ever dare to work on such bad code, you're safe ! just kidding... There many ways but i'm not sure one of them is really secure. I think you should be more concern about why you are doing that than about how. If someone has access to your filesystem, php code hidden or not it can do a great deal of damage. Why did exactly did you want to hide your code ? Link to comment https://forums.phpfreaks.com/topic/157943-protect-source/#findComment-833104 Share on other sites More sharing options...
gangsterwanster1 Posted May 13, 2009 Author Share Posted May 13, 2009 Outsourcing !!! No good programmers would ever dare to work on such bad code, you're safe ! just kidding... There many ways but i'm not sure one of them is really secure. I think you should be more concern about why you are doing that than about how. If someone has access to your filesystem, php code hidden or not it can do a great deal of damage. Why did exactly did you want to hide your code ? because i was thinking of sending it to my friends but i want to make sure that they cant rip it / make their own version. Link to comment https://forums.phpfreaks.com/topic/157943-protect-source/#findComment-833107 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.