Jump to content

JavaScript Encryption


AE117

Recommended Posts

I have never encrypted JavaScript before but I would like to start, I think its a good Idea.

 

I'v been searching the internet to figure out how an encryption script works and I cant seem to get any of them to work. Can someone help me out with the process.

 

1 - I take my script and use there decodes and then put that encoded sscript into my file. Then my javascript in that file doesnt work anymore.

 

Do I have to include a path to a decoder or whats going on??

Link to comment
Share on other sites

I think its a good idea...

 

On my page I access the javascript file for the page to use

 

<script src="" you know the rest.

 

if you follow that url you can see the javascript file and the way it is written. Wouldnt it be better to have it encrypted so users can't see whats there?

 

 

Link to comment
Share on other sites

No.

If they really want to see what's there, they'll be able to decrypt it anyway. It's just obfuscation that will mean nothing to those not interested in your scripts, and will not stop those who are.

 

Just minify jour JavaScript and it will be obfuscated enough.

Link to comment
Share on other sites

JavaScript is executed in the client's browser, so that's hardly putting any stress on your server.

 

But the decryption process would, unless your using something like unescape, which because even more pointless.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.