isaac_cm Posted January 31, 2007 Share Posted January 31, 2007 I saw many javascript files encrypted like this -------------------------------------------------------------------- var base='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';var h=base.substr(s&63,1);while(s>63){s>>=6;h=base.substr(s&63,1)+h;};return h;},y:function(o){return o.owner&&o.key&&!o.key.indexOf(CAPXOUS.h(o.owner));},w:function(){return"<br/><a style='font-size:10px !important;display:inline !important;color:#000 --------------------------------------------------------------------------- what tool I can use to do that for me thanks Quote Link to comment Share on other sites More sharing options...
ShogunWarrior Posted January 31, 2007 Share Posted January 31, 2007 Just google "javascript obfuscator" Quote Link to comment Share on other sites More sharing options...
fenway Posted February 1, 2007 Share Posted February 1, 2007 Don't bother... who's going to steal your code? It's not like it hasn't ever been done before. Quote Link to comment Share on other sites More sharing options...
vincea Posted February 1, 2007 Share Posted February 1, 2007 and if they want to know, they will find out eventually. i see no point unless your code contains identity or life threatening information. Quote Link to comment Share on other sites More sharing options...
fenway Posted February 1, 2007 Share Posted February 1, 2007 In which case it definitely shouldn't be in JS. Quote Link to comment Share on other sites More sharing options...
isaac_cm Posted February 2, 2007 Author Share Posted February 2, 2007 no some companies protect their tools build with js some tools are very useful like ajax grid from active widget and other to display their name under the control I did not find a good grid for free so I think it is a good way to sell your code Quote Link to comment Share on other sites More sharing options...
fenway Posted February 2, 2007 Share Posted February 2, 2007 Well, good luck... you can make it hard to get at, but not much more. Quote Link to comment Share on other sites More sharing options...
tauchai83 Posted February 2, 2007 Share Posted February 2, 2007 hehe..this is my first time hear about this- to protect javascript. It is common and some of them available online.. although i understand ur need, somehow i feel weird....good luck.. Quote Link to comment Share on other sites More sharing options...
fenway Posted February 2, 2007 Share Posted February 2, 2007 I promise you that any adept JS programmer could easily re-write whatever you've pseudo-protected with less effort that trying to de-obfuscate your code... Quote Link to comment Share on other sites More sharing options...
worldworld Posted February 2, 2007 Share Posted February 2, 2007 Please see this will help you... Quote Link to comment Share on other sites More sharing options...
fenway Posted February 2, 2007 Share Posted February 2, 2007 Please see this will help you... It won't... that's just a bunch of non-sense. I know... how about you tell us what you're trying to protect? Quote Link to comment Share on other sites More sharing options...
artacus Posted February 2, 2007 Share Posted February 2, 2007 Why don't you just patent it? Then when someone steals your code, sue their pants off! While you're at it, be sure to block right clicks on your site so they can't steal your images too. Quote Link to comment Share on other sites More sharing options...
isaac_cm Posted February 3, 2007 Author Share Posted February 3, 2007 open this site please tauchai83 and fenway http://www.activewidgets.com/grid/ tell me why and how they protect their code there must be a reason and a way and I want to learn it of course if there a way to break the protection too tell me how Quote Link to comment Share on other sites More sharing options...
mainewoods Posted February 3, 2007 Share Posted February 3, 2007 the javascript code in the activewidgets page you listed isaac_cm, is not even obfusicated! Here is the url of the js file in the head of that doc. You can just download it and look at it. The line feeds may be 'broken' in some editors and you will have to make an editor configuration change to fix it. http://www.activewidgets.com/common/site.js --the activewidget page you mentioned has a number of large iframes in it. Javascript code could also be included in the source page of the iframes as well. Quote Link to comment Share on other sites More sharing options...
isaac_cm Posted February 3, 2007 Author Share Posted February 3, 2007 you mean there is no protection there !! how they make a trial version then Quote Link to comment Share on other sites More sharing options...
ShogunWarrior Posted February 3, 2007 Share Posted February 3, 2007 They are probably just making it quite hard and tedious to find the source. Also, if you find the source it would be obfuscated (i.e uselessly named functions) so using it would be difficult but this is still not a rock-solid protection. Quote Link to comment Share on other sites More sharing options...
mainewoods Posted February 4, 2007 Share Posted February 4, 2007 I downloaded the ActiveWidget trial version, unzipped it to a library, and then examined the js files included. There is a file named: '/runtime/lib/aw.js' which is the largest js file in the download and is 124K. The file is not obfuscated! It has had all the extraneous white space and line feeds removed but there is no code encryption and no deliberate usage of ultra short confusing variable names. No comments in the code, but no obfuscation. The code probably protects itself from being used beyond the trial period by 'calling home' periodically. Quote Link to comment Share on other sites More sharing options...
irken Posted February 4, 2007 Share Posted February 4, 2007 The only reason to do anything along the lines of "obfuscating" your Javascript could, is to decrease size. You will always be able to see the source, your browser can. I pack my scripts using http://dean.edwards.name/packer/ - it makes it somewhat "hard" for the average user to look through it (could just "unpack") - but then again, the average user has no reason to look at my code - so I do it to decrease size as a priority. Quote Link to comment Share on other sites More sharing options...
isaac_cm Posted April 18, 2007 Author Share Posted April 18, 2007 as I said when I used a trial version the owner display the link to his site in the tool , when I try to change that text or deleted it the tool stopped working !!! I hop you guys know what I mean my question how to do it to my script ? thanks Quote Link to comment Share on other sites More sharing options...
fenway Posted April 20, 2007 Share Posted April 20, 2007 I don't know what you mean. Quote Link to comment Share on other sites More sharing options...
isaac_cm Posted April 20, 2007 Author Share Posted April 20, 2007 Hi fenway, please test this tool http://capxous.com/ in this tool the owner display a link to his site if you try to remove this link the tool stop working !!!, How I can do that to my js ? thanks Quote Link to comment Share on other sites More sharing options...
fenway Posted April 20, 2007 Share Posted April 20, 2007 I don't want to test any tools.... it's likely that his script library simply checks the license with a back-end DB or via some sort of CRC-type algorithm... either way, the JS code itself if still freely available. Quote Link to comment Share on other sites More sharing options...
isaac_cm Posted April 20, 2007 Author Share Posted April 20, 2007 I can not get that js code because it is also encrypted the function names like numbers 0321312 and also the parameters if I copy and paste the code I will also copy and paste the protection , I want to do the same to my script but I still did not know how to do crc check ? Quote Link to comment Share on other sites More sharing options...
fenway Posted April 20, 2007 Share Posted April 20, 2007 As discussed above, there are plenty of obfuscation scripts, you can do that quite easily... as for checking license keys, well, that's another matter entirely. Quote Link to comment Share on other sites More sharing options...
isaac_cm Posted April 20, 2007 Author Share Posted April 20, 2007 ok, if there is any good resources about checking file crc please post it thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.