Camilo III Lozano wrote:
anyway, i only ask for obfuscator.. wala ko nakigdebate or lalis sa
akong pamaagi sa akong programming... :P
to each, his own :D
we all have our reasons for the way we do things.
matud pa ni mungkey,, actions are preceded by intentions,
good luck in whatever good you are doing...
in fact,, u can make ur own obfuscator API...
javascript (at least the javascript Im familiar with) does not have
function overloading.
so it would be a simple name-mangling/name-replacement task.. some sort
of search-and-replace..
but take care not to replace or mangle the reserved word or keywords of
the language or of
standard library functions...
for example u can only convert
function createScalarVectorGraphicsFromXmlDocument( xmlNode )
{
return scalarVectorObject
}
into
function cAa( ca )
{
return x;
}
U wouldnt want to replace "function" with "func" or "return" to "r" or
the braces into something else,
take note, obfuscated code is still valid code :D
maka sabut gihapon ang compiler/interpreter ana.. ang tao lang dili :D
but if u want to mangle keywords and reserved words, the steps would be:
-create mangled code (result would be imterpreter-invalid code)
-have a script de-mangle the code into valid code
-push the derived valid code into the interpreter...
u can perhap make use of eval() here or something;
I made a similar mechanism in an old prototype project;
But of course, u can save urself from all the dirty stuff
by downloading the obfuscator and encrptor-decrptor
code the others have suggested :D
but kung gusto ka makatuon... u can try the hard way
:D
besides, wala man ko nag ingon na dili maayo mag obfuscate..
nag ask raman ko "why?"
some people obfuscate code for fun.. some for security...
and some people do it for job-security..
para sila ra ang pwede mo maintain sa code.. :D
kay ang ilang i submit for archiving in their repositories
are the "funny code" and not the clean stuff..
I hope dili ga belong sa last category
_________________________________________________
Kagay-Anon Linux Users' Group (KLUG) Mailing List
[email protected] (http://cdo.linux.org.ph)
Searchable Archives: http://archives.free.net.ph