Javascript Obfuscators
Posted: Sat Mar 06, 2010 3:06 pm
I figured I would post a couple of the nice JS obfuscators I have found. These can be quite important in PBBG game development so that your players cannot make heads or tails of the code in their browser, while still allowing it to run no problem. It will also run better in some cases, since some obfuscators compress the code, making it download and execute faster.
Free JS Obfuscator: This is a free one, and probably does the weakest obfuscation, but I have included it because it is browser-based and can be used with no download. Just type your code into the code window, hit Obfuscate and then copy'n'paste the code from the bottom window. A large portion of what this one does is just convert a lot of your code to hex. This could slow down some basic users, but it can be fairly easily broken if your code is not very complex (if it is complex, it would be hard to decode because of the loss of organization).
Javascript Obfuscator: Real creative names, huh? Anyway, this is the most powerful obfuscator I have found so far. It is a commercial product, but it is only $40 for a single-user license, and there is a trial to check it out. This one adds new functions, changes function and variable names, and basically turns your code into unapproachable garble while compressing your files by about 25 - 50%. There is absolutely no way to reverse the obfuscation on this version's method. This product also boasts some fairly large names using their obfuscator.
Free JS Obfuscator: This is a free one, and probably does the weakest obfuscation, but I have included it because it is browser-based and can be used with no download. Just type your code into the code window, hit Obfuscate and then copy'n'paste the code from the bottom window. A large portion of what this one does is just convert a lot of your code to hex. This could slow down some basic users, but it can be fairly easily broken if your code is not very complex (if it is complex, it would be hard to decode because of the loss of organization).
Javascript Obfuscator: Real creative names, huh? Anyway, this is the most powerful obfuscator I have found so far. It is a commercial product, but it is only $40 for a single-user license, and there is a trial to check it out. This one adds new functions, changes function and variable names, and basically turns your code into unapproachable garble while compressing your files by about 25 - 50%. There is absolutely no way to reverse the obfuscation on this version's method. This product also boasts some fairly large names using their obfuscator.