Home  >  Article  >  Web Front-end  >  JavaScript.Encode manual decoding skills_javascript skills

JavaScript.Encode manual decoding skills_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:23:081427browse

JS.Encode is the "garbled code" formed after encoding the JS code. In addition to being unreadable, this garbled code can still be executed well.

There are often ways to decode JS encryption codes on web pages, but due to the existence of escape characters in the code, it cannot be decoded correctly.

JAVAScript uses the following eight escape characters. These characters all start with a backslash (). When the JAVAScript interpreter (Interpreter) sees a backslash, it will pay special attention to express what the programmer wants to express.

转义字符
使用说明
1
b
后退一格(Backspace)
2
f
换页(Form Feed)
3
n
换行(New Line)
4
r
返回(Carriage Return)
5
t
制表(Tab)
6
'
单引号
7
"
双引号
8
\
反斜线(Backslash)
Before decrypting the JS encryption code, the transfer characters in the code must be replaced,

For example:

\ ------- 

t - ------ Tab key

and so on.

Then it can be decoded correctly.
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn