newsee-cli 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +36 -36
- package/README.md +36 -36
- package/bin/init.js +1 -1
- package/micro_11111/.editorconfig +10 -0
- package/micro_11111/.eslintignore +9 -0
- package/micro_11111/.eslintrc.js +33 -0
- package/micro_11111/.postcssrc.js +21 -0
- package/micro_11111/.prettierignore +10 -0
- package/micro_11111/.prettierrc +12 -0
- package/micro_11111/.stylelintignore +8 -0
- package/micro_11111/.stylelintrc.json +303 -0
- package/micro_11111/README.md +3 -0
- package/micro_11111/babel.config.js +34 -0
- package/micro_11111/env.config.js +62 -0
- package/micro_11111/env.param.config.js +112 -0
- package/micro_11111/favicon.ico +0 -0
- package/micro_11111/index.html +28 -0
- package/micro_11111/jsconfig.json +25 -0
- package/micro_11111/package.json +60 -0
- package/micro_11111/src/App.vue +32 -0
- package/micro_11111/src/Layout/Layout.vue +28 -0
- package/micro_11111/src/UI/index.js +1 -0
- package/micro_11111/src/assets/iconfont/DIN.Alternate.Bold.ttf +0 -0
- package/micro_11111/src/assets/layout/empty.png +0 -0
- package/micro_11111/src/assets/layout/prelogin-header.png +0 -0
- package/micro_11111/src/assets/trigger/close.png +0 -0
- package/micro_11111/src/assets/trigger/company.png +0 -0
- package/micro_11111/src/assets/trigger/department.png +0 -0
- package/micro_11111/src/assets/trigger/left-arrow.png +0 -0
- package/micro_11111/src/assets/trigger/pwd.png +0 -0
- package/micro_11111/src/assets/trigger/right-arrow-gray.png +0 -0
- package/micro_11111/src/assets/trigger/search-gray.png +0 -0
- package/micro_11111/src/assets/trigger/user.png +0 -0
- package/micro_11111/src/assets/trigger/weixin-work.png +0 -0
- package/micro_11111/src/components/Selector/Selector.vue +254 -0
- package/micro_11111/src/components/Selector/components/abyss.vue +308 -0
- package/micro_11111/src/components/Selector/components/search.vue +307 -0
- package/micro_11111/src/config.js +20 -0
- package/micro_11111/src/main.js +14 -0
- package/micro_11111/src/mixins/base.js +57 -0
- package/micro_11111/src/mixins/extension/app.js +80 -0
- package/micro_11111/src/mixins/extension/cryptoPassWord.js +15 -0
- package/micro_11111/src/mixins/extension/wx-relative.js +42 -0
- package/micro_11111/src/mixins/index.js +5 -0
- package/micro_11111/src/router/index.js +12 -0
- package/micro_11111/src/router/routes.js +55 -0
- package/micro_11111/src/service/common.js +72 -0
- package/micro_11111/src/service/preload.js +19 -0
- package/micro_11111/src/service/selector.js +114 -0
- package/micro_11111/src/store/getters.js +10 -0
- package/micro_11111/src/store/index.js +18 -0
- package/micro_11111/src/store/modules/Account.js +27 -0
- package/micro_11111/src/store/modules/Base.js +38 -0
- package/micro_11111/src/style/index.scss +3 -0
- package/micro_11111/src/style/mixins/mixins.scss +11 -0
- package/micro_11111/src/style/public.scss +32 -0
- package/micro_11111/src/style/reset.scss +814 -0
- package/micro_11111/src/utils/core/create-basic.js +16 -0
- package/micro_11111/src/utils/core/create.js +13 -0
- package/micro_11111/src/utils/core/reprefix.js +8 -0
- package/micro_11111/src/utils/fetch/fetch.js +66 -0
- package/micro_11111/src/utils/fetch/fetchDataType.js +53 -0
- package/micro_11111/src/utils/index.js +0 -0
- package/micro_11111/src/utils/library/aes.js +834 -0
- package/micro_11111/src/utils/library/crypto.js +130 -0
- package/micro_11111/src/utils/library/date.js +62 -0
- package/micro_11111/src/utils/library/debounce.js +34 -0
- package/micro_11111/src/utils/library/event.js +45 -0
- package/micro_11111/src/utils/library/image.js +14 -0
- package/micro_11111/src/utils/library/stringcover.js +9 -0
- package/micro_11111/src/utils/library/urlhandle.js +14 -0
- package/micro_11111/src/utils/library/video.js +156 -0
- package/micro_11111/src/views/Home/Home.vue +23 -0
- package/micro_11111/src/views/Login/Login.vue +65 -0
- package/micro_11111/src/views/Login/LoginApp.vue +72 -0
- package/micro_11111/src/views/Login/LoginThirdApp.vue +77 -0
- package/micro_11111/src/views/Login/LoginThirdParty.vue +59 -0
- package/micro_11111/src/views/Prelogin/index.vue +199 -0
- package/micro_11111/static/loadBuffer/loadBuffer.js +19 -0
- package/micro_11111/static/loadBuffer/loading.gif +0 -0
- package/micro_11111/tag.js +19 -0
- package/package.json +46 -46
|
@@ -0,0 +1,834 @@
|
|
|
1
|
+
// aes加密
|
|
2
|
+
exports.aesDemo = function() {
|
|
3
|
+
alert('132');
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
exports.encrypt = function(word) {
|
|
7
|
+
var srcs = CryptoJS.enc.Utf8.parse(word);
|
|
8
|
+
var encrypted = CryptoJS.AES.encrypt(srcs, key, option);
|
|
9
|
+
return encrypted.toString();
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
// aes解密
|
|
13
|
+
exports.decrypt = function(word) {
|
|
14
|
+
var _word = word.toString().replace(/[\r\n]/g, '');
|
|
15
|
+
var decrypt = CryptoJS.AES.decrypt(_word, key, option);
|
|
16
|
+
return CryptoJS.enc.Utf8.stringify(decrypt).toString();
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
var CryptoJS =
|
|
20
|
+
CryptoJS ||
|
|
21
|
+
(function(u, p) {
|
|
22
|
+
var d = {},
|
|
23
|
+
l = (d.lib = {}),
|
|
24
|
+
s = function() {},
|
|
25
|
+
t = (l.Base = {
|
|
26
|
+
extend: function(a) {
|
|
27
|
+
s.prototype = this;
|
|
28
|
+
var c = new s();
|
|
29
|
+
a && c.mixIn(a);
|
|
30
|
+
c.hasOwnProperty('init') ||
|
|
31
|
+
(c.init = function() {
|
|
32
|
+
c.$super.init.apply(this, arguments);
|
|
33
|
+
});
|
|
34
|
+
c.init.prototype = c;
|
|
35
|
+
c.$super = this;
|
|
36
|
+
return c;
|
|
37
|
+
},
|
|
38
|
+
create: function() {
|
|
39
|
+
var a = this.extend();
|
|
40
|
+
a.init.apply(a, arguments);
|
|
41
|
+
return a;
|
|
42
|
+
},
|
|
43
|
+
init: function() {},
|
|
44
|
+
mixIn: function(a) {
|
|
45
|
+
for (var c in a) a.hasOwnProperty(c) && (this[c] = a[c]);
|
|
46
|
+
a.hasOwnProperty('toString') && (this.toString = a.toString);
|
|
47
|
+
},
|
|
48
|
+
clone: function() {
|
|
49
|
+
return this.init.prototype.extend(this);
|
|
50
|
+
},
|
|
51
|
+
}),
|
|
52
|
+
r = (l.WordArray = t.extend({
|
|
53
|
+
init: function(a, c) {
|
|
54
|
+
a = this.words = a || [];
|
|
55
|
+
this.sigBytes = c != p ? c : 4 * a.length;
|
|
56
|
+
},
|
|
57
|
+
toString: function(a) {
|
|
58
|
+
return (a || v).stringify(this);
|
|
59
|
+
},
|
|
60
|
+
concat: function(a) {
|
|
61
|
+
var c = this.words,
|
|
62
|
+
e = a.words,
|
|
63
|
+
j = this.sigBytes;
|
|
64
|
+
a = a.sigBytes;
|
|
65
|
+
this.clamp();
|
|
66
|
+
if (j % 4)
|
|
67
|
+
for (var k = 0; k < a; k++)
|
|
68
|
+
c[(j + k) >>> 2] |=
|
|
69
|
+
((e[k >>> 2] >>> (24 - 8 * (k % 4))) & 255) << (24 - 8 * ((j + k) % 4));
|
|
70
|
+
else if (65535 < e.length) for (k = 0; k < a; k += 4) c[(j + k) >>> 2] = e[k >>> 2];
|
|
71
|
+
else c.push.apply(c, e);
|
|
72
|
+
this.sigBytes += a;
|
|
73
|
+
return this;
|
|
74
|
+
},
|
|
75
|
+
clamp: function() {
|
|
76
|
+
var a = this.words,
|
|
77
|
+
c = this.sigBytes;
|
|
78
|
+
a[c >>> 2] &= 4294967295 << (32 - 8 * (c % 4));
|
|
79
|
+
a.length = u.ceil(c / 4);
|
|
80
|
+
},
|
|
81
|
+
clone: function() {
|
|
82
|
+
var a = t.clone.call(this);
|
|
83
|
+
a.words = this.words.slice(0);
|
|
84
|
+
return a;
|
|
85
|
+
},
|
|
86
|
+
random: function(a) {
|
|
87
|
+
for (var c = [], e = 0; e < a; e += 4) c.push((4294967296 * u.random()) | 0);
|
|
88
|
+
return new r.init(c, a);
|
|
89
|
+
},
|
|
90
|
+
})),
|
|
91
|
+
w = (d.enc = {}),
|
|
92
|
+
v = (w.Hex = {
|
|
93
|
+
stringify: function(a) {
|
|
94
|
+
var c = a.words;
|
|
95
|
+
a = a.sigBytes;
|
|
96
|
+
for (var e = [], j = 0; j < a; j++) {
|
|
97
|
+
var k = (c[j >>> 2] >>> (24 - 8 * (j % 4))) & 255;
|
|
98
|
+
e.push((k >>> 4).toString(16));
|
|
99
|
+
e.push((k & 15).toString(16));
|
|
100
|
+
}
|
|
101
|
+
return e.join('');
|
|
102
|
+
},
|
|
103
|
+
parse: function(a) {
|
|
104
|
+
for (var c = a.length, e = [], j = 0; j < c; j += 2)
|
|
105
|
+
e[j >>> 3] |= parseInt(a.substr(j, 2), 16) << (24 - 4 * (j % 8));
|
|
106
|
+
return new r.init(e, c / 2);
|
|
107
|
+
},
|
|
108
|
+
}),
|
|
109
|
+
b = (w.Latin1 = {
|
|
110
|
+
stringify: function(a) {
|
|
111
|
+
var c = a.words;
|
|
112
|
+
a = a.sigBytes;
|
|
113
|
+
for (var e = [], j = 0; j < a; j++)
|
|
114
|
+
e.push(String.fromCharCode((c[j >>> 2] >>> (24 - 8 * (j % 4))) & 255));
|
|
115
|
+
return e.join('');
|
|
116
|
+
},
|
|
117
|
+
parse: function(a) {
|
|
118
|
+
for (var c = a.length, e = [], j = 0; j < c; j++)
|
|
119
|
+
e[j >>> 2] |= (a.charCodeAt(j) & 255) << (24 - 8 * (j % 4));
|
|
120
|
+
return new r.init(e, c);
|
|
121
|
+
},
|
|
122
|
+
}),
|
|
123
|
+
x = (w.Utf8 = {
|
|
124
|
+
stringify: function(a) {
|
|
125
|
+
try {
|
|
126
|
+
return decodeURIComponent(escape(b.stringify(a)));
|
|
127
|
+
} catch (c) {
|
|
128
|
+
throw Error('Malformed UTF-8 data');
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
parse: function(a) {
|
|
132
|
+
return b.parse(unescape(encodeURIComponent(a)));
|
|
133
|
+
},
|
|
134
|
+
}),
|
|
135
|
+
q = (l.BufferedBlockAlgorithm = t.extend({
|
|
136
|
+
reset: function() {
|
|
137
|
+
this._data = new r.init();
|
|
138
|
+
this._nDataBytes = 0;
|
|
139
|
+
},
|
|
140
|
+
_append: function(a) {
|
|
141
|
+
'string' == typeof a && (a = x.parse(a));
|
|
142
|
+
this._data.concat(a);
|
|
143
|
+
this._nDataBytes += a.sigBytes;
|
|
144
|
+
},
|
|
145
|
+
_process: function(a) {
|
|
146
|
+
var c = this._data,
|
|
147
|
+
e = c.words,
|
|
148
|
+
j = c.sigBytes,
|
|
149
|
+
k = this.blockSize,
|
|
150
|
+
b = j / (4 * k),
|
|
151
|
+
b = a ? u.ceil(b) : u.max((b | 0) - this._minBufferSize, 0);
|
|
152
|
+
a = b * k;
|
|
153
|
+
j = u.min(4 * a, j);
|
|
154
|
+
if (a) {
|
|
155
|
+
for (var q = 0; q < a; q += k) this._doProcessBlock(e, q);
|
|
156
|
+
q = e.splice(0, a);
|
|
157
|
+
c.sigBytes -= j;
|
|
158
|
+
}
|
|
159
|
+
return new r.init(q, j);
|
|
160
|
+
},
|
|
161
|
+
clone: function() {
|
|
162
|
+
var a = t.clone.call(this);
|
|
163
|
+
a._data = this._data.clone();
|
|
164
|
+
return a;
|
|
165
|
+
},
|
|
166
|
+
_minBufferSize: 0,
|
|
167
|
+
}));
|
|
168
|
+
l.Hasher = q.extend({
|
|
169
|
+
cfg: t.extend(),
|
|
170
|
+
init: function(a) {
|
|
171
|
+
this.cfg = this.cfg.extend(a);
|
|
172
|
+
this.reset();
|
|
173
|
+
},
|
|
174
|
+
reset: function() {
|
|
175
|
+
q.reset.call(this);
|
|
176
|
+
this._doReset();
|
|
177
|
+
},
|
|
178
|
+
update: function(a) {
|
|
179
|
+
this._append(a);
|
|
180
|
+
this._process();
|
|
181
|
+
return this;
|
|
182
|
+
},
|
|
183
|
+
finalize: function(a) {
|
|
184
|
+
a && this._append(a);
|
|
185
|
+
return this._doFinalize();
|
|
186
|
+
},
|
|
187
|
+
blockSize: 16,
|
|
188
|
+
_createHelper: function(a) {
|
|
189
|
+
return function(b, e) {
|
|
190
|
+
return new a.init(e).finalize(b);
|
|
191
|
+
};
|
|
192
|
+
},
|
|
193
|
+
_createHmacHelper: function(a) {
|
|
194
|
+
return function(b, e) {
|
|
195
|
+
return new n.HMAC.init(a, e).finalize(b);
|
|
196
|
+
};
|
|
197
|
+
},
|
|
198
|
+
});
|
|
199
|
+
var n = (d.algo = {});
|
|
200
|
+
return d;
|
|
201
|
+
})(Math);
|
|
202
|
+
(function() {
|
|
203
|
+
var u = CryptoJS,
|
|
204
|
+
p = u.lib.WordArray;
|
|
205
|
+
u.enc.Base64 = {
|
|
206
|
+
stringify: function(d) {
|
|
207
|
+
var l = d.words,
|
|
208
|
+
p = d.sigBytes,
|
|
209
|
+
t = this._map;
|
|
210
|
+
d.clamp();
|
|
211
|
+
d = [];
|
|
212
|
+
for (var r = 0; r < p; r += 3)
|
|
213
|
+
for (
|
|
214
|
+
var w =
|
|
215
|
+
(((l[r >>> 2] >>> (24 - 8 * (r % 4))) & 255) << 16) |
|
|
216
|
+
(((l[(r + 1) >>> 2] >>> (24 - 8 * ((r + 1) % 4))) & 255) << 8) |
|
|
217
|
+
((l[(r + 2) >>> 2] >>> (24 - 8 * ((r + 2) % 4))) & 255),
|
|
218
|
+
v = 0;
|
|
219
|
+
4 > v && r + 0.75 * v < p;
|
|
220
|
+
v++
|
|
221
|
+
)
|
|
222
|
+
d.push(t.charAt((w >>> (6 * (3 - v))) & 63));
|
|
223
|
+
if ((l = t.charAt(64))) for (; d.length % 4; ) d.push(l);
|
|
224
|
+
return d.join('');
|
|
225
|
+
},
|
|
226
|
+
parse: function(d) {
|
|
227
|
+
var l = d.length,
|
|
228
|
+
s = this._map,
|
|
229
|
+
t = s.charAt(64);
|
|
230
|
+
t && ((t = d.indexOf(t)), -1 != t && (l = t));
|
|
231
|
+
for (var t = [], r = 0, w = 0; w < l; w++)
|
|
232
|
+
if (w % 4) {
|
|
233
|
+
var v = s.indexOf(d.charAt(w - 1)) << (2 * (w % 4)),
|
|
234
|
+
b = s.indexOf(d.charAt(w)) >>> (6 - 2 * (w % 4));
|
|
235
|
+
t[r >>> 2] |= (v | b) << (24 - 8 * (r % 4));
|
|
236
|
+
r++;
|
|
237
|
+
}
|
|
238
|
+
return p.create(t, r);
|
|
239
|
+
},
|
|
240
|
+
_map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',
|
|
241
|
+
};
|
|
242
|
+
})();
|
|
243
|
+
(function(u) {
|
|
244
|
+
function p(b, n, a, c, e, j, k) {
|
|
245
|
+
b = b + ((n & a) | (~n & c)) + e + k;
|
|
246
|
+
return ((b << j) | (b >>> (32 - j))) + n;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
function d(b, n, a, c, e, j, k) {
|
|
250
|
+
b = b + ((n & c) | (a & ~c)) + e + k;
|
|
251
|
+
return ((b << j) | (b >>> (32 - j))) + n;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
function l(b, n, a, c, e, j, k) {
|
|
255
|
+
b = b + (n ^ a ^ c) + e + k;
|
|
256
|
+
return ((b << j) | (b >>> (32 - j))) + n;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
function s(b, n, a, c, e, j, k) {
|
|
260
|
+
b = b + (a ^ (n | ~c)) + e + k;
|
|
261
|
+
return ((b << j) | (b >>> (32 - j))) + n;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
for (
|
|
265
|
+
var t = CryptoJS, r = t.lib, w = r.WordArray, v = r.Hasher, r = t.algo, b = [], x = 0;
|
|
266
|
+
64 > x;
|
|
267
|
+
x++
|
|
268
|
+
)
|
|
269
|
+
b[x] = (4294967296 * u.abs(u.sin(x + 1))) | 0;
|
|
270
|
+
r = r.MD5 = v.extend({
|
|
271
|
+
_doReset: function() {
|
|
272
|
+
this._hash = new w.init([1732584193, 4023233417, 2562383102, 271733878]);
|
|
273
|
+
},
|
|
274
|
+
_doProcessBlock: function(q, n) {
|
|
275
|
+
for (var a = 0; 16 > a; a++) {
|
|
276
|
+
var c = n + a,
|
|
277
|
+
e = q[c];
|
|
278
|
+
q[c] = (((e << 8) | (e >>> 24)) & 16711935) | (((e << 24) | (e >>> 8)) & 4278255360);
|
|
279
|
+
}
|
|
280
|
+
var a = this._hash.words,
|
|
281
|
+
c = q[n + 0],
|
|
282
|
+
e = q[n + 1],
|
|
283
|
+
j = q[n + 2],
|
|
284
|
+
k = q[n + 3],
|
|
285
|
+
z = q[n + 4],
|
|
286
|
+
r = q[n + 5],
|
|
287
|
+
t = q[n + 6],
|
|
288
|
+
w = q[n + 7],
|
|
289
|
+
v = q[n + 8],
|
|
290
|
+
A = q[n + 9],
|
|
291
|
+
B = q[n + 10],
|
|
292
|
+
C = q[n + 11],
|
|
293
|
+
u = q[n + 12],
|
|
294
|
+
D = q[n + 13],
|
|
295
|
+
E = q[n + 14],
|
|
296
|
+
x = q[n + 15],
|
|
297
|
+
f = a[0],
|
|
298
|
+
m = a[1],
|
|
299
|
+
g = a[2],
|
|
300
|
+
h = a[3],
|
|
301
|
+
f = p(f, m, g, h, c, 7, b[0]),
|
|
302
|
+
h = p(h, f, m, g, e, 12, b[1]),
|
|
303
|
+
g = p(g, h, f, m, j, 17, b[2]),
|
|
304
|
+
m = p(m, g, h, f, k, 22, b[3]),
|
|
305
|
+
f = p(f, m, g, h, z, 7, b[4]),
|
|
306
|
+
h = p(h, f, m, g, r, 12, b[5]),
|
|
307
|
+
g = p(g, h, f, m, t, 17, b[6]),
|
|
308
|
+
m = p(m, g, h, f, w, 22, b[7]),
|
|
309
|
+
f = p(f, m, g, h, v, 7, b[8]),
|
|
310
|
+
h = p(h, f, m, g, A, 12, b[9]),
|
|
311
|
+
g = p(g, h, f, m, B, 17, b[10]),
|
|
312
|
+
m = p(m, g, h, f, C, 22, b[11]),
|
|
313
|
+
f = p(f, m, g, h, u, 7, b[12]),
|
|
314
|
+
h = p(h, f, m, g, D, 12, b[13]),
|
|
315
|
+
g = p(g, h, f, m, E, 17, b[14]),
|
|
316
|
+
m = p(m, g, h, f, x, 22, b[15]),
|
|
317
|
+
f = d(f, m, g, h, e, 5, b[16]),
|
|
318
|
+
h = d(h, f, m, g, t, 9, b[17]),
|
|
319
|
+
g = d(g, h, f, m, C, 14, b[18]),
|
|
320
|
+
m = d(m, g, h, f, c, 20, b[19]),
|
|
321
|
+
f = d(f, m, g, h, r, 5, b[20]),
|
|
322
|
+
h = d(h, f, m, g, B, 9, b[21]),
|
|
323
|
+
g = d(g, h, f, m, x, 14, b[22]),
|
|
324
|
+
m = d(m, g, h, f, z, 20, b[23]),
|
|
325
|
+
f = d(f, m, g, h, A, 5, b[24]),
|
|
326
|
+
h = d(h, f, m, g, E, 9, b[25]),
|
|
327
|
+
g = d(g, h, f, m, k, 14, b[26]),
|
|
328
|
+
m = d(m, g, h, f, v, 20, b[27]),
|
|
329
|
+
f = d(f, m, g, h, D, 5, b[28]),
|
|
330
|
+
h = d(h, f, m, g, j, 9, b[29]),
|
|
331
|
+
g = d(g, h, f, m, w, 14, b[30]),
|
|
332
|
+
m = d(m, g, h, f, u, 20, b[31]),
|
|
333
|
+
f = l(f, m, g, h, r, 4, b[32]),
|
|
334
|
+
h = l(h, f, m, g, v, 11, b[33]),
|
|
335
|
+
g = l(g, h, f, m, C, 16, b[34]),
|
|
336
|
+
m = l(m, g, h, f, E, 23, b[35]),
|
|
337
|
+
f = l(f, m, g, h, e, 4, b[36]),
|
|
338
|
+
h = l(h, f, m, g, z, 11, b[37]),
|
|
339
|
+
g = l(g, h, f, m, w, 16, b[38]),
|
|
340
|
+
m = l(m, g, h, f, B, 23, b[39]),
|
|
341
|
+
f = l(f, m, g, h, D, 4, b[40]),
|
|
342
|
+
h = l(h, f, m, g, c, 11, b[41]),
|
|
343
|
+
g = l(g, h, f, m, k, 16, b[42]),
|
|
344
|
+
m = l(m, g, h, f, t, 23, b[43]),
|
|
345
|
+
f = l(f, m, g, h, A, 4, b[44]),
|
|
346
|
+
h = l(h, f, m, g, u, 11, b[45]),
|
|
347
|
+
g = l(g, h, f, m, x, 16, b[46]),
|
|
348
|
+
m = l(m, g, h, f, j, 23, b[47]),
|
|
349
|
+
f = s(f, m, g, h, c, 6, b[48]),
|
|
350
|
+
h = s(h, f, m, g, w, 10, b[49]),
|
|
351
|
+
g = s(g, h, f, m, E, 15, b[50]),
|
|
352
|
+
m = s(m, g, h, f, r, 21, b[51]),
|
|
353
|
+
f = s(f, m, g, h, u, 6, b[52]),
|
|
354
|
+
h = s(h, f, m, g, k, 10, b[53]),
|
|
355
|
+
g = s(g, h, f, m, B, 15, b[54]),
|
|
356
|
+
m = s(m, g, h, f, e, 21, b[55]),
|
|
357
|
+
f = s(f, m, g, h, v, 6, b[56]),
|
|
358
|
+
h = s(h, f, m, g, x, 10, b[57]),
|
|
359
|
+
g = s(g, h, f, m, t, 15, b[58]),
|
|
360
|
+
m = s(m, g, h, f, D, 21, b[59]),
|
|
361
|
+
f = s(f, m, g, h, z, 6, b[60]),
|
|
362
|
+
h = s(h, f, m, g, C, 10, b[61]),
|
|
363
|
+
g = s(g, h, f, m, j, 15, b[62]),
|
|
364
|
+
m = s(m, g, h, f, A, 21, b[63]);
|
|
365
|
+
a[0] = (a[0] + f) | 0;
|
|
366
|
+
a[1] = (a[1] + m) | 0;
|
|
367
|
+
a[2] = (a[2] + g) | 0;
|
|
368
|
+
a[3] = (a[3] + h) | 0;
|
|
369
|
+
},
|
|
370
|
+
_doFinalize: function() {
|
|
371
|
+
var b = this._data,
|
|
372
|
+
n = b.words,
|
|
373
|
+
a = 8 * this._nDataBytes,
|
|
374
|
+
c = 8 * b.sigBytes;
|
|
375
|
+
n[c >>> 5] |= 128 << (24 - (c % 32));
|
|
376
|
+
var e = u.floor(a / 4294967296);
|
|
377
|
+
n[(((c + 64) >>> 9) << 4) + 15] =
|
|
378
|
+
(((e << 8) | (e >>> 24)) & 16711935) | (((e << 24) | (e >>> 8)) & 4278255360);
|
|
379
|
+
n[(((c + 64) >>> 9) << 4) + 14] =
|
|
380
|
+
(((a << 8) | (a >>> 24)) & 16711935) | (((a << 24) | (a >>> 8)) & 4278255360);
|
|
381
|
+
b.sigBytes = 4 * (n.length + 1);
|
|
382
|
+
this._process();
|
|
383
|
+
b = this._hash;
|
|
384
|
+
n = b.words;
|
|
385
|
+
for (a = 0; 4 > a; a++)
|
|
386
|
+
(c = n[a]),
|
|
387
|
+
(n[a] = (((c << 8) | (c >>> 24)) & 16711935) | (((c << 24) | (c >>> 8)) & 4278255360));
|
|
388
|
+
return b;
|
|
389
|
+
},
|
|
390
|
+
clone: function() {
|
|
391
|
+
var b = v.clone.call(this);
|
|
392
|
+
b._hash = this._hash.clone();
|
|
393
|
+
return b;
|
|
394
|
+
},
|
|
395
|
+
});
|
|
396
|
+
t.MD5 = v._createHelper(r);
|
|
397
|
+
t.HmacMD5 = v._createHmacHelper(r);
|
|
398
|
+
})(Math);
|
|
399
|
+
(function() {
|
|
400
|
+
var u = CryptoJS,
|
|
401
|
+
p = u.lib,
|
|
402
|
+
d = p.Base,
|
|
403
|
+
l = p.WordArray,
|
|
404
|
+
p = u.algo,
|
|
405
|
+
s = (p.EvpKDF = d.extend({
|
|
406
|
+
cfg: d.extend({ keySize: 4, hasher: p.MD5, iterations: 1 }),
|
|
407
|
+
init: function(d) {
|
|
408
|
+
this.cfg = this.cfg.extend(d);
|
|
409
|
+
},
|
|
410
|
+
compute: function(d, r) {
|
|
411
|
+
for (
|
|
412
|
+
var p = this.cfg,
|
|
413
|
+
s = p.hasher.create(),
|
|
414
|
+
b = l.create(),
|
|
415
|
+
u = b.words,
|
|
416
|
+
q = p.keySize,
|
|
417
|
+
p = p.iterations;
|
|
418
|
+
u.length < q;
|
|
419
|
+
|
|
420
|
+
) {
|
|
421
|
+
n && s.update(n);
|
|
422
|
+
var n = s.update(d).finalize(r);
|
|
423
|
+
s.reset();
|
|
424
|
+
for (var a = 1; a < p; a++) (n = s.finalize(n)), s.reset();
|
|
425
|
+
b.concat(n);
|
|
426
|
+
}
|
|
427
|
+
b.sigBytes = 4 * q;
|
|
428
|
+
return b;
|
|
429
|
+
},
|
|
430
|
+
}));
|
|
431
|
+
u.EvpKDF = function(d, l, p) {
|
|
432
|
+
return s.create(p).compute(d, l);
|
|
433
|
+
};
|
|
434
|
+
})();
|
|
435
|
+
CryptoJS.lib.Cipher ||
|
|
436
|
+
(function(u) {
|
|
437
|
+
var p = CryptoJS,
|
|
438
|
+
d = p.lib,
|
|
439
|
+
l = d.Base,
|
|
440
|
+
s = d.WordArray,
|
|
441
|
+
t = d.BufferedBlockAlgorithm,
|
|
442
|
+
r = p.enc.Base64,
|
|
443
|
+
w = p.algo.EvpKDF,
|
|
444
|
+
v = (d.Cipher = t.extend({
|
|
445
|
+
cfg: l.extend(),
|
|
446
|
+
createEncryptor: function(e, a) {
|
|
447
|
+
return this.create(this._ENC_XFORM_MODE, e, a);
|
|
448
|
+
},
|
|
449
|
+
createDecryptor: function(e, a) {
|
|
450
|
+
return this.create(this._DEC_XFORM_MODE, e, a);
|
|
451
|
+
},
|
|
452
|
+
init: function(e, a, b) {
|
|
453
|
+
this.cfg = this.cfg.extend(b);
|
|
454
|
+
this._xformMode = e;
|
|
455
|
+
this._key = a;
|
|
456
|
+
this.reset();
|
|
457
|
+
},
|
|
458
|
+
reset: function() {
|
|
459
|
+
t.reset.call(this);
|
|
460
|
+
this._doReset();
|
|
461
|
+
},
|
|
462
|
+
process: function(e) {
|
|
463
|
+
this._append(e);
|
|
464
|
+
return this._process();
|
|
465
|
+
},
|
|
466
|
+
finalize: function(e) {
|
|
467
|
+
e && this._append(e);
|
|
468
|
+
return this._doFinalize();
|
|
469
|
+
},
|
|
470
|
+
keySize: 4,
|
|
471
|
+
ivSize: 4,
|
|
472
|
+
_ENC_XFORM_MODE: 1,
|
|
473
|
+
_DEC_XFORM_MODE: 2,
|
|
474
|
+
_createHelper: function(e) {
|
|
475
|
+
return {
|
|
476
|
+
encrypt: function(b, k, d) {
|
|
477
|
+
return ('string' == typeof k ? c : a).encrypt(e, b, k, d);
|
|
478
|
+
},
|
|
479
|
+
decrypt: function(b, k, d) {
|
|
480
|
+
return ('string' == typeof k ? c : a).decrypt(e, b, k, d);
|
|
481
|
+
},
|
|
482
|
+
};
|
|
483
|
+
},
|
|
484
|
+
}));
|
|
485
|
+
d.StreamCipher = v.extend({
|
|
486
|
+
_doFinalize: function() {
|
|
487
|
+
return this._process(!0);
|
|
488
|
+
},
|
|
489
|
+
blockSize: 1,
|
|
490
|
+
});
|
|
491
|
+
var b = (p.mode = {}),
|
|
492
|
+
x = function(e, a, b) {
|
|
493
|
+
var c = this._iv;
|
|
494
|
+
c ? (this._iv = u) : (c = this._prevBlock);
|
|
495
|
+
for (var d = 0; d < b; d++) e[a + d] ^= c[d];
|
|
496
|
+
},
|
|
497
|
+
q = (d.BlockCipherMode = l.extend({
|
|
498
|
+
createEncryptor: function(e, a) {
|
|
499
|
+
return this.Encryptor.create(e, a);
|
|
500
|
+
},
|
|
501
|
+
createDecryptor: function(e, a) {
|
|
502
|
+
return this.Decryptor.create(e, a);
|
|
503
|
+
},
|
|
504
|
+
init: function(e, a) {
|
|
505
|
+
this._cipher = e;
|
|
506
|
+
this._iv = a;
|
|
507
|
+
},
|
|
508
|
+
})).extend();
|
|
509
|
+
q.Encryptor = q.extend({
|
|
510
|
+
processBlock: function(e, a) {
|
|
511
|
+
var b = this._cipher,
|
|
512
|
+
c = b.blockSize;
|
|
513
|
+
x.call(this, e, a, c);
|
|
514
|
+
b.encryptBlock(e, a);
|
|
515
|
+
this._prevBlock = e.slice(a, a + c);
|
|
516
|
+
},
|
|
517
|
+
});
|
|
518
|
+
q.Decryptor = q.extend({
|
|
519
|
+
processBlock: function(e, a) {
|
|
520
|
+
var b = this._cipher,
|
|
521
|
+
c = b.blockSize,
|
|
522
|
+
d = e.slice(a, a + c);
|
|
523
|
+
b.decryptBlock(e, a);
|
|
524
|
+
x.call(this, e, a, c);
|
|
525
|
+
this._prevBlock = d;
|
|
526
|
+
},
|
|
527
|
+
});
|
|
528
|
+
b = b.CBC = q;
|
|
529
|
+
q = (p.pad = {}).Pkcs7 = {
|
|
530
|
+
pad: function(a, b) {
|
|
531
|
+
for (
|
|
532
|
+
var c = 4 * b,
|
|
533
|
+
c = c - (a.sigBytes % c),
|
|
534
|
+
d = (c << 24) | (c << 16) | (c << 8) | c,
|
|
535
|
+
l = [],
|
|
536
|
+
n = 0;
|
|
537
|
+
n < c;
|
|
538
|
+
n += 4
|
|
539
|
+
)
|
|
540
|
+
l.push(d);
|
|
541
|
+
c = s.create(l, c);
|
|
542
|
+
a.concat(c);
|
|
543
|
+
},
|
|
544
|
+
unpad: function(a) {
|
|
545
|
+
a.sigBytes -= a.words[(a.sigBytes - 1) >>> 2] & 255;
|
|
546
|
+
},
|
|
547
|
+
};
|
|
548
|
+
d.BlockCipher = v.extend({
|
|
549
|
+
cfg: v.cfg.extend({ mode: b, padding: q }),
|
|
550
|
+
reset: function() {
|
|
551
|
+
v.reset.call(this);
|
|
552
|
+
var a = this.cfg,
|
|
553
|
+
b = a.iv,
|
|
554
|
+
a = a.mode;
|
|
555
|
+
if (this._xformMode == this._ENC_XFORM_MODE) var c = a.createEncryptor;
|
|
556
|
+
else (c = a.createDecryptor), (this._minBufferSize = 1);
|
|
557
|
+
this._mode = c.call(a, this, b && b.words);
|
|
558
|
+
},
|
|
559
|
+
_doProcessBlock: function(a, b) {
|
|
560
|
+
this._mode.processBlock(a, b);
|
|
561
|
+
},
|
|
562
|
+
_doFinalize: function() {
|
|
563
|
+
var a = this.cfg.padding;
|
|
564
|
+
if (this._xformMode == this._ENC_XFORM_MODE) {
|
|
565
|
+
a.pad(this._data, this.blockSize);
|
|
566
|
+
var b = this._process(!0);
|
|
567
|
+
} else (b = this._process(!0)), a.unpad(b);
|
|
568
|
+
return b;
|
|
569
|
+
},
|
|
570
|
+
blockSize: 4,
|
|
571
|
+
});
|
|
572
|
+
var n = (d.CipherParams = l.extend({
|
|
573
|
+
init: function(a) {
|
|
574
|
+
this.mixIn(a);
|
|
575
|
+
},
|
|
576
|
+
toString: function(a) {
|
|
577
|
+
return (a || this.formatter).stringify(this);
|
|
578
|
+
},
|
|
579
|
+
})),
|
|
580
|
+
b = ((p.format = {}).OpenSSL = {
|
|
581
|
+
stringify: function(a) {
|
|
582
|
+
var b = a.ciphertext;
|
|
583
|
+
a = a.salt;
|
|
584
|
+
return (a
|
|
585
|
+
? s
|
|
586
|
+
.create([1398893684, 1701076831])
|
|
587
|
+
.concat(a)
|
|
588
|
+
.concat(b)
|
|
589
|
+
: b
|
|
590
|
+
).toString(r);
|
|
591
|
+
},
|
|
592
|
+
parse: function(a) {
|
|
593
|
+
a = r.parse(a);
|
|
594
|
+
var b = a.words;
|
|
595
|
+
if (1398893684 == b[0] && 1701076831 == b[1]) {
|
|
596
|
+
var c = s.create(b.slice(2, 4));
|
|
597
|
+
b.splice(0, 4);
|
|
598
|
+
a.sigBytes -= 16;
|
|
599
|
+
}
|
|
600
|
+
return n.create({ ciphertext: a, salt: c });
|
|
601
|
+
},
|
|
602
|
+
}),
|
|
603
|
+
a = (d.SerializableCipher = l.extend({
|
|
604
|
+
cfg: l.extend({ format: b }),
|
|
605
|
+
encrypt: function(a, b, c, d) {
|
|
606
|
+
d = this.cfg.extend(d);
|
|
607
|
+
var l = a.createEncryptor(c, d);
|
|
608
|
+
b = l.finalize(b);
|
|
609
|
+
l = l.cfg;
|
|
610
|
+
return n.create({
|
|
611
|
+
ciphertext: b,
|
|
612
|
+
key: c,
|
|
613
|
+
iv: l.iv,
|
|
614
|
+
algorithm: a,
|
|
615
|
+
mode: l.mode,
|
|
616
|
+
padding: l.padding,
|
|
617
|
+
blockSize: a.blockSize,
|
|
618
|
+
formatter: d.format,
|
|
619
|
+
});
|
|
620
|
+
},
|
|
621
|
+
decrypt: function(a, b, c, d) {
|
|
622
|
+
d = this.cfg.extend(d);
|
|
623
|
+
b = this._parse(b, d.format);
|
|
624
|
+
return a.createDecryptor(c, d).finalize(b.ciphertext);
|
|
625
|
+
},
|
|
626
|
+
_parse: function(a, b) {
|
|
627
|
+
return 'string' == typeof a ? b.parse(a, this) : a;
|
|
628
|
+
},
|
|
629
|
+
})),
|
|
630
|
+
p = ((p.kdf = {}).OpenSSL = {
|
|
631
|
+
execute: function(a, b, c, d) {
|
|
632
|
+
d || (d = s.random(8));
|
|
633
|
+
a = w.create({ keySize: b + c }).compute(a, d);
|
|
634
|
+
c = s.create(a.words.slice(b), 4 * c);
|
|
635
|
+
a.sigBytes = 4 * b;
|
|
636
|
+
return n.create({ key: a, iv: c, salt: d });
|
|
637
|
+
},
|
|
638
|
+
}),
|
|
639
|
+
c = (d.PasswordBasedCipher = a.extend({
|
|
640
|
+
cfg: a.cfg.extend({ kdf: p }),
|
|
641
|
+
encrypt: function(b, c, d, l) {
|
|
642
|
+
l = this.cfg.extend(l);
|
|
643
|
+
d = l.kdf.execute(d, b.keySize, b.ivSize);
|
|
644
|
+
l.iv = d.iv;
|
|
645
|
+
b = a.encrypt.call(this, b, c, d.key, l);
|
|
646
|
+
b.mixIn(d);
|
|
647
|
+
return b;
|
|
648
|
+
},
|
|
649
|
+
decrypt: function(b, c, d, l) {
|
|
650
|
+
l = this.cfg.extend(l);
|
|
651
|
+
c = this._parse(c, l.format);
|
|
652
|
+
d = l.kdf.execute(d, b.keySize, b.ivSize, c.salt);
|
|
653
|
+
l.iv = d.iv;
|
|
654
|
+
return a.decrypt.call(this, b, c, d.key, l);
|
|
655
|
+
},
|
|
656
|
+
}));
|
|
657
|
+
})();
|
|
658
|
+
(function() {
|
|
659
|
+
for (
|
|
660
|
+
var u = CryptoJS,
|
|
661
|
+
p = u.lib.BlockCipher,
|
|
662
|
+
d = u.algo,
|
|
663
|
+
l = [],
|
|
664
|
+
s = [],
|
|
665
|
+
t = [],
|
|
666
|
+
r = [],
|
|
667
|
+
w = [],
|
|
668
|
+
v = [],
|
|
669
|
+
b = [],
|
|
670
|
+
x = [],
|
|
671
|
+
q = [],
|
|
672
|
+
n = [],
|
|
673
|
+
a = [],
|
|
674
|
+
c = 0;
|
|
675
|
+
256 > c;
|
|
676
|
+
c++
|
|
677
|
+
)
|
|
678
|
+
a[c] = 128 > c ? c << 1 : (c << 1) ^ 283;
|
|
679
|
+
for (var e = 0, j = 0, c = 0; 256 > c; c++) {
|
|
680
|
+
var k = j ^ (j << 1) ^ (j << 2) ^ (j << 3) ^ (j << 4),
|
|
681
|
+
k = (k >>> 8) ^ (k & 255) ^ 99;
|
|
682
|
+
l[e] = k;
|
|
683
|
+
s[k] = e;
|
|
684
|
+
var z = a[e],
|
|
685
|
+
F = a[z],
|
|
686
|
+
G = a[F],
|
|
687
|
+
y = (257 * a[k]) ^ (16843008 * k);
|
|
688
|
+
t[e] = (y << 24) | (y >>> 8);
|
|
689
|
+
r[e] = (y << 16) | (y >>> 16);
|
|
690
|
+
w[e] = (y << 8) | (y >>> 24);
|
|
691
|
+
v[e] = y;
|
|
692
|
+
y = (16843009 * G) ^ (65537 * F) ^ (257 * z) ^ (16843008 * e);
|
|
693
|
+
b[k] = (y << 24) | (y >>> 8);
|
|
694
|
+
x[k] = (y << 16) | (y >>> 16);
|
|
695
|
+
q[k] = (y << 8) | (y >>> 24);
|
|
696
|
+
n[k] = y;
|
|
697
|
+
e ? ((e = z ^ a[a[a[G ^ z]]]), (j ^= a[a[j]])) : (e = j = 1);
|
|
698
|
+
}
|
|
699
|
+
var H = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54],
|
|
700
|
+
d = (d.AES = p.extend({
|
|
701
|
+
_doReset: function() {
|
|
702
|
+
for (
|
|
703
|
+
var a = this._key,
|
|
704
|
+
c = a.words,
|
|
705
|
+
d = a.sigBytes / 4,
|
|
706
|
+
a = 4 * ((this._nRounds = d + 6) + 1),
|
|
707
|
+
e = (this._keySchedule = []),
|
|
708
|
+
j = 0;
|
|
709
|
+
j < a;
|
|
710
|
+
j++
|
|
711
|
+
)
|
|
712
|
+
if (j < d) e[j] = c[j];
|
|
713
|
+
else {
|
|
714
|
+
var k = e[j - 1];
|
|
715
|
+
j % d
|
|
716
|
+
? 6 < d &&
|
|
717
|
+
4 == j % d &&
|
|
718
|
+
(k =
|
|
719
|
+
(l[k >>> 24] << 24) |
|
|
720
|
+
(l[(k >>> 16) & 255] << 16) |
|
|
721
|
+
(l[(k >>> 8) & 255] << 8) |
|
|
722
|
+
l[k & 255])
|
|
723
|
+
: ((k = (k << 8) | (k >>> 24)),
|
|
724
|
+
(k =
|
|
725
|
+
(l[k >>> 24] << 24) |
|
|
726
|
+
(l[(k >>> 16) & 255] << 16) |
|
|
727
|
+
(l[(k >>> 8) & 255] << 8) |
|
|
728
|
+
l[k & 255]),
|
|
729
|
+
(k ^= H[(j / d) | 0] << 24));
|
|
730
|
+
e[j] = e[j - d] ^ k;
|
|
731
|
+
}
|
|
732
|
+
c = this._invKeySchedule = [];
|
|
733
|
+
for (d = 0; d < a; d++)
|
|
734
|
+
(j = a - d),
|
|
735
|
+
(k = d % 4 ? e[j] : e[j - 4]),
|
|
736
|
+
(c[d] =
|
|
737
|
+
4 > d || 4 >= j
|
|
738
|
+
? k
|
|
739
|
+
: b[l[k >>> 24]] ^ x[l[(k >>> 16) & 255]] ^ q[l[(k >>> 8) & 255]] ^ n[l[k & 255]]);
|
|
740
|
+
},
|
|
741
|
+
encryptBlock: function(a, b) {
|
|
742
|
+
this._doCryptBlock(a, b, this._keySchedule, t, r, w, v, l);
|
|
743
|
+
},
|
|
744
|
+
decryptBlock: function(a, c) {
|
|
745
|
+
var d = a[c + 1];
|
|
746
|
+
a[c + 1] = a[c + 3];
|
|
747
|
+
a[c + 3] = d;
|
|
748
|
+
this._doCryptBlock(a, c, this._invKeySchedule, b, x, q, n, s);
|
|
749
|
+
d = a[c + 1];
|
|
750
|
+
a[c + 1] = a[c + 3];
|
|
751
|
+
a[c + 3] = d;
|
|
752
|
+
},
|
|
753
|
+
_doCryptBlock: function(a, b, c, d, e, j, l, f) {
|
|
754
|
+
for (
|
|
755
|
+
var m = this._nRounds,
|
|
756
|
+
g = a[b] ^ c[0],
|
|
757
|
+
h = a[b + 1] ^ c[1],
|
|
758
|
+
k = a[b + 2] ^ c[2],
|
|
759
|
+
n = a[b + 3] ^ c[3],
|
|
760
|
+
p = 4,
|
|
761
|
+
r = 1;
|
|
762
|
+
r < m;
|
|
763
|
+
r++
|
|
764
|
+
)
|
|
765
|
+
var q = d[g >>> 24] ^ e[(h >>> 16) & 255] ^ j[(k >>> 8) & 255] ^ l[n & 255] ^ c[p++],
|
|
766
|
+
s = d[h >>> 24] ^ e[(k >>> 16) & 255] ^ j[(n >>> 8) & 255] ^ l[g & 255] ^ c[p++],
|
|
767
|
+
t = d[k >>> 24] ^ e[(n >>> 16) & 255] ^ j[(g >>> 8) & 255] ^ l[h & 255] ^ c[p++],
|
|
768
|
+
n = d[n >>> 24] ^ e[(g >>> 16) & 255] ^ j[(h >>> 8) & 255] ^ l[k & 255] ^ c[p++],
|
|
769
|
+
g = q,
|
|
770
|
+
h = s,
|
|
771
|
+
k = t;
|
|
772
|
+
q =
|
|
773
|
+
((f[g >>> 24] << 24) |
|
|
774
|
+
(f[(h >>> 16) & 255] << 16) |
|
|
775
|
+
(f[(k >>> 8) & 255] << 8) |
|
|
776
|
+
f[n & 255]) ^
|
|
777
|
+
c[p++];
|
|
778
|
+
s =
|
|
779
|
+
((f[h >>> 24] << 24) |
|
|
780
|
+
(f[(k >>> 16) & 255] << 16) |
|
|
781
|
+
(f[(n >>> 8) & 255] << 8) |
|
|
782
|
+
f[g & 255]) ^
|
|
783
|
+
c[p++];
|
|
784
|
+
t =
|
|
785
|
+
((f[k >>> 24] << 24) |
|
|
786
|
+
(f[(n >>> 16) & 255] << 16) |
|
|
787
|
+
(f[(g >>> 8) & 255] << 8) |
|
|
788
|
+
f[h & 255]) ^
|
|
789
|
+
c[p++];
|
|
790
|
+
n =
|
|
791
|
+
((f[n >>> 24] << 24) |
|
|
792
|
+
(f[(g >>> 16) & 255] << 16) |
|
|
793
|
+
(f[(h >>> 8) & 255] << 8) |
|
|
794
|
+
f[k & 255]) ^
|
|
795
|
+
c[p++];
|
|
796
|
+
a[b] = q;
|
|
797
|
+
a[b + 1] = s;
|
|
798
|
+
a[b + 2] = t;
|
|
799
|
+
a[b + 3] = n;
|
|
800
|
+
},
|
|
801
|
+
keySize: 8,
|
|
802
|
+
}));
|
|
803
|
+
u.AES = p._createHelper(d);
|
|
804
|
+
})();
|
|
805
|
+
|
|
806
|
+
CryptoJS.mode.ECB = (function() {
|
|
807
|
+
var a = CryptoJS.lib.BlockCipherMode.extend();
|
|
808
|
+
a.Encryptor = a.extend({
|
|
809
|
+
processBlock: function(a, b) {
|
|
810
|
+
this._cipher.encryptBlock(a, b);
|
|
811
|
+
},
|
|
812
|
+
});
|
|
813
|
+
a.Decryptor = a.extend({
|
|
814
|
+
processBlock: function(a, b) {
|
|
815
|
+
this._cipher.decryptBlock(a, b);
|
|
816
|
+
},
|
|
817
|
+
});
|
|
818
|
+
return a;
|
|
819
|
+
})();
|
|
820
|
+
|
|
821
|
+
var key = {
|
|
822
|
+
words: [
|
|
823
|
+
'\u0038\u0030\u0038\u0035\u0033\u0030\u0034\u0038\u0033',
|
|
824
|
+
'\u0038\u0037\u0035\u0039\u0030\u0032\u0035\u0031\u0039',
|
|
825
|
+
'\u0039\u0034\u0033\u0032\u0037\u0031\u0039\u0038\u0035',
|
|
826
|
+
'\u0038\u0034\u0032\u0032\u0031\u0036\u0035\u0030\u0031',
|
|
827
|
+
'\u0039\u0030\u0039\u0035\u0038\u0038\u0035\u0033\u0037',
|
|
828
|
+
'\u0038\u0030\u0038\u0035\u0033\u0030\u0034\u0038\u0033',
|
|
829
|
+
'\u0038\u0037\u0035\u0039\u0030\u0032\u0035\u0031\u0039',
|
|
830
|
+
'\u0039\u0034\u0033\u0032\u0037\u0031\u0039\u0038\u0035',
|
|
831
|
+
],
|
|
832
|
+
sigBytes: 32,
|
|
833
|
+
};
|
|
834
|
+
var option = { iv: key, mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 };
|