Solved

How to make my JavaScript code unreadable by humans?

Posted on 2008-06-13
5
1,517 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
onOpen 14 41
Uncaught TypeError: can't read property 1 15
Different Delete Messages 7 12
Cordova Camera plugin fails 2 19
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
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 …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now