by avent » Mon Nov 25, 2013 10:34 pm
Yes,
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.
=original========================================
<?php
/*
This is only a demo
*/
$password = 'mypassword';
function login_somewhere($thePassword) {
if ($thePassword == 'mypassword') // comment
return True;
else
return False;
}
// other comment
if (login_somewhere($password))
echo 'OK logged in';
else
echo 'NOT logged';
?>
=========================================
====obfuscated===========================
<?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==');
function IIIIIIIIIlII($IIIIIIIIIlIl) {
if ($IIIIIIIIIlIl == $GLOBALS['OOO0000O0']('bXlwYXNzd29yZA=='))
return True;
else
return False;
}
if (IIIIIIIIIlII($IIIIIIIIII11))
echo $GLOBALS['OOO0000O0']('T0sgbG9nZ2VkIGlu');
else
echo $GLOBALS['OOO0000O0']('Tk9UIGxvZ2dlZA==');
?>
========================================