In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article focuses on "how to understand the PHP encryption function Javascript/Js decryption function", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "how to understand the PHP encryption function Javascript/Js decryption function"!
"123456" in the following function code is an encrypted key, which you can change at will.
Php encryption, js decryption, seems to be meaningless, mainly key will be seen in js.
But it may be used in some places.
PHP encryption function
The copy code is as follows:
Js decryption function:
The copy code is as follows:
Function strencode (string) {
Key = calcMD5 ('123456')
String = Base64.decode (string)
Len = key.length
Code =''
For (I = 0; I < string.length; iTunes +) {
K = I% len
Code + = String.fromCharCode (string.charCodeAt (I) ^ key.charCodeAt (k))
}
Return Base64.decode (code)
}
Alert (strencode ('PGZ6Cz40Z1JCWCYNRVtSDwsvfVsIexpcEFN0DU0OSQkXQUIPCQxnV1NLDA9SSw8PF1JhWxAHZ18FAGIncUFiFS5yWxAuClxUf15fXA=='))
PHP encryption & JS decryption 2
The copy code is as follows:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.