声明
本文仅供学习参考,禁止用于其他途径,违者后果自负
前言
目标网站:aHR0cHM6Ly93d3cuNDM5OS5jb20v
登陆接口:aHR0cHM6Ly9wdGxvZ2luLjQzOTkuY29tL3B0bG9naW4vbG9naW4uZG8/dj0x
逆向分析
通过抓包发现,只有password
参数进行了加密。
剩下的就是找到password的加密逻辑,然后进行还原。
开干!
熟悉操作的小伙伴都知道步骤了,不管加密有多复杂。还是先进行搜索,这一招对于大部分网站还是很好使的,万一瞎猫碰上死耗子了呢。
js文件也不多,一个一个的点总是能发现一丝端倪的。
实际上加密在倒数第二个文件中,引用了cryptojs-aes库,看文件名大概率是一个aes
加密。点进文件观察一下。
已经都写在源码中了,剩下的就是将encryptAES
函数拿到本地。
还原算法
可以看到在这里完成了加密,将代码拿到本地稍作修改:
运行一下,看一下报错,缺什补什么。
缺少CryptoJS
,找到之后copy到本地。
继续运行。
发现还是报错,提示报错在第五行。看一下代码并没有问题,向上追朔。发现在第二行,这里有一个三目运算符的操作,最终结果是判断的结果是a.CryptoJS = b()
"object" == typeof exports ? module.exports = exports = b() : "function" == typeof define && define.amd ? define([], b) : a.CryptoJS = b()
知道这个报错原因,怎么解决呢。很简单,我们在一开始定义一个全局变量CryptoJS
,然后将b()赋值给全局变量就OK了,这样做有一个好处就是可以不改变代码的结构。
最后代码奉上。
var CryptoJS;
!function(a, b) {
"object" == typeof exports ? module.exports = exports = b() : "function" == typeof define && define.amd ? define([], b) : a.CryptoJS = b()
CryptoJS = b();
} (this,
function() {
var a = a ||
function(a, b) {
var n, c = Object.create ||
function() {
function a() {}
return function(b) {
var c;
return a.prototype = b,
c = new a,
a.prototype = null,
c
}
} (),
d = {},
e = d.lib = {},
f = e.Base = function() {
return {
extend: function(a) {
var b = c(this);
return a && b.mixIn(a),
b.hasOwnProperty("init") && this.init !== b.init || (b.init = function() {
b.$super.init.apply(this, arguments)
}),
b.init.prototype = b,
b.$super = this,
b
},
create: function() {
var a = this.extend();
return a.init.apply(a, arguments),
a
},
init: function() {},
mixIn: function(a) {
for (var b in a) a.hasOwnProperty(b) && (this[b] = a[b]);
a.hasOwnProperty("toString") && (this.toString = a.toString)
},
clone: function() {
return this.init.prototype.extend(this)
}
}
} (),
g = e.WordArray = f.extend({
init: function(a, c) {
a = this.words = a || [],
this.sigBytes = c != b ? c: 4 * a.length
},
toString: function(a) {
return (a || i).stringify(this)
},
concat: function(a) {
var f, g, b = this.words,
c = a.words,
d = this.sigBytes,
e = a.sigBytes;
if (this.clamp(), d % 4) for (f = 0; e > f; f++) g = 255 & c[f >>> 2] >>> 24 - 8 * (f % 4),
b[d + f >>> 2] |= g << 24 - 8 * ((d + f) % 4);
else for (f = 0; e > f; f += 4) b[d + f >>> 2] = c[f >>> 2];
return this.sigBytes += e,
this
},
clamp: function() {
var b = this.words,
c = this.sigBytes;
b[c >>> 2] &= 4294967295 << 32 - 8 * (c % 4),
b.length = a.ceil(c / 4)
},
clone: function() {
var a = f.clone.call(this);
return a.words = this.words.slice(0),
a
},
random: function(b) {
var f, e, h, c = [],
d = function(b) {
var c, d;
return b = b,
c = 987654321,
d = 4294967295,
function() {
c = 36969 * (65535 & c) + (c >> 16) & d,
b = 18e3 * (65535 & b) + (b >> 16) & d;
var e = (c << 16) + b & d;
return e /= 4294967296,
e += .5,
e * (a.random() > .5 ? 1 : -1)
}
};
for (e = 0; b > e; e += 4) h = d(4294967296 * (f || a.random())),
f = 987654071 * h(),
c.push(0 | 4294967296 * h());
return new g.init(c, b)
}
}),
h = d.enc = {},
i = h.Hex = {
stringify: function(a) {
var e, f, b = a.words,
c = a.sigBytes,
d = [];
for (e = 0; c > e; e++) f = 255 & b[e >>> 2] >>> 24 - 8 * (e % 4),
d.push((f >>> 4).toString(16)),
d.push((15 & f).toString(16));
return d.join("")
},
parse: function(a) {
var d, b = a.length,
c = [];
for (d = 0; b > d; d += 2) c[d >>> 3] |= parseInt(a.substr(d, 2), 16) << 24 - 4 * (d % 8);
return new g.init(c, b / 2)
}
},
j = h.Latin1 = {
stringify: function(a) {
var e, f, b = a.words,
c = a.sigBytes,
d = [];
for (e = 0; c > e; e++) f = 255 & b[e >>> 2] >>> 24 - 8 * (e % 4),
d.push(String.fromCharCode(f));
return d.join("")
},
parse: function(a) {
var d, b = a.length,
c = [];
for (d = 0; b > d; d++) c[d >>> 2] |= (255 & a.charCodeAt(d)) << 24 - 8 * (d % 4);
return new g.init(c, b)
}
},
k = h.Utf8 = {
stringify: function(a) {
try {
return decodeURIComponent(escape(j.stringify(a)))
} catch(b) {
throw new Error("Malformed UTF-8 data")
}
},
parse: function(a) {
return j.parse(unescape(encodeURIComponent(a)))
}
},
l = e.BufferedBlockAlgorithm = f.extend({
reset: function() {
this._data = new g.init,
this._nDataBytes = 0
},
_append: function(a) {
"string" == typeof a && (a = k.parse(a)),
this._data.concat(a),
this._nDataBytes += a.sigBytes
},
_process: function(b) {
var j, k, l, m, c = this._data,
d = c.words,
e = c.sigBytes,
f = this.blockSize,
h = 4 * f,
i = e / h;
if (i = b ? a.ceil(i) : a.max((0 | i) - this._minBufferSize, 0), j = i * f, k = a.min(4 * j, e), j) {
for (l = 0; j > l; l += f) this._doProcessBlock(d, l);
m = d.splice(0, j),
c.sigBytes -= k
}
return new g.init(m, k)
},
clone: function() {
var a = f.clone.call(this);
return a._data = this._data.clone(),
a
},
_minBufferSize: 0
});
return e.Hasher = l.extend({
cfg: f.extend(),
init: function(a) {
this.cfg = this.cfg.extend(a),
this.reset()
},
reset: function() {
l.reset.call(this),
this._doReset()
},
update: function(a) {
return this._append(a),
this._process(),
this
},
finalize: function(a) {
a && this._append(a);
var b = this._doFinalize();
return b
},
blockSize: 16,
_createHelper: function(a) {
return function(b, c) {
return new a.init(c).finalize(b)
}
},
_createHmacHelper: function(a) {
return function(b, c) {
return new n.HMAC.init(a, c).finalize(b)
}
}
}),
n = d.algo = {},
d
} (Math);
return function() {
function g(a, b, c) {
var g, h, i, e = [],
f = 0;
for (g = 0; b > g; g++) g % 4 && (h = c[a.charCodeAt(g - 1)] << 2 * (g % 4), i = c[a.charCodeAt(g)] >>> 6 - 2 * (g % 4), e[f >>> 2] |= (h | i) << 24 - 8 * (f % 4), f++);
return d.create(e, f)
}
var b = a,
c = b.lib,
d = c.WordArray,
e = b.enc;
e.Base64 = {
stringify: function(a) {
var e, f, g, h, i, j, k, l, b = a.words,
c = a.sigBytes,
d = this._map;
for (a.clamp(), e = [], f = 0; c > f; f += 3) for (g = 255 & b[f >>> 2] >>> 24 - 8 * (f % 4), h = 255 & b[f + 1 >>> 2] >>> 24 - 8 * ((f + 1) % 4), i = 255 & b[f + 2 >>> 2] >>> 24 - 8 * ((f + 2) % 4), j = g << 16 | h << 8 | i, k = 0; 4 > k && c > f + .75 * k; k++) e.push(d.charAt(63 & j >>> 6 * (3 - k)));
if (l = d.charAt(64)) for (; e.length % 4;) e.push(l);
return e.join("")
},
parse: function(a) {
var e, f, h, b = a.length,
c = this._map,
d = this._reverseMap;
if (!d) for (d = this._reverseMap = [], e = 0; e < c.length; e++) d[c.charCodeAt(e)] = e;
return f = c.charAt(64),
f && (h = a.indexOf(f), -1 !== h && (b = h)),
g(a, b, d)
},
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
}
} (),
function(b) {
function j(a, b, c, d, e, f, g) {
var h = a + (b & c | ~b & d) + e + g;
return (h << f | h >>> 32 - f) + b
}
function k(a, b, c, d, e, f, g) {
var h = a + (b & d | c & ~d) + e + g;
return (h << f | h >>> 32 - f) + b
}
function l(a, b, c, d, e, f, g) {
var h = a + (b ^ c ^ d) + e + g;
return (h << f | h >>> 32 - f) + b
}
function m(a, b, c, d, e, f, g) {
var h = a + (c ^ (b | ~d)) + e + g;
return (h << f | h >>> 32 - f) + b
}
var i, c = a,
d = c.lib,
e = d.WordArray,
f = d.Hasher,
g = c.algo,
h = []; !
function() {
for (var a = 0; 64 > a; a++) h[a] = 0 | 4294967296 * b.abs(b.sin(a + 1))
} (),
i = g.MD5 = f.extend({
_doReset: function() {
this._hash = new e.init([1732584193, 4023233417, 2562383102, 271733878])
},
_doProcessBlock: function(a, b) {
var c, d, e, f, g, i, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E;
for (c = 0; 16 > c; c++) d = b + c,
e = a[d],
a[d] = 16711935 & (e << 8 | e >>> 24) | 4278255360 & (e << 24 | e >>> 8);
f = this._hash.words,
g = a[b + 0],
i = a[b + 1],
n = a[b + 2],
o = a[b + 3],
p = a[b + 4],
q = a[b + 5],
r = a[b + 6],
s = a[b + 7],
t = a[b + 8],
u = a[b + 9],
v = a[b + 10],
w = a[b + 11],
x = a[b + 12],
y = a[b + 13],
z = a[b + 14],
A = a[b + 15],
B = f[0],
C = f[1],
D = f[2],
E = f[3],
B = j(B, C, D, E, g, 7, h[0]),
E = j(E, B, C, D, i, 12, h[1]),
D = j(D, E, B, C, n, 17, h[2]),
C = j(C, D, E, B, o, 22, h[3]),
B = j(B, C, D, E, p, 7, h[4]),
E = j(E, B, C, D, q, 12, h[5]),
D = j(D, E, B, C, r, 17, h[6]),
C = j(C, D, E, B, s, 22, h[7]),
B = j(B, C, D, E, t, 7, h[8]),
E = j(E, B, C, D, u, 12, h[9]),
D = j(D, E, B, C, v, 17, h[10]),
C = j(C, D, E, B, w, 22, h[11]),
B = j(B, C, D, E, x, 7, h[12]),
E = j(E, B, C, D, y, 12, h[13]),
D = j(D, E, B, C, z, 17, h[14]),
C = j(C, D, E, B, A, 22, h[15]),
B = k(B, C, D, E, i, 5, h[16]),
E = k(E, B, C, D, r, 9, h[17]),
D = k(D, E, B, C, w, 14, h[18]),
C = k(C, D, E, B, g, 20, h[19]),
B = k(B, C, D, E, q, 5, h[20]),
E = k(E, B, C, D, v, 9, h[21]),
D = k(D, E, B, C, A, 14, h[22]),
C = k(C, D, E, B, p, 20, h[23]),
B = k(B, C, D, E, u, 5, h[24]),
E = k(E, B, C, D, z, 9, h[25]),
D = k(D, E, B, C, o, 14, h[26]),
C = k(C, D, E, B, t, 20, h[27]),
B = k(B, C, D, E, y, 5, h[28]),
E = k(E, B, C, D, n, 9, h[29]),
D = k(D, E, B, C, s, 14, h[30]),
C = k(C, D, E, B, x, 20, h[31]),
B = l(B, C, D, E, q, 4, h[32]),
E = l(E, B, C, D, t, 11, h[33]),
D = l(D, E, B, C, w, 16, h[34]),
C = l(C, D, E, B, z, 23, h[35]),
B = l(B, C, D, E, i, 4, h[36]),
E = l(E, B, C, D, p, 11, h[37]),
D = l(D, E, B, C, s, 16, h[38]),
C = l(C, D, E, B, v, 23, h[39]),
B = l(B, C, D, E, y, 4, h[40]),
E = l(E, B, C, D, g, 11, h[41]),
D = l(D, E, B, C, o, 16, h[42]),
C = l(C, D, E, B, r, 23, h[43]),
B = l(B, C, D, E, u, 4, h[44]),
E = l(E, B, C, D, x, 11, h[45]),
D = l(D, E, B, C, A, 16, h[46]),
C = l(C, D, E, B, n, 23, h[47]),
B = m(B, C, D, E, g, 6, h[48]),
E = m(E, B, C, D, s, 10, h[49]),
D = m(D, E, B, C, z, 15, h[50]),
C = m(C, D, E, B, q, 21, h[51]),
B = m(B, C, D, E, x, 6, h[52]),
E = m(E, B, C, D, o, 10, h[53]),
D = m(D, E, B, C, v, 15, h[54]),
C = m(C, D, E, B, i, 21, h[55]),
B = m(B, C, D, E, t, 6, h[56]),
E = m(E, B, C, D, A, 10, h[57]),
D = m(D, E, B, C, r, 15, h[58]),
C = m(C, D, E, B, y, 21, h[59]),
B = m(B, C, D, E, p, 6, h[60]),
E = m(E, B, C, D, w, 10, h[61]),
D = m(D, E, B, C, n, 15, h[62]),
C = m(C, D, E, B, u, 21, h[63]),
f[0] = 0 | f[0] + B,
f[1] = 0 | f[1] + C,
f[2] = 0 | f[2] + D,
f[3] = 0 | f[3] + E
},
_doFinalize: function() {
var f, g, h, i, j, k, a = this._data,
c = a.words,
d = 8 * this._nDataBytes,
e = 8 * a.sigBytes;
for (c[e >>> 5] |= 128 << 24 - e % 32, f = b.floor(d / 4294967296), g = d, c[(e + 64 >>> 9 << 4) + 15] = 16711935 & (f << 8 | f >>> 24) | 4278255360 & (f << 24 | f >>> 8), c[(e + 64 >>> 9 << 4) + 14] = 16711935 & (g << 8 | g >>> 24) | 4278255360 & (g << 24 | g >>> 8), a.sigBytes = 4 * (c.length + 1), this._process(), h = this._hash, i = h.words, j = 0; 4 > j; j++) k = i[j],
i[j] = 16711935 & (k << 8 | k >>> 24) | 4278255360 & (k << 24 | k >>> 8);
return h
},
clone: function() {
var a = f.clone.call(this);
return a._hash = this._hash.clone(),
a
}
}),
c.MD5 = f._createHelper(i),
c.HmacMD5 = f._createHmacHelper(i)
} (Math),
function() {
var b = a,
c = b.lib,
d = c.WordArray,
e = c.Hasher,
f = b.algo,
g = [],
h = f.SHA1 = e.extend({
_doReset: function() {
this._hash = new d.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520])
},
_doProcessBlock: function(a, b) {
var j, k, l, c = this._hash.words,
d = c[0],
e = c[1],
f = c[2],
h = c[3],
i = c[4];
for (j = 0; 80 > j; j++) 16 > j ? g[j] = 0 | a[b + j] : (k = g[j - 3] ^ g[j - 8] ^ g[j - 14] ^ g[j - 16], g[j] = k << 1 | k >>> 31),
l = (d << 5 | d >>> 27) + i + g[j],
l += 20 > j ? (e & f | ~e & h) + 1518500249 : 40 > j ? (e ^ f ^ h) + 1859775393 : 60 > j ? (e & f | e & h | f & h) - 1894007588 : (e ^ f ^ h) - 899497514,
i = h,
h = f,
f = e << 30 | e >>> 2,
e = d,
d = l;
c[0] = 0 | c[0] + d,
c[1] = 0 | c[1] + e,
c[2] = 0 | c[2] + f,
c[3] = 0 | c[3] + h,
c[4] = 0 | c[4] + i
},
_doFinalize: function() {
var a = this._data,
b = a.words,
c = 8 * this._nDataBytes,
d = 8 * a.sigBytes;
return b[d >>> 5] |= 128 << 24 - d % 32,
b[(d + 64 >>> 9 << 4) + 14] = Math.floor(c / 4294967296),
b[(d + 64 >>> 9 << 4) + 15] = c,
a.sigBytes = 4 * b.length,
this._process(),
this._hash
},
clone: function() {
var a = e.clone.call(this);
return a._hash = this._hash.clone(),
a
}
});
b.SHA1 = e._createHelper(h),
b.HmacSHA1 = e._createHmacHelper(h)
} (),
function(b) {
var j, k, c = a,
d = c.lib,
e = d.WordArray,
f = d.Hasher,
g = c.algo,
h = [],
i = []; !
function() {
function a(a) {
var d, c = b.sqrt(a);
for (d = 2; c >= d; d++) if (! (a % d)) return ! 1;
return ! 0
}
function c(a) {
return 0 | 4294967296 * (a - (0 | a))
}
for (var d = 2,
e = 0; 64 > e;) a(d) && (8 > e && (h[e] = c(b.pow(d, .5))), i[e] = c(b.pow(d, 1 / 3)), e++),
d++
} (),
j = [],
k = g.SHA256 = f.extend({
_doReset: function() {
this._hash = new e.init(h.slice(0))
},
_doProcessBlock: function(a, b) {
var n, o, p, q, r, s, t, u, v, w, x, c = this._hash.words,
d = c[0],
e = c[1],
f = c[2],
g = c[3],
h = c[4],
k = c[5],
l = c[6],
m = c[7];
for (n = 0; 64 > n; n++) 16 > n ? j[n] = 0 | a[b + n] : (o = j[n - 15], p = (o << 25 | o >>> 7) ^ (o << 14 | o >>> 18) ^ o >>> 3, q = j[n - 2], r = (q << 15 | q >>> 17) ^ (q << 13 | q >>> 19) ^ q >>> 10, j[n] = p + j[n - 7] + r + j[n - 16]),
s = h & k ^ ~h & l,
t = d & e ^ d & f ^ e & f,
u = (d << 30 | d >>> 2) ^ (d << 19 | d >>> 13) ^ (d << 10 | d >>> 22),
v = (h << 26 | h >>> 6) ^ (h << 21 | h >>> 11) ^ (h << 7 | h >>> 25),
w = m + v + s + i[n] + j[n],
x = u + t,
m = l,
l = k,
k = h,
h = 0 | g + w,
g = f,
f = e,
e = d,
d = 0 | w + x;
c[0] = 0 | c[0] + d,
c[1] = 0 | c[1] + e,
c[2] = 0 | c[2] + f,
c[3] = 0 | c[3] + g,
c[4] = 0 | c[4] + h,
c[5] = 0 | c[5] + k,
c[6] = 0 | c[6] + l,
c[7] = 0 | c[7] + m
},
_doFinalize: function() {
var a = this._data,
c = a.words,
d = 8 * this._nDataBytes,
e = 8 * a.sigBytes;
return c[e >>> 5] |= 128 << 24 - e % 32,
c[(e + 64 >>> 9 << 4) + 14] = b.floor(d / 4294967296),
c[(e + 64 >>> 9 << 4) + 15] = d,
a.sigBytes = 4 * c.length,
this._process(),
this._hash
},
clone: function() {
var a = f.clone.call(this);
return a._hash = this._hash.clone(),
a
}
}),
c.SHA256 = f._createHelper(k),
c.HmacSHA256 = f._createHmacHelper(k)
} (Math),
function() {
function g(a) {
return 4278255360 & a << 8 | 16711935 & a >>> 8
}
var b = a,
c = b.lib,
d = c.WordArray,
e = b.enc;
e.Utf16 = e.Utf16BE = {
stringify: function(a) {
var e, f, b = a.words,
c = a.sigBytes,
d = [];
for (e = 0; c > e; e += 2) f = 65535 & b[e >>> 2] >>> 16 - 8 * (e % 4),
d.push(String.fromCharCode(f));
return d.join("")
},
parse: function(a) {
var e, b = a.length,
c = [];
for (e = 0; b > e; e++) c[e >>> 1] |= a.charCodeAt(e) << 16 - 16 * (e % 2);
return d.create(c, 2 * b)
}
},
e.Utf16LE = {
stringify: function(a) {
var e, f, b = a.words,
c = a.sigBytes,
d = [];
for (e = 0; c > e; e += 2) f = g(65535 & b[e >>> 2] >>> 16 - 8 * (e % 4)),
d.push(String.fromCharCode(f));
return d.join("")
},
parse: function(a) {
var e, b = a.length,
c = [];
for (e = 0; b > e; e++) c[e >>> 1] |= g(a.charCodeAt(e) << 16 - 16 * (e % 2));
return d.create(c, 2 * b)
}
}
} (),
function() {
var b, c, d, e, f;
"function" == typeof ArrayBuffer && (b = a, c = b.lib, d = c.WordArray, e = d.init, f = d.init = function(a) {
var b, c, d;
if (a instanceof ArrayBuffer && (a = new Uint8Array(a)), (a instanceof Int8Array || "undefined" != typeof Uint8ClampedArray && a instanceof Uint8ClampedArray || a instanceof Int16Array || a instanceof Uint16Array || a instanceof Int32Array || a instanceof Uint32Array || a instanceof Float32Array || a instanceof Float64Array) && (a = new Uint8Array(a.buffer, a.byteOffset, a.byteLength)), a instanceof Uint8Array) {
for (b = a.byteLength, c = [], d = 0; b > d; d++) c[d >>> 2] |= a[d] << 24 - 8 * (d % 4);
e.call(this, c, b)
} else e.apply(this, arguments)
},
f.prototype = d)
} (),
function() {
function o(a, b, c) {
return a ^ b ^ c
}
function p(a, b, c) {
return a & b | ~a & c
}
function q(a, b, c) {
return (a | ~b) ^ c
}
function r(a, b, c) {
return a & c | b & ~c
}
function s(a, b, c) {
return a ^ (b | ~c)
}
function t(a, b) {
return a << b | a >>> 32 - b
}
var c = a,
d = c.lib,
e = d.WordArray,
f = d.Hasher,
g = c.algo,
h = e.create([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]),
i = e.create([5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]),
j = e.create([11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6]),
k = e.create([8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11]),
l = e.create([0, 1518500249, 1859775393, 2400959708, 2840853838]),
m = e.create([1352829926, 1548603684, 1836072691, 2053994217, 0]),
n = g.RIPEMD160 = f.extend({
_doReset: function() {
this._hash = e.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520])
},
_doProcessBlock: function(a, b) {
var c, d, e, f, g, n, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I;
for (c = 0; 16 > c; c++) d = b + c,
e = a[d],
a[d] = 16711935 & (e << 8 | e >>> 24) | 4278255360 & (e << 24 | e >>> 8);
for (f = this._hash.words, g = l.words, n = m.words, u = h.words, v = i.words, w = j.words, x = k.words, D = y = f[0], E = z = f[1], F = A = f[2], G = B = f[3], H = C = f[4], c = 0; 80 > c; c += 1) I = 0 | y + a[b + u[c]],
I += 16 > c ? o(z, A, B) + g[0] : 32 > c ? p(z, A, B) + g[1] : 48 > c ? q(z, A, B) + g[2] : 64 > c ? r(z, A, B) + g[3] : s(z, A, B) + g[4],
I = 0 | I,
I = t(I, w[c]),
I = 0 | I + C,
y = C,
C = B,
B = t(A, 10),
A = z,
z = I,
I = 0 | D + a[b + v[c]],
I += 16 > c ? s(E, F, G) + n[0] : 32 > c ? r(E, F, G) + n[1] : 48 > c ? q(E, F, G) + n[2] : 64 > c ? p(E, F, G) + n[3] : o(E, F, G) + n[4],
I = 0 | I,
I = t(I, x[c]),
I = 0 | I + H,
D = H,
H = G,
G = t(F, 10),
F = E,
E = I;
I = 0 | f[1] + A + G,
f[1] = 0 | f[2] + B + H,
f[2] = 0 | f[3] + C + D,
f[3] = 0 | f[4] + y + E,
f[4] = 0 | f[0] + z + F,
f[0] = I
},
_doFinalize: function() {
var e, f, g, h, a = this._data,
b = a.words,
c = 8 * this._nDataBytes,
d = 8 * a.sigBytes;
for (b[d >>> 5] |= 128 << 24 - d % 32, b[(d + 64 >>> 9 << 4) + 14] = 16711935 & (c << 8 | c >>> 24) | 4278255360 & (c << 24 | c >>> 8), a.sigBytes = 4 * (b.length + 1), this._process(), e = this._hash, f = e.words, g = 0; 5 > g; g++) h = f[g],
f[g] = 16711935 & (h << 8 | h >>> 24) | 4278255360 & (h << 24 | h >>> 8);
return e
},
clone: function() {
var a = f.clone.call(this);
return a._hash = this._hash.clone(),
a
}
});
c.RIPEMD160 = f._createHelper(n),
c.HmacRIPEMD160 = f._createHmacHelper(n)
} (Math),
function() {
var b = a,
c = b.lib,
d = c.Base,
e = b.enc,
f = e.Utf8,
g = b.algo;
g.HMAC = d.extend({
init: function(a, b) {
var c, d, e, g, h, i, j;
for (a = this._hasher = new a.init, "string" == typeof b && (b = f.parse(b)), c = a.blockSize, d = 4 * c, b.sigBytes > d && (b = a.finalize(b)), b.clamp(), e = this._oKey = b.clone(), g = this._iKey = b.clone(), h = e.words, i = g.words, j = 0; c > j; j++) h[j] ^= 1549556828,
i[j] ^= 909522486;
e.sigBytes = g.sigBytes = d,
this.reset()
},
reset: function() {
var a = this._hasher;
a.reset(),
a.update(this._iKey)
},
update: function(a) {
return this._hasher.update(a),
this
},
finalize: function(a) {
var d, b = this._hasher,
c = b.finalize(a);
return b.reset(),
d = b.finalize(this._oKey.clone().concat(c))
}
})
} (),
function() {
var b = a,
c = b.lib,
d = c.Base,
e = c.WordArray,
f = b.algo,
g = f.SHA1,
h = f.HMAC,
i = f.PBKDF2 = d.extend({
cfg: d.extend({
keySize: 4,
hasher: g,
iterations: 1
}),
init: function(a) {
this.cfg = this.cfg.extend(a)
},
compute: function(a, b) {
for (var m, n, o, p, q, r, s, c = this.cfg,
d = h.create(c.hasher, a), f = e.create(), g = e.create([1]), i = f.words, j = g.words, k = c.keySize, l = c.iterations; i.length < k;) {
for (m = d.update(b).finalize(g), d.reset(), n = m.words, o = n.length, p = m, q = 1; l > q; q++) for (p = d.finalize(p), d.reset(), r = p.words, s = 0; o > s; s++) n[s] ^= r[s];
f.concat(m),
j[0]++
}
return f.sigBytes = 4 * k,
f
}
});
b.PBKDF2 = function(a, b, c) {
return i.create(c).compute(a, b)
}
} (),
function() {
var b = a,
c = b.lib,
d = c.Base,
e = c.WordArray,
f = b.algo,
g = f.MD5,
h = f.EvpKDF = d.extend({
cfg: d.extend({
keySize: 4,
hasher: g,
iterations: 1
}),
init: function(a) {
this.cfg = this.cfg.extend(a)
},
compute: function(a, b) {
for (var j, k, c = this.cfg,
d = c.hasher.create(), f = e.create(), g = f.words, h = c.keySize, i = c.iterations; g.length < h;) {
for (j && d.update(j), j = d.update(a).finalize(b), d.reset(), k = 1; i > k; k++) j = d.finalize(j),
d.reset();
f.concat(j)
}
return f.sigBytes = 4 * h,
f
}
});
b.EvpKDF = function(a, b, c) {
return h.create(c).compute(a, b)
}
} (),
function() {
var b = a,
c = b.lib,
d = c.WordArray,
e = b.algo,
f = e.SHA256,
g = e.SHA224 = f.extend({
_doReset: function() {
this._hash = new d.init([3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428])
},
_doFinalize: function() {
var a = f._doFinalize.call(this);
return a.sigBytes -= 4,
a
}
});
b.SHA224 = f._createHelper(g),
b.HmacSHA224 = f._createHmacHelper(g)
} (),
function(b) {
var c = a,
d = c.lib,
e = d.Base,
f = d.WordArray,
g = c.x64 = {};
g.Word = e.extend({
init: function(a, b) {
this.high = a,
this.low = b
}
}),
g.WordArray = e.extend({
init: function(a, c) {
a = this.words = a || [],
this.sigBytes = c != b ? c: 8 * a.length
},
toX32: function() {
var d, e, a = this.words,
b = a.length,
c = [];
for (d = 0; b > d; d++) e = a[d],
c.push(e.high),
c.push(e.low);
return f.create(c, this.sigBytes)
},
clone: function() {
var d, a = e.clone.call(this),
b = a.words = this.words.slice(0),
c = b.length;
for (d = 0; c > d; d++) b[d] = b[d].clone();
return a
}
})
} (),
function(b) {
var m, n, c = a,
d = c.lib,
e = d.WordArray,
f = d.Hasher,
g = c.x64,
h = g.Word,
i = c.algo,
j = [],
k = [],
l = []; !
function() {
var c, d, e, f, g, i, m, n, o, a = 1,
b = 0;
for (c = 0; 24 > c; c++) j[a + 5 * b] = (c + 1) * (c + 2) / 2 % 64,
d = b % 5,
e = (2 * a + 3 * b) % 5,
a = d,
b = e;
for (a = 0; 5 > a; a++) for (b = 0; 5 > b; b++) k[a + 5 * b] = b + 5 * ((2 * a + 3 * b) % 5);
for (f = 1, g = 0; 24 > g; g++) {
for (i = 0, m = 0, n = 0; 7 > n; n++) 1 & f && (o = (1 << n) - 1, 32 > o ? m ^= 1 << o: i ^= 1 << o - 32),
128 & f ? f = 113 ^ f << 1 : f <<= 1;
l[g] = h.create(i, m)
}
} (),
m = [],
function() {
for (var a = 0; 25 > a; a++) m[a] = h.create()
} (),
n = i.SHA3 = f.extend({
cfg: f.cfg.extend({
outputLength: 512
}),
_doReset: function() {
var b, a = this._state = [];
for (b = 0; 25 > b; b++) a[b] = new h.init;
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32
},
_doProcessBlock: function(a, b) {
var e, f, g, h, i, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, c = this._state,
d = this.blockSize / 2;
for (e = 0; d > e; e++) f = a[b + 2 * e],
g = a[b + 2 * e + 1],
f = 16711935 & (f << 8 | f >>> 24) | 4278255360 & (f << 24 | f >>> 8),
g = 16711935 & (g << 8 | g >>> 24) | 4278255360 & (g << 24 | g >>> 8),
h = c[e],
h.high ^= g,
h.low ^= f;
for (i = 0; 24 > i; i++) {
for (n = 0; 5 > n; n++) {
for (o = 0, p = 0, q = 0; 5 > q; q++) h = c[n + 5 * q],
o ^= h.high,
p ^= h.low;
r = m[n],
r.high = o,
r.low = p
}
for (n = 0; 5 > n; n++) for (s = m[(n + 4) % 5], t = m[(n + 1) % 5], u = t.high, v = t.low, o = s.high ^ (u << 1 | v >>> 31), p = s.low ^ (v << 1 | u >>> 31), q = 0; 5 > q; q++) h = c[n + 5 * q],
h.high ^= o,
h.low ^= p;
for (w = 1; 25 > w; w++) h = c[w],
x = h.high,
y = h.low,
z = j[w],
32 > z ? (o = x << z | y >>> 32 - z, p = y << z | x >>> 32 - z) : (o = y << z - 32 | x >>> 64 - z, p = x << z - 32 | y >>> 64 - z),
A = m[k[w]],
A.high = o,
A.low = p;
for (B = m[0], C = c[0], B.high = C.high, B.low = C.low, n = 0; 5 > n; n++) for (q = 0; 5 > q; q++) w = n + 5 * q,
h = c[w],
D = m[w],
E = m[(n + 1) % 5 + 5 * q],
F = m[(n + 2) % 5 + 5 * q],
h.high = D.high ^ ~E.high & F.high,
h.low = D.low ^ ~E.low & F.low;
h = c[0],
G = l[i],
h.high ^= G.high,
h.low ^= G.low
}
},
_doFinalize: function() {
var f, g, h, i, j, k, l, m, n, o, a = this._data,
c = a.words;
for (8 * this._nDataBytes, f = 8 * a.sigBytes, g = 32 * this.blockSize, c[f >>> 5] |= 1 << 24 - f % 32, c[(b.ceil((f + 1) / g) * g >>> 5) - 1] |= 128, a.sigBytes = 4 * c.length, this._process(), h = this._state, i = this.cfg.outputLength / 8, j = i / 8, k = [], l = 0; j > l; l++) m = h[l],
n = m.high,
o = m.low,
n = 16711935 & (n << 8 | n >>> 24) | 4278255360 & (n << 24 | n >>> 8),
o = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8),
k.push(o),
k.push(n);
return new e.init(k, i)
},
clone: function() {
var c, a = f.clone.call(this),
b = a._state = this._state.slice(0);
for (c = 0; 25 > c; c++) b[c] = b[c].clone();
return a
}
}),
c.SHA3 = f._createHelper(n),
c.HmacSHA3 = f._createHmacHelper(n)
} (Math),
function() {
function i() {
return f.create.apply(f, arguments)
}
var l, b = a,
c = b.lib,
d = c.Hasher,
e = b.x64,
f = e.Word,
g = e.WordArray,
h = b.algo,
j = [i(1116352408, 3609767458), i(1899447441, 602891725), i(3049323471, 3964484399), i(3921009573, 2173295548), i(961987163, 4081628472), i(1508970993, 3053834265), i(2453635748, 2937671579), i(2870763221, 3664609560), i(3624381080, 2734883394), i(310598401, 1164996542), i(607225278, 1323610764), i(1426881987, 3590304994), i(1925078388, 4068182383), i(2162078206, 991336113), i(2614888103, 633803317), i(3248222580, 3479774868), i(3835390401, 2666613458), i(4022224774, 944711139), i(264347078, 2341262773), i(604807628, 2007800933), i(770255983, 1495990901), i(1249150122, 1856431235), i(1555081692, 3175218132), i(1996064986, 2198950837), i(2554220882, 3999719339), i(2821834349, 766784016), i(2952996808, 2566594879), i(3210313671, 3203337956), i(3336571891, 1034457026), i(3584528711, 2466948901), i(113926993, 3758326383), i(338241895, 168717936), i(666307205, 1188179964), i(773529912, 1546045734), i(1294757372, 1522805485), i(1396182291, 2643833823), i(1695183700, 2343527390), i(1986661051, 1014477480), i(2177026350, 1206759142), i(2456956037, 344077627), i(2730485921, 1290863460), i(2820302411, 3158454273), i(3259730800, 3505952657), i(3345764771, 106217008), i(3516065817, 3606008344), i(3600352804, 1432725776), i(4094571909, 1467031594), i(275423344, 851169720), i(430227734, 3100823752), i(506948616, 1363258195), i(659060556, 3750685593), i(883997877, 3785050280), i(958139571, 3318307427), i(1322822218, 3812723403), i(1537002063, 2003034995), i(1747873779, 3602036899), i(1955562222, 1575990012), i(2024104815, 1125592928), i(2227730452, 2716904306), i(2361852424, 442776044), i(2428436474, 593698344), i(2756734187, 3733110249), i(3204031479, 2999351573), i(3329325298, 3815920427), i(3391569614, 3928383900), i(3515267271, 566280711), i(3940187606, 3454069534), i(4118630271, 4000239992), i(116418474, 1914138554), i(174292421, 2731055270), i(289380356, 3203993006), i(460393269, 320620315), i(685471733, 587496836), i(852142971, 1086792851), i(1017036298, 365543100), i(1126000580, 2618297676), i(1288033470, 3409855158), i(1501505948, 4234509866), i(1607167915, 987167468), i(1816402316, 1246189591)],
k = []; !
function() {
for (var a = 0; 80 > a; a++) k[a] = i()
} (),
l = h.SHA512 = d.extend({
_doReset: function() {
this._hash = new g.init([new f.init(1779033703, 4089235720), new f.init(3144134277, 2227873595), new f.init(1013904242, 4271175723), new f.init(2773480762, 1595750129), new f.init(1359893119, 2917565137), new f.init(2600822924, 725511199), new f.init(528734635, 4215389547), new f.init(1541459225, 327033209)])
},
_doProcessBlock: function(a, b) {
var T, U, V, W, X, Y, Z, $, _, ab, bb, cb, db, eb, fb, gb, hb, ib, jb, kb, lb, mb, nb, ob, pb, qb, rb, sb, tb, ub, vb, wb, xb, yb, zb, c = this._hash.words,
d = c[0],
e = c[1],
f = c[2],
g = c[3],
h = c[4],
i = c[5],
l = c[6],
m = c[7],
n = d.high,
o = d.low,
p = e.high,
q = e.low,
r = f.high,
s = f.low,
t = g.high,
u = g.low,
v = h.high,
w = h.low,
x = i.high,
y = i.low,
z = l.high,
A = l.low,
B = m.high,
C = m.low,
D = n,
E = o,
F = p,
G = q,
H = r,
I = s,
J = t,
K = u,
L = v,
M = w,
N = x,
O = y,
P = z,
Q = A,
R = B,
S = C;
for (T = 0; 80 > T; T++) U = k[T],
16 > T ? (V = U.high = 0 | a[b + 2 * T], W = U.low = 0 | a[b + 2 * T + 1]) : (X = k[T - 15], Y = X.high, Z = X.low, $ = (Y >>> 1 | Z << 31) ^ (Y >>> 8 | Z << 24) ^ Y >>> 7, _ = (Z >>> 1 | Y << 31) ^ (Z >>> 8 | Y << 24) ^ (Z >>> 7 | Y << 25), ab = k[T - 2], bb = ab.high, cb = ab.low, db = (bb >>> 19 | cb << 13) ^ (bb << 3 | cb >>> 29) ^ bb >>> 6, eb = (cb >>> 19 | bb << 13) ^ (cb << 3 | bb >>> 29) ^ (cb >>> 6 | bb << 26), fb = k[T - 7], gb = fb.high, hb = fb.low, ib = k[T - 16], jb = ib.high, kb = ib.low, W = _ + hb, V = $ + gb + (_ >>> 0 > W >>> 0 ? 1 : 0), W += eb, V = V + db + (eb >>> 0 > W >>> 0 ? 1 : 0), W += kb, V = V + jb + (kb >>> 0 > W >>> 0 ? 1 : 0), U.high = V, U.low = W),
lb = L & N ^ ~L & P,
mb = M & O ^ ~M & Q,
nb = D & F ^ D & H ^ F & H,
ob = E & G ^ E & I ^ G & I,
pb = (D >>> 28 | E << 4) ^ (D << 30 | E >>> 2) ^ (D << 25 | E >>> 7),
qb = (E >>> 28 | D << 4) ^ (E << 30 | D >>> 2) ^ (E << 25 | D >>> 7),
rb = (L >>> 14 | M << 18) ^ (L >>> 18 | M << 14) ^ (L << 23 | M >>> 9),
sb = (M >>> 14 | L << 18) ^ (M >>> 18 | L << 14) ^ (M << 23 | L >>> 9),
tb = j[T],
ub = tb.high,
vb = tb.low,
wb = S + sb,
xb = R + rb + (S >>> 0 > wb >>> 0 ? 1 : 0),
wb += mb,
xb = xb + lb + (mb >>> 0 > wb >>> 0 ? 1 : 0),
wb += vb,
xb = xb + ub + (vb >>> 0 > wb >>> 0 ? 1 : 0),
wb += W,
xb = xb + V + (W >>> 0 > wb >>> 0 ? 1 : 0),
yb = qb + ob,
zb = pb + nb + (qb >>> 0 > yb >>> 0 ? 1 : 0),
R = P,
S = Q,
P = N,
Q = O,
N = L,
O = M,
M = 0 | K + wb,
L = 0 | J + xb + (K >>> 0 > M >>> 0 ? 1 : 0),
J = H,
K = I,
H = F,
I = G,
F = D,
G = E,
E = 0 | wb + yb,
D = 0 | xb + zb + (wb >>> 0 > E >>> 0 ? 1 : 0);
o = d.low = o + E,
d.high = n + D + (E >>> 0 > o >>> 0 ? 1 : 0),
q = e.low = q + G,
e.high = p + F + (G >>> 0 > q >>> 0 ? 1 : 0),
s = f.low = s + I,
f.high = r + H + (I >>> 0 > s >>> 0 ? 1 : 0),
u = g.low = u + K,
g.high = t + J + (K >>> 0 > u >>> 0 ? 1 : 0),
w = h.low = w + M,
h.high = v + L + (M >>> 0 > w >>> 0 ? 1 : 0),
y = i.low = y + O,
i.high = x + N + (O >>> 0 > y >>> 0 ? 1 : 0),
A = l.low = A + Q,
l.high = z + P + (Q >>> 0 > A >>> 0 ? 1 : 0),
C = m.low = C + S,
m.high = B + R + (S >>> 0 > C >>> 0 ? 1 : 0)
},
_doFinalize: function() {
var e, a = this._data,
b = a.words,
c = 8 * this._nDataBytes,
d = 8 * a.sigBytes;
return b[d >>> 5] |= 128 << 24 - d % 32,
b[(d + 128 >>> 10 << 5) + 30] = Math.floor(c / 4294967296),
b[(d + 128 >>> 10 << 5) + 31] = c,
a.sigBytes = 4 * b.length,
this._process(),
e = this._hash.toX32()
},
clone: function() {
var a = d.clone.call(this);
return a._hash = this._hash.clone(),
a
},
blockSize: 32
}),
b.SHA512 = d._createHelper(l),
b.HmacSHA512 = d._createHmacHelper(l)
} (),
function() {
var b = a,
c = b.x64,
d = c.Word,
e = c.WordArray,
f = b.algo,
g = f.SHA512,
h = f.SHA384 = g.extend({
_doReset: function() {
this._hash = new e.init([new d.init(3418070365, 3238371032), new d.init(1654270250, 914150663), new d.init(2438529370, 812702999), new d.init(355462360, 4144912697), new d.init(1731405415, 4290775857), new d.init(2394180231, 1750603025), new d.init(3675008525, 1694076839), new d.init(1203062813, 3204075428)])
},
_doFinalize: function() {
var a = g._doFinalize.call(this);
return a.sigBytes -= 16,
a
}
});
b.SHA384 = g._createHelper(h),
b.HmacSHA384 = g._createHmacHelper(h)
} (),
a.lib.Cipher ||
function(b) {
var j, k, l, m, o, p, q, r, s, u, v, w, x, y, z, A, c = a,
d = c.lib,
e = d.Base,
f = d.WordArray,
g = d.BufferedBlockAlgorithm,
h = c.enc;
h.Utf8,
j = h.Base64,
k = c.algo,
l = k.EvpKDF,
m = d.Cipher = g.extend({
cfg: e.extend(),
createEncryptor: function(a, b) {
return this.create(this._ENC_XFORM_MODE, a, b)
},
createDecryptor: function(a, b) {
return this.create(this._DEC_XFORM_MODE, a, b)
},
init: function(a, b, c) {
this.cfg = this.cfg.extend(c),
this._xformMode = a,
this._key = b,
this.reset()
},
reset: function() {
g.reset.call(this),
this._doReset()
},
process: function(a) {
return this._append(a),
this._process()
},
finalize: function(a) {
a && this._append(a);
var b = this._doFinalize();
return b
},
keySize: 4,
ivSize: 4,
_ENC_XFORM_MODE: 1,
_DEC_XFORM_MODE: 2,
_createHelper: function() {
function a(a) {
return "string" == typeof a ? A: x
}
return function(b) {
return {
encrypt: function(c, d, e) {
return a(d).encrypt(b, c, d, e)
},
decrypt: function(c, d, e) {
return a(d).decrypt(b, c, d, e)
}
}
}
} ()
}),
d.StreamCipher = m.extend({
_doFinalize: function() {
var a = this._process(!0);
return a
},
blockSize: 1
}),
o = c.mode = {},
p = d.BlockCipherMode = e.extend({
createEncryptor: function(a, b) {
return this.Encryptor.create(a, b)
},
createDecryptor: function(a, b) {
return this.Decryptor.create(a, b)
},
init: function(a, b) {
this._cipher = a,
this._iv = b
}
}),
q = o.CBC = function() {
function c(a, c, d) {
var f, g, e = this._iv;
for (e ? (f = e, this._iv = b) : f = this._prevBlock, g = 0; d > g; g++) a[c + g] ^= f[g]
}
var a = p.extend();
return a.Encryptor = a.extend({
processBlock: function(a, b) {
var d = this._cipher,
e = d.blockSize;
c.call(this, a, b, e),
d.encryptBlock(a, b),
this._prevBlock = a.slice(b, b + e)
}
}),
a.Decryptor = a.extend({
processBlock: function(a, b) {
var d = this._cipher,
e = d.blockSize,
f = a.slice(b, b + e);
d.decryptBlock(a, b),
c.call(this, a, b, e),
this._prevBlock = f
}
}),
a
} (),
r = c.pad = {},
s = r.Pkcs7 = {
pad: function(a, b) {
var h, i, c = 4 * b,
d = c - a.sigBytes % c,
e = d << 24 | d << 16 | d << 8 | d,
g = [];
for (h = 0; d > h; h += 4) g.push(e);
i = f.create(g, d),
a.concat(i)
},
unpad: function(a) {
var b = 255 & a.words[a.sigBytes - 1 >>> 2];
a.sigBytes -= b
}
},
d.BlockCipher = m.extend({
cfg: m.cfg.extend({
mode: q,
padding: s
}),
reset: function() {
var a, b, c, d;
m.reset.call(this),
a = this.cfg,
b = a.iv,
c = a.mode,
this._xformMode == this._ENC_XFORM_MODE ? d = c.createEncryptor: (d = c.createDecryptor, this._minBufferSize = 1),
this._mode && this._mode.__creator == d ? this._mode.init(this, b && b.words) : (this._mode = d.call(c, this, b && b.words), this._mode.__creator = d)
},
_doProcessBlock: function(a, b) {
this._mode.processBlock(a, b)
},
_doFinalize: function() {
var b, a = this.cfg.padding;
return this._xformMode == this._ENC_XFORM_MODE ? (a.pad(this._data, this.blockSize), b = this._process(!0)) : (b = this._process(!0), a.unpad(b)),
b
},
blockSize: 4
}),
u = d.CipherParams = e.extend({
init: function(a) {
this.mixIn(a)
},
toString: function(a) {
return (a || this.formatter).stringify(this)
}
}),
v = c.format = {},
w = v.OpenSSL = {
stringify: function(a) {
var d, b = a.ciphertext,
c = a.salt;
return d = c ? f.create([1398893684, 1701076831]).concat(c).concat(b) : b,
d.toString(j)
},
parse: function(a) {
var d, b = j.parse(a),
c = b.words;
return 1398893684 == c[0] && 1701076831 == c[1] && (d = f.create(c.slice(2, 4)), c.splice(0, 4), b.sigBytes -= 16),
u.create({
ciphertext: b,
salt: d
})
}
},
x = d.SerializableCipher = e.extend({
cfg: e.extend({
format: w
}),
encrypt: function(a, b, c, d) {
var e, f, g;
return d = this.cfg.extend(d),
e = a.createEncryptor(c, d),
f = e.finalize(b),
g = e.cfg,
u.create({
ciphertext: f,
key: c,
iv: g.iv,
algorithm: a,
mode: g.mode,
padding: g.padding,
blockSize: a.blockSize,
formatter: d.format
})
},
decrypt: function(a, b, c, d) {
d = this.cfg.extend(d),
b = this._parse(b, d.format);
var e = a.createDecryptor(c, d).finalize(b.ciphertext);
return e
},
_parse: function(a, b) {
return "string" == typeof a ? b.parse(a, this) : a
}
}),
y = c.kdf = {},
z = y.OpenSSL = {
execute: function(a, b, c, d) {
var e, g;
return d || (d = f.random(8)),
e = l.create({
keySize: b + c
}).compute(a, d),
g = f.create(e.words.slice(b), 4 * c),
e.sigBytes = 4 * b,
u.create({
key: e,
iv: g,
salt: d
})
}
},
A = d.PasswordBasedCipher = x.extend({
cfg: x.cfg.extend({
kdf: z
}),
encrypt: function(a, b, c, d) {
var e, f;
return d = this.cfg.extend(d),
e = d.kdf.execute(c, a.keySize, a.ivSize),
d.iv = e.iv,
f = x.encrypt.call(this, a, b, e.key, d),
f.mixIn(e),
f
},
decrypt: function(a, b, c, d) {
var e, f;
return d = this.cfg.extend(d),
b = this._parse(b, d.format),
e = d.kdf.execute(c, a.keySize, a.ivSize, b.salt),
d.iv = e.iv,
f = x.decrypt.call(this, a, b, e.key, d)
}
})
} (),
a.mode.CFB = function() {
function c(a, b, c, d) {
var f, g, e = this._iv;
for (e ? (f = e.slice(0), this._iv = void 0) : f = this._prevBlock, d.encryptBlock(f, 0), g = 0; c > g; g++) a[b + g] ^= f[g]
}
var b = a.lib.BlockCipherMode.extend();
return b.Encryptor = b.extend({
processBlock: function(a, b) {
var d = this._cipher,
e = d.blockSize;
c.call(this, a, b, e, d),
this._prevBlock = a.slice(b, b + e)
}
}),
b.Decryptor = b.extend({
processBlock: function(a, b) {
var d = this._cipher,
e = d.blockSize,
f = a.slice(b, b + e);
c.call(this, a, b, e, d),
this._prevBlock = f
}
}),
b
} (),
a.mode.ECB = function() {
var b = a.lib.BlockCipherMode.extend();
return b.Encryptor = b.extend({
processBlock: function(a, b) {
this._cipher.encryptBlock(a, b)
}
}),
b.Decryptor = b.extend({
processBlock: function(a, b) {
this._cipher.decryptBlock(a, b)
}
}),
b
} (),
a.pad.AnsiX923 = {
pad: function(a, b) {
var c = a.sigBytes,
d = 4 * b,
e = d - c % d,
f = c + e - 1;
a.clamp(),
a.words[f >>> 2] |= e << 24 - 8 * (f % 4),
a.sigBytes += e
},
unpad: function(a) {
var b = 255 & a.words[a.sigBytes - 1 >>> 2];
a.sigBytes -= b
}
},
a.pad.Iso10126 = {
pad: function(b, c) {
var d = 4 * c,
e = d - b.sigBytes % d;
b.concat(a.lib.WordArray.random(e - 1)).concat(a.lib.WordArray.create([e << 24], 1))
},
unpad: function(a) {
var b = 255 & a.words[a.sigBytes - 1 >>> 2];
a.sigBytes -= b
}
},
a.pad.Iso97971 = {
pad: function(b, c) {
b.concat(a.lib.WordArray.create([2147483648], 1)),
a.pad.ZeroPadding.pad(b, c)
},
unpad: function(b) {
a.pad.ZeroPadding.unpad(b),
b.sigBytes--
}
},
a.mode.OFB = function() {
var b = a.lib.BlockCipherMode.extend(),
c = b.Encryptor = b.extend({
processBlock: function(a, b) {
var g, c = this._cipher,
d = c.blockSize,
e = this._iv,
f = this._keystream;
for (e && (f = this._keystream = e.slice(0), this._iv = void 0), c.encryptBlock(f, 0), g = 0; d > g; g++) a[b + g] ^= f[g]
}
});
return b.Decryptor = c,
b
} (),
a.pad.NoPadding = {
pad: function() {},
unpad: function() {}
},
function() {
var c = a,
d = c.lib,
e = d.CipherParams,
f = c.enc,
g = f.Hex,
h = c.format;
h.Hex = {
stringify: function(a) {
return a.ciphertext.toString(g)
},
parse: function(a) {
var b = g.parse(a);
return e.create({
ciphertext: b
})
}
}
} (),
function() {
var p, q, b = a,
c = b.lib,
d = c.BlockCipher,
e = b.algo,
f = [],
g = [],
h = [],
i = [],
j = [],
k = [],
l = [],
m = [],
n = [],
o = []; !
function() {
var b, c, d, e, p, q, r, s, a = [];
for (b = 0; 256 > b; b++) a[b] = 128 > b ? b << 1 : 283 ^ b << 1;
for (c = 0, d = 0, b = 0; 256 > b; b++) e = d ^ d << 1 ^ d << 2 ^ d << 3 ^ d << 4,
e = 99 ^ (e >>> 8 ^ 255 & e),
f[c] = e,
g[e] = c,
p = a[c],
q = a[p],
r = a[q],
s = 257 * a[e] ^ 16843008 * e,
h[c] = s << 24 | s >>> 8,
i[c] = s << 16 | s >>> 16,
j[c] = s << 8 | s >>> 24,
k[c] = s,
s = 16843009 * r ^ 65537 * q ^ 257 * p ^ 16843008 * c,
l[e] = s << 24 | s >>> 8,
m[e] = s << 16 | s >>> 16,
n[e] = s << 8 | s >>> 24,
o[e] = s,
c ? (c = p ^ a[a[a[r ^ p]]], d ^= a[a[d]]) : c = d = 1
} (),
p = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54],
q = e.AES = d.extend({
_doReset: function() {
var a, b, c, d, e, g, h, i, j, k;
if (!this._nRounds || this._keyPriorReset !== this._key) {
for (a = this._keyPriorReset = this._key, b = a.words, c = a.sigBytes / 4, d = this._nRounds = c + 6, e = 4 * (d + 1), g = this._keySchedule = [], h = 0; e > h; h++) c > h ? g[h] = b[h] : (i = g[h - 1], h % c ? c > 6 && 4 == h % c && (i = f[i >>> 24] << 24 | f[255 & i >>> 16] << 16 | f[255 & i >>> 8] << 8 | f[255 & i]) : (i = i << 8 | i >>> 24, i = f[i >>> 24] << 24 | f[255 & i >>> 16] << 16 | f[255 & i >>> 8] << 8 | f[255 & i], i ^= p[0 | h / c] << 24), g[h] = g[h - c] ^ i);
for (j = this._invKeySchedule = [], k = 0; e > k; k++) h = e - k,
i = k % 4 ? g[h] : g[h - 4],
j[k] = 4 > k || 4 >= h ? i: l[f[i >>> 24]] ^ m[f[255 & i >>> 16]] ^ n[f[255 & i >>> 8]] ^ o[f[255 & i]]
}
},
encryptBlock: function(a, b) {
this._doCryptBlock(a, b, this._keySchedule, h, i, j, k, f)
},
decryptBlock: function(a, b) {
var c = a[b + 1];
a[b + 1] = a[b + 3],
a[b + 3] = c,
this._doCryptBlock(a, b, this._invKeySchedule, l, m, n, o, g),
c = a[b + 1],
a[b + 1] = a[b + 3],
a[b + 3] = c
},
_doCryptBlock: function(a, b, c, d, e, f, g, h) {
var o, p, q, r, s, i = this._nRounds,
j = a[b] ^ c[0],
k = a[b + 1] ^ c[1],
l = a[b + 2] ^ c[2],
m = a[b + 3] ^ c[3],
n = 4;
for (o = 1; i > o; o++) p = d[j >>> 24] ^ e[255 & k >>> 16] ^ f[255 & l >>> 8] ^ g[255 & m] ^ c[n++],
q = d[k >>> 24] ^ e[255 & l >>> 16] ^ f[255 & m >>> 8] ^ g[255 & j] ^ c[n++],
r = d[l >>> 24] ^ e[255 & m >>> 16] ^ f[255 & j >>> 8] ^ g[255 & k] ^ c[n++],
s = d[m >>> 24] ^ e[255 & j >>> 16] ^ f[255 & k >>> 8] ^ g[255 & l] ^ c[n++],
j = p,
k = q,
l = r,
m = s;
p = (h[j >>> 24] << 24 | h[255 & k >>> 16] << 16 | h[255 & l >>> 8] << 8 | h[255 & m]) ^ c[n++],
q = (h[k >>> 24] << 24 | h[255 & l >>> 16] << 16 | h[255 & m >>> 8] << 8 | h[255 & j]) ^ c[n++],
r = (h[l >>> 24] << 24 | h[255 & m >>> 16] << 16 | h[255 & j >>> 8] << 8 | h[255 & k]) ^ c[n++],
s = (h[m >>> 24] << 24 | h[255 & j >>> 16] << 16 | h[255 & k >>> 8] << 8 | h[255 & l]) ^ c[n++],
a[b] = p,
a[b + 1] = q,
a[b + 2] = r,
a[b + 3] = s
},
keySize: 8
}),
b.AES = d._createHelper(q)
} (),
function() {
function m(a, b) {
var c = (this._lBlock >>> a ^ this._rBlock) & b;
this._rBlock ^= c,
this._lBlock ^= c << a
}
function n(a, b) {
var c = (this._rBlock >>> a ^ this._lBlock) & b;
this._lBlock ^= c,
this._rBlock ^= c << a
}
var o, b = a,
c = b.lib,
d = c.WordArray,
e = c.BlockCipher,
f = b.algo,
g = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4],
h = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32],
i = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28],
j = [{
0 : 8421888,
268435456 : 32768,
536870912 : 8421378,
805306368 : 2,
1073741824 : 512,
1342177280 : 8421890,
1610612736 : 8389122,
1879048192 : 8388608,
2147483648 : 514,
2415919104 : 8389120,
2684354560 : 33280,
2952790016 : 8421376,
3221225472 : 32770,
3489660928 : 8388610,
3758096384 : 0,
4026531840 : 33282,
134217728 : 0,
402653184 : 8421890,
671088640 : 33282,
939524096 : 32768,
1207959552 : 8421888,
1476395008 : 512,
1744830464 : 8421378,
2013265920 : 2,
2281701376 : 8389120,
2550136832 : 33280,
2818572288 : 8421376,
3087007744 : 8389122,
3355443200 : 8388610,
3623878656 : 32770,
3892314112 : 514,
4160749568 : 8388608,
1 : 32768,
268435457 : 2,
536870913 : 8421888,
805306369 : 8388608,
1073741825 : 8421378,
1342177281 : 33280,
1610612737 : 512,
1879048193 : 8389122,
2147483649 : 8421890,
2415919105 : 8421376,
2684354561 : 8388610,
2952790017 : 33282,
3221225473 : 514,
3489660929 : 8389120,
3758096385 : 32770,
4026531841 : 0,
134217729 : 8421890,
402653185 : 8421376,
671088641 : 8388608,
939524097 : 512,
1207959553 : 32768,
1476395009 : 8388610,
1744830465 : 2,
2013265921 : 33282,
2281701377 : 32770,
2550136833 : 8389122,
2818572289 : 514,
3087007745 : 8421888,
3355443201 : 8389120,
3623878657 : 0,
3892314113 : 33280,
4160749569 : 8421378
},
{
0 : 1074282512,
16777216 : 16384,
33554432 : 524288,
50331648 : 1074266128,
67108864 : 1073741840,
83886080 : 1074282496,
100663296 : 1073758208,
117440512 : 16,
134217728 : 540672,
150994944 : 1073758224,
167772160 : 1073741824,
184549376 : 540688,
201326592 : 524304,
218103808 : 0,
234881024 : 16400,
251658240 : 1074266112,
8388608 : 1073758208,
25165824 : 540688,
41943040 : 16,
58720256 : 1073758224,
75497472 : 1074282512,
92274688 : 1073741824,
109051904 : 524288,
125829120 : 1074266128,
142606336 : 524304,
159383552 : 0,
176160768 : 16384,
192937984 : 1074266112,
209715200 : 1073741840,
226492416 : 540672,
243269632 : 1074282496,
260046848 : 16400,
268435456 : 0,
285212672 : 1074266128,
301989888 : 1073758224,
318767104 : 1074282496,
335544320 : 1074266112,
352321536 : 16,
369098752 : 540688,
385875968 : 16384,
402653184 : 16400,
419430400 : 524288,
436207616 : 524304,
452984832 : 1073741840,
469762048 : 540672,
486539264 : 1073758208,
503316480 : 1073741824,
520093696 : 1074282512,
276824064 : 540688,
293601280 : 524288,
310378496 : 1074266112,
327155712 : 16384,
343932928 : 1073758208,
360710144 : 1074282512,
377487360 : 16,
394264576 : 1073741824,
411041792 : 1074282496,
427819008 : 1073741840,
444596224 : 1073758224,
461373440 : 524304,
478150656 : 0,
494927872 : 16400,
511705088 : 1074266128,
528482304 : 540672
},
{
0 : 260,
1048576 : 0,
2097152 : 67109120,
3145728 : 65796,
4194304 : 65540,
5242880 : 67108868,
6291456 : 67174660,
7340032 : 67174400,
8388608 : 67108864,
9437184 : 67174656,
10485760 : 65792,
11534336 : 67174404,
12582912 : 67109124,
13631488 : 65536,
14680064 : 4,
15728640 : 256,
524288 : 67174656,
1572864 : 67174404,
2621440 : 0,
3670016 : 67109120,
4718592 : 67108868,
5767168 : 65536,
6815744 : 65540,
7864320 : 260,
8912896 : 4,
9961472 : 256,
11010048 : 67174400,
12058624 : 65796,
13107200 : 65792,
14155776 : 67109124,
15204352 : 67174660,
16252928 : 67108864,
16777216 : 67174656,
17825792 : 65540,
18874368 : 65536,
19922944 : 67109120,
20971520 : 256,
22020096 : 67174660,
23068672 : 67108868,
24117248 : 0,
25165824 : 67109124,
26214400 : 67108864,
27262976 : 4,
28311552 : 65792,
29360128 : 67174400,
30408704 : 260,
31457280 : 65796,
32505856 : 67174404,
17301504 : 67108864,
18350080 : 260,
19398656 : 67174656,
20447232 : 0,
21495808 : 65540,
22544384 : 67109120,
23592960 : 256,
24641536 : 67174404,
25690112 : 65536,
26738688 : 67174660,
27787264 : 65796,
28835840 : 67108868,
29884416 : 67109124,
30932992 : 67174400,
31981568 : 4,
33030144 : 65792
},
{
0 : 2151682048,
65536 : 2147487808,
131072 : 4198464,
196608 : 2151677952,
262144 : 0,
327680 : 4198400,
393216 : 2147483712,
458752 : 4194368,
524288 : 2147483648,
589824 : 4194304,
655360 : 64,
720896 : 2147487744,
786432 : 2151678016,
851968 : 4160,
917504 : 4096,
983040 : 2151682112,
32768 : 2147487808,
98304 : 64,
163840 : 2151678016,
229376 : 2147487744,
294912 : 4198400,
360448 : 2151682112,
425984 : 0,
491520 : 2151677952,
557056 : 4096,
622592 : 2151682048,
688128 : 4194304,
753664 : 4160,
819200 : 2147483648,
884736 : 4194368,
950272 : 4198464,
1015808 : 2147483712,
1048576 : 4194368,
1114112 : 4198400,
1179648 : 2147483712,
1245184 : 0,
1310720 : 4160,
1376256 : 2151678016,
1441792 : 2151682048,
1507328 : 2147487808,
1572864 : 2151682112,
1638400 : 2147483648,
1703936 : 2151677952,
1769472 : 4198464,
1835008 : 2147487744,
1900544 : 4194304,
1966080 : 64,
2031616 : 4096,
1081344 : 2151677952,
1146880 : 2151682112,
1212416 : 0,
1277952 : 4198400,
1343488 : 4194368,
1409024 : 2147483648,
1474560 : 2147487808,
1540096 : 64,
1605632 : 2147483712,
1671168 : 4096,
1736704 : 2147487744,
1802240 : 2151678016,
1867776 : 4160,
1933312 : 2151682048,
1998848 : 4194304,
2064384 : 4198464
},
{
0 : 128,
4096 : 17039360,
8192 : 262144,
12288 : 536870912,
16384 : 537133184,
20480 : 16777344,
24576 : 553648256,
28672 : 262272,
32768 : 16777216,
36864 : 537133056,
40960 : 536871040,
45056 : 553910400,
49152 : 553910272,
53248 : 0,
57344 : 17039488,
61440 : 553648128,
2048 : 17039488,
6144 : 553648256,
10240 : 128,
14336 : 17039360,
18432 : 262144,
22528 : 537133184,
26624 : 553910272,
30720 : 536870912,
34816 : 537133056,
38912 : 0,
43008 : 553910400,
47104 : 16777344,
51200 : 536871040,
55296 : 553648128,
59392 : 16777216,
63488 : 262272,
65536 : 262144,
69632 : 128,
73728 : 536870912,
77824 : 553648256,
81920 : 16777344,
86016 : 553910272,
90112 : 537133184,
94208 : 16777216,
98304 : 553910400,
102400 : 553648128,
106496 : 17039360,
110592 : 537133056,
114688 : 262272,
118784 : 536871040,
122880 : 0,
126976 : 17039488,
67584 : 553648256,
71680 : 16777216,
75776 : 17039360,
79872 : 537133184,
83968 : 536870912,
88064 : 17039488,
92160 : 128,
96256 : 553910272,
100352 : 262272,
104448 : 553910400,
108544 : 0,
112640 : 553648128,
116736 : 16777344,
120832 : 262144,
124928 : 537133056,
129024 : 536871040
},
{
0 : 268435464,
256 : 8192,
512 : 270532608,
768 : 270540808,
1024 : 268443648,
1280 : 2097152,
1536 : 2097160,
1792 : 268435456,
2048 : 0,
2304 : 268443656,
2560 : 2105344,
2816 : 8,
3072 : 270532616,
3328 : 2105352,
3584 : 8200,
3840 : 270540800,
128 : 270532608,
384 : 270540808,
640 : 8,
896 : 2097152,
1152 : 2105352,
1408 : 268435464,
1664 : 268443648,
1920 : 8200,
2176 : 2097160,
2432 : 8192,
2688 : 268443656,
2944 : 270532616,
3200 : 0,
3456 : 270540800,
3712 : 2105344,
3968 : 268435456,
4096 : 268443648,
4352 : 270532616,
4608 : 270540808,
4864 : 8200,
5120 : 2097152,
5376 : 268435456,
5632 : 268435464,
5888 : 2105344,
6144 : 2105352,
6400 : 0,
6656 : 8,
6912 : 270532608,
7168 : 8192,
7424 : 268443656,
7680 : 270540800,
7936 : 2097160,
4224 : 8,
4480 : 2105344,
4736 : 2097152,
4992 : 268435464,
5248 : 268443648,
5504 : 8200,
5760 : 270540808,
6016 : 270532608,
6272 : 270540800,
6528 : 270532616,
6784 : 8192,
7040 : 2105352,
7296 : 2097160,
7552 : 0,
7808 : 268435456,
8064 : 268443656
},
{
0 : 1048576,
16 : 33555457,
32 : 1024,
48 : 1049601,
64 : 34604033,
80 : 0,
96 : 1,
112 : 34603009,
128 : 33555456,
144 : 1048577,
160 : 33554433,
176 : 34604032,
192 : 34603008,
208 : 1025,
224 : 1049600,
240 : 33554432,
8 : 34603009,
24 : 0,
40 : 33555457,
56 : 34604032,
72 : 1048576,
88 : 33554433,
104 : 33554432,
120 : 1025,
136 : 1049601,
152 : 33555456,
168 : 34603008,
184 : 1048577,
200 : 1024,
216 : 34604033,
232 : 1,
248 : 1049600,
256 : 33554432,
272 : 1048576,
288 : 33555457,
304 : 34603009,
320 : 1048577,
336 : 33555456,
352 : 34604032,
368 : 1049601,
384 : 1025,
400 : 34604033,
416 : 1049600,
432 : 1,
448 : 0,
464 : 34603008,
480 : 33554433,
496 : 1024,
264 : 1049600,
280 : 33555457,
296 : 34603009,
312 : 1,
328 : 33554432,
344 : 1048576,
360 : 1025,
376 : 34604032,
392 : 33554433,
408 : 34603008,
424 : 0,
440 : 34604033,
456 : 1049601,
472 : 1024,
488 : 33555456,
504 : 1048577
},
{
0 : 134219808,
1 : 131072,
2 : 134217728,
3 : 32,
4 : 131104,
5 : 134350880,
6 : 134350848,
7 : 2048,
8 : 134348800,
9 : 134219776,
10 : 133120,
11 : 134348832,
12 : 2080,
13 : 0,
14 : 134217760,
15 : 133152,
2147483648 : 2048,
2147483649 : 134350880,
2147483650 : 134219808,
2147483651 : 134217728,
2147483652 : 134348800,
2147483653 : 133120,
2147483654 : 133152,
2147483655 : 32,
2147483656 : 134217760,
2147483657 : 2080,
2147483658 : 131104,
2147483659 : 134350848,
2147483660 : 0,
2147483661 : 134348832,
2147483662 : 134219776,
2147483663 : 131072,
16 : 133152,
17 : 134350848,
18 : 32,
19 : 2048,
20 : 134219776,
21 : 134217760,
22 : 134348832,
23 : 131072,
24 : 0,
25 : 131104,
26 : 134348800,
27 : 134219808,
28 : 134350880,
29 : 133120,
30 : 2080,
31 : 134217728,
2147483664 : 131072,
2147483665 : 2048,
2147483666 : 134348832,
2147483667 : 133152,
2147483668 : 32,
2147483669 : 134348800,
2147483670 : 134217728,
2147483671 : 134219808,
2147483672 : 134350880,
2147483673 : 134217760,
2147483674 : 134219776,
2147483675 : 0,
2147483676 : 133120,
2147483677 : 2080,
2147483678 : 131104,
2147483679 : 134350848
}],
k = [4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504, 2147483679],
l = f.DES = e.extend({
_doReset: function() {
var d, e, f, j, k, l, m, a = this._key,
b = a.words,
c = [];
for (d = 0; 56 > d; d++) e = g[d] - 1,
c[d] = 1 & b[e >>> 5] >>> 31 - e % 32;
for (f = this._subKeys = [], j = 0; 16 > j; j++) {
for (k = f[j] = [], l = i[j], d = 0; 24 > d; d++) k[0 | d / 6] |= c[(h[d] - 1 + l) % 28] << 31 - d % 6,
k[4 + (0 | d / 6)] |= c[28 + (h[d + 24] - 1 + l) % 28] << 31 - d % 6;
for (k[0] = k[0] << 1 | k[0] >>> 31, d = 1; 7 > d; d++) k[d] = k[d] >>> 4 * (d - 1) + 3;
k[7] = k[7] << 5 | k[7] >>> 27
}
for (m = this._invSubKeys = [], d = 0; 16 > d; d++) m[d] = f[15 - d]
},
encryptBlock: function(a, b) {
this._doCryptBlock(a, b, this._subKeys)
},
decryptBlock: function(a, b) {
this._doCryptBlock(a, b, this._invSubKeys)
},
_doCryptBlock: function(a, b, c) {
var d, e, f, g, h, i, l;
for (this._lBlock = a[b], this._rBlock = a[b + 1], m.call(this, 4, 252645135), m.call(this, 16, 65535), n.call(this, 2, 858993459), n.call(this, 8, 16711935), m.call(this, 1, 1431655765), d = 0; 16 > d; d++) {
for (e = c[d], f = this._lBlock, g = this._rBlock, h = 0, i = 0; 8 > i; i++) h |= j[i][((g ^ e[i]) & k[i]) >>> 0];
this._lBlock = g,
this._rBlock = f ^ h
}
l = this._lBlock,
this._lBlock = this._rBlock,
this._rBlock = l,
m.call(this, 1, 1431655765),
n.call(this, 8, 16711935),
n.call(this, 2, 858993459),
m.call(this, 16, 65535),
m.call(this, 4, 252645135),
a[b] = this._lBlock,
a[b + 1] = this._rBlock
},
keySize: 2,
ivSize: 2,
blockSize: 2
});
b.DES = e._createHelper(l),
o = f.TripleDES = e.extend({
_doReset: function() {
var a = this._key,
b = a.words;
this._des1 = l.createEncryptor(d.create(b.slice(0, 2))),
this._des2 = l.createEncryptor(d.create(b.slice(2, 4))),
this._des3 = l.createEncryptor(d.create(b.slice(4, 6)))
},
encryptBlock: function(a, b) {
this._des1.encryptBlock(a, b),
this._des2.decryptBlock(a, b),
this._des3.encryptBlock(a, b)
},
decryptBlock: function(a, b) {
this._des3.decryptBlock(a, b),
this._des2.encryptBlock(a, b),
this._des1.decryptBlock(a, b)
},
keySize: 6,
ivSize: 2,
blockSize: 2
}),
b.TripleDES = e._createHelper(o)
} (),
function() {
function g() {
var e, f, a = this._S,
b = this._i,
c = this._j,
d = 0;
for (e = 0; 4 > e; e++) b = (b + 1) % 256,
c = (c + a[b]) % 256,
f = a[b],
a[b] = a[c],
a[c] = f,
d |= a[(a[b] + a[c]) % 256] << 24 - 8 * e;
return this._i = b,
this._j = c,
d
}
var h, b = a,
c = b.lib,
d = c.StreamCipher,
e = b.algo,
f = e.RC4 = d.extend({
_doReset: function() {
var e, f, g, h, i, a = this._key,
b = a.words,
c = a.sigBytes,
d = this._S = [];
for (e = 0; 256 > e; e++) d[e] = e;
for (e = 0, f = 0; 256 > e; e++) g = e % c,
h = 255 & b[g >>> 2] >>> 24 - 8 * (g % 4),
f = (f + d[e] + h) % 256,
i = d[e],
d[e] = d[f],
d[f] = i;
this._i = this._j = 0
},
_doProcessBlock: function(a, b) {
a[b] ^= g.call(this)
},
keySize: 8,
ivSize: 0
});
b.RC4 = d._createHelper(f),
h = e.RC4Drop = f.extend({
cfg: f.cfg.extend({
drop: 192
}),
_doReset: function() {
f._doReset.call(this);
for (var a = this.cfg.drop; a > 0; a--) g.call(this)
}
}),
b.RC4Drop = d._createHelper(h)
} (),
a.mode.CTRGladman = function() {
function c(a) {
var b, c, d;
return 255 === (255 & a >> 24) ? (b = 255 & a >> 16, c = 255 & a >> 8, d = 255 & a, 255 === b ? (b = 0, 255 === c ? (c = 0, 255 === d ? d = 0 : ++d) : ++c) : ++b, a = 0, a += b << 16, a += c << 8, a += d) : a += 1 << 24,
a
}
function d(a) {
return 0 === (a[0] = c(a[0])) && (a[1] = c(a[1])),
a
}
var b = a.lib.BlockCipherMode.extend(),
e = b.Encryptor = b.extend({
processBlock: function(a, b) {
var h, i, c = this._cipher,
e = c.blockSize,
f = this._iv,
g = this._counter;
for (f && (g = this._counter = f.slice(0), this._iv = void 0), d(g), h = g.slice(0), c.encryptBlock(h, 0), i = 0; e > i; i++) a[b + i] ^= h[i]
}
});
return b.Decryptor = e,
b
} (),
function() {
function j() {
var c, d, e, f, i, j, a = this._X,
b = this._C;
for (c = 0; 8 > c; c++) g[c] = b[c];
for (b[0] = 0 | b[0] + 1295307597 + this._b, b[1] = 0 | b[1] + 3545052371 + (b[0] >>> 0 < g[0] >>> 0 ? 1 : 0), b[2] = 0 | b[2] + 886263092 + (b[1] >>> 0 < g[1] >>> 0 ? 1 : 0), b[3] = 0 | b[3] + 1295307597 + (b[2] >>> 0 < g[2] >>> 0 ? 1 : 0), b[4] = 0 | b[4] + 3545052371 + (b[3] >>> 0 < g[3] >>> 0 ? 1 : 0), b[5] = 0 | b[5] + 886263092 + (b[4] >>> 0 < g[4] >>> 0 ? 1 : 0), b[6] = 0 | b[6] + 1295307597 + (b[5] >>> 0 < g[5] >>> 0 ? 1 : 0), b[7] = 0 | b[7] + 3545052371 + (b[6] >>> 0 < g[6] >>> 0 ? 1 : 0), this._b = b[7] >>> 0 < g[7] >>> 0 ? 1 : 0, c = 0; 8 > c; c++) d = a[c] + b[c],
e = 65535 & d,
f = d >>> 16,
i = ((e * e >>> 17) + e * f >>> 15) + f * f,
j = (0 | (4294901760 & d) * d) + (0 | (65535 & d) * d),
h[c] = i ^ j;
a[0] = 0 | h[0] + (h[7] << 16 | h[7] >>> 16) + (h[6] << 16 | h[6] >>> 16),
a[1] = 0 | h[1] + (h[0] << 8 | h[0] >>> 24) + h[7],
a[2] = 0 | h[2] + (h[1] << 16 | h[1] >>> 16) + (h[0] << 16 | h[0] >>> 16),
a[3] = 0 | h[3] + (h[2] << 8 | h[2] >>> 24) + h[1],
a[4] = 0 | h[4] + (h[3] << 16 | h[3] >>> 16) + (h[2] << 16 | h[2] >>> 16),
a[5] = 0 | h[5] + (h[4] << 8 | h[4] >>> 24) + h[3],
a[6] = 0 | h[6] + (h[5] << 16 | h[5] >>> 16) + (h[4] << 16 | h[4] >>> 16),
a[7] = 0 | h[7] + (h[6] << 8 | h[6] >>> 24) + h[5]
}
var b = a,
c = b.lib,
d = c.StreamCipher,
e = b.algo,
f = [],
g = [],
h = [],
i = e.Rabbit = d.extend({
_doReset: function() {
var c, d, e, f, g, h, i, k, l, m, a = this._key.words,
b = this.cfg.iv;
for (c = 0; 4 > c; c++) a[c] = 16711935 & (a[c] << 8 | a[c] >>> 24) | 4278255360 & (a[c] << 24 | a[c] >>> 8);
for (d = this._X = [a[0], a[3] << 16 | a[2] >>> 16, a[1], a[0] << 16 | a[3] >>> 16, a[2], a[1] << 16 | a[0] >>> 16, a[3], a[2] << 16 | a[1] >>> 16], e = this._C = [a[2] << 16 | a[2] >>> 16, 4294901760 & a[0] | 65535 & a[1], a[3] << 16 | a[3] >>> 16, 4294901760 & a[1] | 65535 & a[2], a[0] << 16 | a[0] >>> 16, 4294901760 & a[2] | 65535 & a[3], a[1] << 16 | a[1] >>> 16, 4294901760 & a[3] | 65535 & a[0]], this._b = 0, c = 0; 4 > c; c++) j.call(this);
for (c = 0; 8 > c; c++) e[c] ^= d[7 & c + 4];
if (b) for (f = b.words, g = f[0], h = f[1], i = 16711935 & (g << 8 | g >>> 24) | 4278255360 & (g << 24 | g >>> 8), k = 16711935 & (h << 8 | h >>> 24) | 4278255360 & (h << 24 | h >>> 8), l = i >>> 16 | 4294901760 & k, m = k << 16 | 65535 & i, e[0] ^= i, e[1] ^= l, e[2] ^= k, e[3] ^= m, e[4] ^= i, e[5] ^= l, e[6] ^= k, e[7] ^= m, c = 0; 4 > c; c++) j.call(this)
},
_doProcessBlock: function(a, b) {
var d, c = this._X;
for (j.call(this), f[0] = c[0] ^ c[5] >>> 16 ^ c[3] << 16, f[1] = c[2] ^ c[7] >>> 16 ^ c[5] << 16, f[2] = c[4] ^ c[1] >>> 16 ^ c[7] << 16, f[3] = c[6] ^ c[3] >>> 16 ^ c[1] << 16, d = 0; 4 > d; d++) f[d] = 16711935 & (f[d] << 8 | f[d] >>> 24) | 4278255360 & (f[d] << 24 | f[d] >>> 8),
a[b + d] ^= f[d]
},
blockSize: 4,
ivSize: 2
});
b.Rabbit = d._createHelper(i)
} (),
a.mode.CTR = function() {
var b = a.lib.BlockCipherMode.extend(),
c = b.Encryptor = b.extend({
processBlock: function(a, b) {
var g, h, c = this._cipher,
d = c.blockSize,
e = this._iv,
f = this._counter;
for (e && (f = this._counter = e.slice(0), this._iv = void 0), g = f.slice(0), c.encryptBlock(g, 0), f[d - 1] = 0 | f[d - 1] + 1, h = 0; d > h; h++) a[b + h] ^= g[h]
}
});
return b.Decryptor = c,
b
} (),
function() {
function j() {
var c, d, e, f, i, j, a = this._X,
b = this._C;
for (c = 0; 8 > c; c++) g[c] = b[c];
for (b[0] = 0 | b[0] + 1295307597 + this._b, b[1] = 0 | b[1] + 3545052371 + (b[0] >>> 0 < g[0] >>> 0 ? 1 : 0), b[2] = 0 | b[2] + 886263092 + (b[1] >>> 0 < g[1] >>> 0 ? 1 : 0), b[3] = 0 | b[3] + 1295307597 + (b[2] >>> 0 < g[2] >>> 0 ? 1 : 0), b[4] = 0 | b[4] + 3545052371 + (b[3] >>> 0 < g[3] >>> 0 ? 1 : 0), b[5] = 0 | b[5] + 886263092 + (b[4] >>> 0 < g[4] >>> 0 ? 1 : 0), b[6] = 0 | b[6] + 1295307597 + (b[5] >>> 0 < g[5] >>> 0 ? 1 : 0), b[7] = 0 | b[7] + 3545052371 + (b[6] >>> 0 < g[6] >>> 0 ? 1 : 0), this._b = b[7] >>> 0 < g[7] >>> 0 ? 1 : 0, c = 0; 8 > c; c++) d = a[c] + b[c],
e = 65535 & d,
f = d >>> 16,
i = ((e * e >>> 17) + e * f >>> 15) + f * f,
j = (0 | (4294901760 & d) * d) + (0 | (65535 & d) * d),
h[c] = i ^ j;
a[0] = 0 | h[0] + (h[7] << 16 | h[7] >>> 16) + (h[6] << 16 | h[6] >>> 16),
a[1] = 0 | h[1] + (h[0] << 8 | h[0] >>> 24) + h[7],
a[2] = 0 | h[2] + (h[1] << 16 | h[1] >>> 16) + (h[0] << 16 | h[0] >>> 16),
a[3] = 0 | h[3] + (h[2] << 8 | h[2] >>> 24) + h[1],
a[4] = 0 | h[4] + (h[3] << 16 | h[3] >>> 16) + (h[2] << 16 | h[2] >>> 16),
a[5] = 0 | h[5] + (h[4] << 8 | h[4] >>> 24) + h[3],
a[6] = 0 | h[6] + (h[5] << 16 | h[5] >>> 16) + (h[4] << 16 | h[4] >>> 16),
a[7] = 0 | h[7] + (h[6] << 8 | h[6] >>> 24) + h[5]
}
var b = a,
c = b.lib,
d = c.StreamCipher,
e = b.algo,
f = [],
g = [],
h = [],
i = e.RabbitLegacy = d.extend({
_doReset: function() {
var e, f, g, h, i, k, l, m, a = this._key.words,
b = this.cfg.iv,
c = this._X = [a[0], a[3] << 16 | a[2] >>> 16, a[1], a[0] << 16 | a[3] >>> 16, a[2], a[1] << 16 | a[0] >>> 16, a[3], a[2] << 16 | a[1] >>> 16],
d = this._C = [a[2] << 16 | a[2] >>> 16, 4294901760 & a[0] | 65535 & a[1], a[3] << 16 | a[3] >>> 16, 4294901760 & a[1] | 65535 & a[2], a[0] << 16 | a[0] >>> 16, 4294901760 & a[2] | 65535 & a[3], a[1] << 16 | a[1] >>> 16, 4294901760 & a[3] | 65535 & a[0]];
for (this._b = 0, e = 0; 4 > e; e++) j.call(this);
for (e = 0; 8 > e; e++) d[e] ^= c[7 & e + 4];
if (b) for (f = b.words, g = f[0], h = f[1], i = 16711935 & (g << 8 | g >>> 24) | 4278255360 & (g << 24 | g >>> 8), k = 16711935 & (h << 8 | h >>> 24) | 4278255360 & (h << 24 | h >>> 8), l = i >>> 16 | 4294901760 & k, m = k << 16 | 65535 & i, d[0] ^= i, d[1] ^= l, d[2] ^= k, d[3] ^= m, d[4] ^= i, d[5] ^= l, d[6] ^= k, d[7] ^= m, e = 0; 4 > e; e++) j.call(this)
},
_doProcessBlock: function(a, b) {
var d, c = this._X;
for (j.call(this), f[0] = c[0] ^ c[5] >>> 16 ^ c[3] << 16, f[1] = c[2] ^ c[7] >>> 16 ^ c[5] << 16, f[2] = c[4] ^ c[1] >>> 16 ^ c[7] << 16, f[3] = c[6] ^ c[3] >>> 16 ^ c[1] << 16, d = 0; 4 > d; d++) f[d] = 16711935 & (f[d] << 8 | f[d] >>> 24) | 4278255360 & (f[d] << 24 | f[d] >>> 8),
a[b + d] ^= f[d]
},
blockSize: 4,
ivSize: 2
});
b.RabbitLegacy = d._createHelper(i)
} (),
a.pad.ZeroPadding = {
pad: function(a, b) {
var c = 4 * b;
a.clamp(),
a.sigBytes += c - (a.sigBytes % c || c)
},
unpad: function(a) {
for (var b = a.words,
c = a.sigBytes - 1; ! (255 & b[c >>> 2] >>> 24 - 8 * (c % 4));) c--;
a.sigBytes = c + 1
}
},
a
});
function encryptAES(pwd) {
return CryptoJS.AES.encrypt(pwd, "lzYW5qaXVqa").toString();
}
var pwd = ''
console.log(encryptAES(pwd))