JS obfuscator for a package/project

C

cool2005

I have been trying several JS obfuscator but none of them work
with a set of JS files.

There are references between files so it will never work if the JS
obfuscator
process each file independly.

Any JS obfuscator out there remember each var/function name so that
they can be used in other files where the same var/function name
appears?

thanks

mark
 
M

McKirahan

cool2005 said:
I have been trying several JS obfuscator but none of them work
with a set of JS files.

There are references between files so it will never work if the JS
obfuscator
process each file independly.

Any JS obfuscator out there remember each var/function name so that
they can be used in other files where the same var/function name
appears?

Have you tried merging the files into one first?
Afterwards, you could split them up.
 
R

Randy Webb

cool2005 said the following on 3/13/2006 11:28 PM:
I have been trying several JS obfuscator but none of them work
with a set of JS files.

None of them truly "work" to start with. They only make it minimally
more difficult. Search the archives, there are threads abound about
obfuscators and the problems with them.
There are references between files so it will never work if the JS
obfuscator process each file independly.

Yup. So put them all in the same file.
Any JS obfuscator out there remember each var/function name so that
they can be used in other files where the same var/function name
appears?

If people spent as much time trying to write quality code as they do
trying to hide bad code there wouldn't be any bad code on the web.
 
C

cool2005

It is impossible since the js code reside in hundreds of plugs-in
pieces. They can only be obfuscated in a command line with a batch
process. Many of them are actually JSP files with js...mixing with
HTML...
 
I

Ira Baxter

cool2005 said:
I have been trying several JS obfuscator but none of them work
with a set of JS files.

You mean, "None of the ones you tried."
There are references between files so it will never work if the JS
obfuscator process each file independly.

Any useful obfuscator tool has to handle this smartly.
Any JS obfuscator out there remember each var/function name so that
they can be used in other files where the same var/function name
appears?

Yes. See
http://www.semanticdesigns.com/Products/Obfuscators/ECMAScriptObfuscator.html

The online running example shows two files with such cross links.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,069
Latest member
SimplyleanKetoReviews

Latest Threads

Top