obfuscate code

Here you can share ideas about new products that Blumentals Software could create

obfuscate code

Postby avent » Sun Nov 24, 2013 12:32 am


what do you think about a feature, integrated in your tools or external program, to obfuscate/protect php/html/javascript ecc. source code?

Also a simple function only to discourage could be good.
Posts: 18
Joined: Mon May 14, 2007 9:06 pm

Re: obfuscate code

Postby Aivars » Mon Nov 25, 2013 12:08 pm

There are a bunch of these tools available online, is there anything that you don't like about them and what should we do differently if we make something like that?
Blumentals Software Programmer
User avatar
Blumentals Software Developer
Posts: 2374
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: obfuscate code

Postby avent » Mon Nov 25, 2013 10:34 pm

I have seen many programs of this type and I use one of them.
some are very powerful with many features that are too much for me and they cost too much,
others are free or at low cost but very uncomfortable to use and often old/discontinued and limited to older versions of php.

I would like something simple and direct for php and javascript, maybe integrated in WeBuilder so as to exploit its parser, with the following features:
-(very important!) protects sensitive information (such as password) in PHP/javascript code. For example encrypting with a unique key all or some string identified in some manner like particular var name or in a class object
-Obfuscates PHP and Javascript code
-strip formatting, comments and whitespace
-change function and var names in a difficult name

Good also if it works only for some specified/delimited part of code.

In other words a simple method, of course not for prevent from a good programmer/hacker but only discourage reusing the code and readind sensitive data

Could be used from webuilder as
'Save as encoded' menu item or a configuration flag like '[ ] save an encoded copy when save'

See some example built with my actual program that is good but unfortunately is a few old and works only with PHP files.


This is only a demo
$password = 'mypassword';
function login_somewhere($thePassword) {
if ($thePassword == 'mypassword') // comment
return True;
return False;
// other comment
if (login_somewhere($password))
echo 'OK logged in';
echo 'NOT logged';

<?php $OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$GLOBALS['OOO0000O0']=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5}.$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$GLOBALS['OOO0000O0'].=$GLOBALS['OOO0000O0']{3}.$OOO000000{11}.$OOO000000{12}.$GLOBALS['OOO0000O0']{7}.$OOO000000{5};?><?php
$IIIIIIIIII11 = $GLOBALS['OOO0000O0']('bXlwYXNzd29yZA==');
if ($IIIIIIIIIlIl == $GLOBALS['OOO0000O0']('bXlwYXNzd29yZA=='))
return True;
return False;
echo $GLOBALS['OOO0000O0']('T0sgbG9nZ2VkIGlu');
echo $GLOBALS['OOO0000O0']('Tk9UIGxvZ2dlZA==');
Posts: 18
Joined: Mon May 14, 2007 9:06 pm

Return to New Product Ideas

Who is online

Users browsing this forum: No registered users and 1 guest