PageSourceSearch

https://www.hljbeilin.gov.cn/bl/xhtml/js/aejpublic.js

js hljbeilin.gov.cn collected 2026-10-08 07:25:06 UTC 1,359 bytes, 44 lines download raw bytes

1// aes Encrypt
2function Encrypt(val) {
3  var key = 'communication123';//十六位十六进制数作为密钥
4  var iv = CryptoJS.enc.Utf8.parse(key);//十六位十六进制数作为密钥偏移量
5  var srcs = CryptoJS.enc.Utf8.parse(val);
6  //CipherOption,加密的一些选项:
7  //mode:加密模式,可取值(CBC,CFB,CTR,CTRGladman,OFB,ECB),都在CryptoJS.mode对象下
8  //padding:填充方式,可取值(Pkcs7,Ansix923,Iso10126,ZeroPadding,NoPadding),都在CryptoJS.pad对象下
9  //iv:偏移量,mode===ECB时,不需要iv
10  //返回的是一个加密对象
11  var encrypted = CryptoJS.AES.encrypt(srcs, iv, {
12    mode: CryptoJS.mode.ECB,
13    padding: CryptoJS.pad.Pkcs7
14  }).toString();
15  // 直接返回
16  return encrypted
17}
18
19function getKeyVal(data) {
20  var key = ''
21  var newkey = Object.keys(data).sort();
22  var newObj = {}
23  var timestamp = getDateTime()
24  // 参数按字母排序
25  for (var i = 0; i < newkey.length; i++) {
26    newObj[newkey[i]] = data[newkey[i]]
27  }
28  // 转json
29  for (var k in newObj) {
30    if (typeof newObj[k] == 'object') {
31      key += k + JSON.stringify(newObj[k])
32    } else {
33      key += k + newObj[k]
34    }
35  }
36  // 时间戳 + json参数
37  console.log(   )
38  return {"sign": Encrypt(timestamp + "" + key), "timestamp": timestamp}
39}
40
41function getDateTime() {
42  var date = new Date
43  return date.getTime()
44}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.