Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Aug 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    js obfuscator - what to choose?

    Hey all,

    I've developed a nice javascript code library and wish to sell it.
    I don't wish competitors to be able to cut and paste pieces from it into
    their code. The only way to protect it somehow is to rename variables,
    remove comments and so on - i.e. to apply a javascript obfuscator to it.
    Please recommend me a javascript obfuscator, and tell me your experience
    with it.
    In google I've found javascript obfuscator from Stunnix. It looks good to me, but I didn't try it though.

  • #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,350
    Thanks
    11
    Thanked 589 Times in 570 Posts
    there's so many free ones though. what does your library do special?
    not saying its not worth it, just that i'm dubious.

    i would also consider changing your outlook on this. you code can be easily stolen despite any attempt to conceal it. to obfuscate will only slow down a hacker, not stop it. you don't need to know all the inner vars as long as you rename the functions you need to use.

    your best protection for javascript is legal, not technical. copyright/ license your code, and sue thieves.

    consider also how microsoft became #1 by NOT cracking down on piracy. better someone use you script for free (increasing its popularity) than not at all. serving a jslib is much cheaper than advertising...

    i would offer a full white-spaced and commented version, not the other way around.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/5/28) IE7:0.1, IE8:5.3, IE11:8.4, IE9:3.2, IE10:3.2, FF:18.2, CH:46, SF:7.9, NON-MOUSE:32%

  • #3
    Regular Coder
    Join Date
    Apr 2008
    Location
    New Jersey
    Posts
    116
    Thanks
    0
    Thanked 29 Times in 29 Posts
    It's not quite clear what you're doing here.

    There's conceivable benefit in using a JS obfuscator on your particular running application -- some web site you have that you believe is so fancy that competitors will want to steal the code. In that case, the obfuscator will at least slow them down, and maybe if it's a good one it won't do it at a tremendous cost in the speed of the code and therefore the usability of the site. As has been said, don't imagine for an instant that an obfuscator will stop anyone who actually cares about getting your code.

    Using a JS obfuscator on a library that you want other people to obtain and use, that you're offering for public consumption, is absolutely senseless. Obfuscating the code will guarantee that no serious web developer will ever use it.
    Chaos
    Lost Souls: text based RPG | MUDseek: MUD gaming search | MUDfind: MUD resource sites | Discordian Quotes

  • #4
    New to the CF scene
    Join Date
    Mar 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You should know your reasons
    Try www.jscrambler.com

  • #5
    New to the CF scene
    Join Date
    Mar 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    btw...

    It offers anti-debugging techniques e.g. checksum verification. By comparing a checksum created at obfuscation with one created at execution time it will stop the execution of your code if an change has been detected.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •