Question:

How is this javascript encrypted?

by  |  earlier

0 LIKES UnLike

Hi,

I need to know how this javascript has been encrypted. It uses these little square symbols with numbers inside of them, such as:



Ive tried googling what this encryption method is, but i dont even know what its called. If someone could tell me what the code has been encrypted with, and how to decrypt it, i would be more than thankful...

 Tags:

   Report

4 ANSWERS


  1. I have never even heard of encrypting javascript.  I think you might be confusing this with something else.  The squares are part of the ASCII character extended set.  They are usually place holders for characters not supported by either your font or browser.  If you want to look at a site's javascript code I suggest:

    download FireFox

    http://www.mozilla.com

    then get the Firebug addon

    https://addons.mozilla.org/firefox/addon...


  2. It's all the code like this? If is just some parts of the code like this there's a good chance that some special chars have been changed when you have copied the script and in this case all you need to do is figure out which one they are.

  3. Yes, you can encrypt Javascript, but it's not really secure encryption since the decryption code has to be in the script itself. It's more obfuscation then encryption. The obfuscated code is stored in a variable then there will be a routine somewhere in the script that decodes it back to normal Javascript and outputs it into the document so it can be executed.

    You will just have to study the code to find the decoding portion.

  4. JavaScript cannot be encrypted. Browsers don't know how to decrypt it. If it's not in plain English, it's obfuscated. Ie. the regular ASCII characters have been switched with non-printable characters which the browser can read, but humans can't.

    You need to work out HOW it's been obfuscated, and find a way to deobfuscate it.

Question Stats

Latest activity: earlier.
This question has 4 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.