encrypt javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jason7899
    New Member
    • Mar 2008
    • 59

    encrypt javascript

    hi,
    i have this code for example in my html or in a .js file
    and i want know if there is some way to encrypt or dificult the reading
    by humans

    ex:

    var a=1
    if x==1 [ etc

    thanks for your help
    :)
  • Canabeez
    New Member
    • Jul 2009
    • 126

    #2
    Well it's called obfuscation (not encoding), there are lots of software that can do this and even some online tools (here's an example of one of them). Just google for javascript obfuscator, I'm sure you'll find something that fits your needs in there.

    Good Luck

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5390

      #3
      that's right ... and here is just a short overview of some ideas some people would have regarding that :)

      kind regards

      Comment

      • Canabeez
        New Member
        • Jul 2009
        • 126

        #4
        Originally posted by gits
        that's right ... and here is just a short overview of some ideas some people would have regarding that :)

        kind regards
        Cute idea to hide the script, stupid, but cute, didn't he ever hear of HttpAnalyzer (or any other http sniffer)? If I'll get to his website I'll see anything the browser gets, whatever he wants it or not... :)

        Comment

        • Jason7899
          New Member
          • Mar 2008
          • 59

          #5
          thanks for your help

          Comment

          Working...