1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to encrypt .js files

Discussion in 'JavaScript' started by techbabu, Oct 23, 2009.

  1. #1
    Hi All.

    Is there any good software to encrypt .js files?

    Regards,

    Techbabu
     
    techbabu, Oct 23, 2009 IP
  2. urstop

    urstop Peon

    Messages:
    224
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There are tools available over the net for the process. Try searching for JsMinify and you will find some open source tools which you can use to minify the JS files, they rename most of your long variable names to short meaningless variables. It also increase your websites performance as the JS file size is greatly reduce.
     
    urstop, Oct 24, 2009 IP
  3. techbabu

    techbabu Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi...

    Thanks for your help
     
    techbabu, Oct 24, 2009 IP
  4. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #4
    But there is no way that you can encrypt JavaScript to the point that it will be impossible to retrieve. Encrypting it will only make it meaningless to the average user.
     
    camjohnson95, Oct 24, 2009 IP
  5. VladimirS

    VladimirS Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can try Packer (dean.edwards.name/download/#packer) or YUI Compressor (julienlecomte.net/yuicompressor/).
     
    VladimirS, Oct 25, 2009 IP
  6. eamong

    eamong Well-Known Member

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    108
    #6
    I think there is no point encrypting your js
    can be easily decrypted, and/or uncompressed by average js developer
     
    eamong, Oct 28, 2009 IP