forked from onetwo1/pinduoduo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Get_i.js
149 lines (149 loc) · 8.85 KB
/
Get_i.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
var i = (function (url){
var dd1 = (function (e) {
var n, r;
n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
r = {
rotl: function (t, e) {
return t << e | t >>> 32 - e
},
rotr: function (t, e) {
return t << 32 - e | t >>> e
},
endian: function (t) {
if (t.constructor == Number)
return 16711935 & r.rotl(t, 8) | 4278255360 & r.rotl(t, 24);
for (var e = 0; e < t.length; e++)
t[e] = r.endian(t[e]);
return t
},
randomBytes: function (t) {
for (var e = []; t > 0; t--)
e.push(Math.floor(256 * Math.random()));
return e
},
bytesToWords: function (t) {
for (var e = [], n = 0, r = 0; n < t.length; n++,
r += 8)
e[r >>> 5] |= t[n] << 24 - r % 32;
return e
},
wordsToBytes: function (t) {
for (var e = [], n = 0; n < 32 * t.length; n += 8)
e.push(t[n >>> 5] >>> 24 - n % 32 & 255);
return e
},
bytesToHex: function (t) {
for (var e = [], n = 0; n < t.length; n++)
e.push((t[n] >>> 4).toString(16)),
e.push((15 & t[n]).toString(16));
return e.join("")
},
hexToBytes: function (t) {
for (var e = [], n = 0; n < t.length; n += 2)
e.push(parseInt(t.substr(n, 2), 16));
return e
},
bytesToBase64: function (t) {
for (var e = [], r = 0; r < t.length; r += 3)
for (var o = t[r] << 16 | t[r + 1] << 8 | t[r + 2], i = 0; i < 4; i++)
8 * r + 6 * i <= 8 * t.length ? e.push(n.charAt(o >>> 6 * (3 - i) & 63)) : e.push("=");
return e.join("")
},
base64ToBytes: function (t) {
t = t.replace(/[^A-Z0-9+\/]/gi, "");
for (var e = [], r = 0, o = 0; r < t.length; o = ++r % 4)
0 != o && e.push((n.indexOf(t.charAt(r - 1)) & Math.pow(2, -2 * o + 8) - 1) << 2 * o | n.indexOf(t.charAt(r)) >>> 6 - 2 * o);
return e
}
};
return r;
})();
var dd2 = (function(t, e) {
var n = {
utf8: {
stringToBytes: function(t) {
return n.bin.stringToBytes(unescape(encodeURIComponent(t)))
},
bytesToString: function(t) {
return decodeURIComponent(escape(n.bin.bytesToString(t)))
}
},
bin: {
stringToBytes: function(t) {
for (var e = [], n = 0; n < t.length; n++)
e.push(255 & t.charCodeAt(n));
return e
},
bytesToString: function(t) {
for (var e = [], n = 0; n < t.length; n++)
e.push(String.fromCharCode(t[n]));
return e.join("")
}
}
};
return n;
})();
var dd3 = (function(t, e) {
function n(t) {
return !!t.constructor && "function" == typeof t.constructor.isBuffer && t.constructor.isBuffer(t)
}
return function(t) {
return null != t && (n(t) || function(t) {
return "function" == typeof t.readFloatLE && "function" == typeof t.slice && n(t.slice(0, 0))
}(t) || !!t._isBuffer)
}
})();
return (function ddddddd(e, n) {
var r, o, i, a, s;
r = dd1,
o = dd2.utf8,
i = dd3,
a = dd2.bin,
(s = function t(e, n) {
e.constructor == String ? e = n && "binary" === n.encoding ? a.stringToBytes(e) : o.stringToBytes(e) : i(e) ? e = Array.prototype.slice.call(e, 0) : Array.isArray(e) || (e = e.toString());
for (var s = r.bytesToWords(e), c = 8 * e.length, u = 1732584193, l = -271733879, f = -1732584194, p = 271733878, h = 0; h < s.length; h++)
s[h] = 16711935 & (s[h] << 8 | s[h] >>> 24) | 4278255360 & (s[h] << 24 | s[h] >>> 8);
s[c >>> 5] |= 128 << c % 32,
s[14 + (c + 64 >>> 9 << 4)] = c;
var d = t._ff,
m = t._gg,
b = t._hh,
y = t._ii;
for (h = 0; h < s.length; h += 16) {
var g = u,
w = l,
v = f,
_ = p;
l = y(l = y(l = y(l = y(l = b(l = b(l = b(l = b(l = m(l = m(l = m(l = m(l = d(l = d(l = d(l = d(l, f = d(f, p = d(p, u = d(u, l, f, p, s[h + 0], 7, -680876936), l, f, s[h + 1], 12, -389564586), u, l, s[h + 2], 17, 606105819), p, u, s[h + 3], 22, -1044525330), f = d(f, p = d(p, u = d(u, l, f, p, s[h + 4], 7, -176418897), l, f, s[h + 5], 12, 1200080426), u, l, s[h + 6], 17, -1473231341), p, u, s[h + 7], 22, -45705983), f = d(f, p = d(p, u = d(u, l, f, p, s[h + 8], 7, 1770035416), l, f, s[h + 9], 12, -1958414417), u, l, s[h + 10], 17, -42063), p, u, s[h + 11], 22, -1990404162), f = d(f, p = d(p, u = d(u, l, f, p, s[h + 12], 7, 1804603682), l, f, s[h + 13], 12, -40341101), u, l, s[h + 14], 17, -1502002290), p, u, s[h + 15], 22, 1236535329), f = m(f, p = m(p, u = m(u, l, f, p, s[h + 1], 5, -165796510), l, f, s[h + 6], 9, -1069501632), u, l, s[h + 11], 14, 643717713), p, u, s[h + 0], 20, -373897302), f = m(f, p = m(p, u = m(u, l, f, p, s[h + 5], 5, -701558691), l, f, s[h + 10], 9, 38016083), u, l, s[h + 15], 14, -660478335), p, u, s[h + 4], 20, -405537848), f = m(f, p = m(p, u = m(u, l, f, p, s[h + 9], 5, 568446438), l, f, s[h + 14], 9, -1019803690), u, l, s[h + 3], 14, -187363961), p, u, s[h + 8], 20, 1163531501), f = m(f, p = m(p, u = m(u, l, f, p, s[h + 13], 5, -1444681467), l, f, s[h + 2], 9, -51403784), u, l, s[h + 7], 14, 1735328473), p, u, s[h + 12], 20, -1926607734), f = b(f, p = b(p, u = b(u, l, f, p, s[h + 5], 4, -378558), l, f, s[h + 8], 11, -2022574463), u, l, s[h + 11], 16, 1839030562), p, u, s[h + 14], 23, -35309556), f = b(f, p = b(p, u = b(u, l, f, p, s[h + 1], 4, -1530992060), l, f, s[h + 4], 11, 1272893353), u, l, s[h + 7], 16, -155497632), p, u, s[h + 10], 23, -1094730640), f = b(f, p = b(p, u = b(u, l, f, p, s[h + 13], 4, 681279174), l, f, s[h + 0], 11, -358537222), u, l, s[h + 3], 16, -722521979), p, u, s[h + 6], 23, 76029189), f = b(f, p = b(p, u = b(u, l, f, p, s[h + 9], 4, -640364487), l, f, s[h + 12], 11, -421815835), u, l, s[h + 15], 16, 530742520), p, u, s[h + 2], 23, -995338651), f = y(f, p = y(p, u = y(u, l, f, p, s[h + 0], 6, -198630844), l, f, s[h + 7], 10, 1126891415), u, l, s[h + 14], 15, -1416354905), p, u, s[h + 5], 21, -57434055), f = y(f, p = y(p, u = y(u, l, f, p, s[h + 12], 6, 1700485571), l, f, s[h + 3], 10, -1894986606), u, l, s[h + 10], 15, -1051523), p, u, s[h + 1], 21, -2054922799), f = y(f, p = y(p, u = y(u, l, f, p, s[h + 8], 6, 1873313359), l, f, s[h + 15], 10, -30611744), u, l, s[h + 6], 15, -1560198380), p, u, s[h + 13], 21, 1309151649), f = y(f, p = y(p, u = y(u, l, f, p, s[h + 4], 6, -145523070), l, f, s[h + 11], 10, -1120210379), u, l, s[h + 2], 15, 718787259), p, u, s[h + 9], 21, -343485551),
u = u + g >>> 0,
l = l + w >>> 0,
f = f + v >>> 0,
p = p + _ >>> 0
}
return r.endian([u, l, f, p])
})._ff = function (t, e, n, r, o, i, a) {
var s = t + (e & n | ~e & r) + (o >>> 0) + a;
return (s << i | s >>> 32 - i) + e
},
s._gg = function (t, e, n, r, o, i, a) {
var s = t + (e & r | n & ~r) + (o >>> 0) + a;
return (s << i | s >>> 32 - i) + e
},
s._hh = function (t, e, n, r, o, i, a) {
var s = t + (e ^ n ^ r) + (o >>> 0) + a;
return (s << i | s >>> 32 - i) + e
},
s._ii = function (t, e, n, r, o, i, a) {
var s = t + (n ^ (e | ~r)) + (o >>> 0) + a;
return (s << i | s >>> 32 - i) + e
},
s._blocksize = 16,
s._digestsize = 16;
return function (t, e) {
if (null == t)
throw new Error("Illegal argument " + t);
var n = r.wordsToBytes(s(t, e));
return e && e.asBytes ? n : e && e.asString ? a.bytesToString(n) : r.bytesToHex(n)
};
})()(url)
})("http://yangkeduo.com/catgoods.html?opt_id=1689&opt_type=2&opt_name=%E7%89%9B%E4%BB%94%E8%A3%A4&opt_g=1&refer_page_name=search&refer_page_id=10031_1551782283681_PXWDvWZ1dD&refer_page_sn=10031")