SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast Wouter's Avatar
    Join Date
    Jan 2002
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to protect .js files in a serious way?

    How to protect .js files in a serious way?

    If you have idea its more than welcome!
    Greetings

  2. #2
    SitePoint Zealot
    Join Date
    Jul 2002
    Posts
    168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to protect .js files in a serious way?

    I suppose you already know you can't hide javascript.
    You could sort of scramble it, though that still won't prevent it from being read by anybody: http://www.quadhead.de/jss.html

    But I wonder, why do you even want to hide it?
    Is your code really so special? Most likely, what you got is specific for what you want to do, so hardly of use to anybody else.
    Second, there are millions of javascripts out there on the net for free download, whatever nifty little javascript effect you see, there's a free script for it somewhere...

  3. #3
    SitePoint Enthusiast Wouter's Avatar
    Join Date
    Jan 2002
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wink

    I need a way to protect the product that I made

    the product is a complete tool easily integratable in any website
    equals javascript, client-side only, cookies, IE + NS compatible only

    why to protect:
    I want to prevent (discourage) implementors from altering the prog .js files
    only data .js files should be readable

    equals decrease product support and increase product life cycle


    I agree that there are thousands of script on the net but I'm still looking for a complete tool-example.
    JavaScript is client-side and perfect for form-tools.
    Since its only client-side it increases the market -- no specific hosting requirements.

    anyway thanks for the link --- I will give it a look.

    100% protection doesn't exists, I know --- if I have 50% I'm more than satisfied.

    Thx

  4. #4
    ********* Genius Mike's Avatar
    Join Date
    Apr 2001
    Location
    Canada
    Posts
    5,458
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    www.dynamicdrive.com also has a code scrambler. You could use the one posted above, then scramble that output with the one a dynamic drive. It makes the js a little slower, but unless your really keen on getting the dirt on a script, it will serve its purpose.
    Mike
    It's not who I am underneath, but what I do that defines me.


Bookmarks

Posting Permissions

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