Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to make my JavaScript code unreadable by humans?

Posted on 2008-06-13
5
Medium Priority
?
1,656 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 600 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 1400 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
It’s a season to be thankful, and we’re thankful for users like you who engage on site, solve technology problems, and network with others in the industry. What tech are we most thankful for? Keep reading.
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…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Suggested Courses

824 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