Solved

How to make my JavaScript code unreadable by humans?

Posted on 2008-06-13
5
1,577 Views
Last Modified: 2010-04-21
I have JS scripts which should be protected. I need some on-fly PHP utility to encode my JS files before they are sent to the browser. Please, recommend one.
0
Comment
Question by:technoparkcorp
  • 2
  • 2
5 Comments
 
LVL 48

Assisted Solution

by:hernst42
hernst42 earned 150 total points
ID: 21777051
See e.g: http://www.phpclasses.org/browse/package/1863.html
or google for "obfuscation javascript php"
0
 
LVL 4

Accepted Solution

by:
afzz earned 350 total points
ID: 21777102
0
 

Author Comment

by:technoparkcorp
ID: 21777111
Is it possible not only to PACK the code, but re-write it on fly? Like, rename the variables, functions, change punctuation, etc.
0
 
LVL 4

Expert Comment

by:afzz
ID: 21777143
yes it does exactly that
0
 

Author Closing Comment

by:technoparkcorp
ID: 31466861
Thanks, straight to the point.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article discusses four methods for overlaying images in a container on a web page
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question