SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2004
    Location
    Canada
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I need a JS encryption tool

    Hello,

    I would like to protect some HTML/JS code. All words and links should be unrecognizable to the human eye.

    This tool is almost what I want, but it leave words and links in tact so they can be read.
    Demo
    Code

    I think a better idea would be to use this encryption:
    Encryptor

    Could the two scripts be combined so that I can turn any HTML/JS to encrypted JS?

    I realize that there are a million reasons NOT to encrpt the code, and I realize that it can be quite easily decrypted, however I still need to do this.

    Thanks!

  2. #2
    SitePoint Evangelist hexburner's Avatar
    Join Date
    Jan 2007
    Location
    Belgium
    Posts
    591
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Indeed, I don't recommend encrypting JS or HTML at all!
    I would use a compressor, so it wouldn't be readable anymore.
    In my opinion JS and HTML encryption is off limits...
    Here's something useful that doesn't encrypt, but compresses JS in a way that only very few would even try to decipher the code.

    You can use Dean Edwards' packer to compress and make code more difficult to read, almost unreadable.
    Values and variable names are concatenated in a string seperated by a |-sign, and I think they're mixed up randomly so that makes it more unreadable.

    http://dean.edwards.name/packer/
    FOR SALE: 1 set of morals, never used, will sell cheap


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
  •