某招聘网站搜索结果接口逆向之webpack扣取

逆向网址

aHR0cHM6Ly93ZS41MWpvYi5jb20v


逆向链接

aHR0cHM6Ly93ZS41MWpvYi5jb20vcGMvc2VhcmNoP2pvYkFyZWE9MDAwMDAwJmtleXdvcmQ9cGhwJnNlYXJjaFR5cGU9MiZrZXl3b3JkVHlwZT0=


逆向接口 

aHR0cHM6Ly93ZS41MWpvYi5jb20vYXBpL2pvYi9zZWFyY2gtcGM=

逆向过程 

请求方式

        POST

逆向参数

请求头中携带的参数:

Sign:  e788afa0154865676022085afb586fd907886b3db9943678c54821eb91a1665f

Uuid: d4d34656b36efcf40a8077696cde033a

过程分析

根据XHR断点方式可快速进入发包内容

跟栈到如下位置处

设置条件断后释放掉xhr断点

e.url.indexOf( '/api/job/search-pc' ) != -1

 断点处开始跟栈, 到如下位置发现为 异步

发现关键点:

m.interceptors.request.use((function(t) {
	var e = t.url + (t.data || "");
	return t.headers.sign = g.a.HmacSHA256(e, c["a"].state.commonStore.cupid_sign_key),
	t.headers["uuid"] = u["b"].getuuid(),
	t.headers["From-Domain"] = c["a"].state.commonStore.fromdomain,
	t.headers["account-id"] = localStorage.getItem("accountId") || "",
	t.headers["user-token"] = localStorage.getItem("token") || "",
	t.headers["partner"] = c["a"].state.commonStore.partner,
	t.headers["property"] = encodeURIComponent(JSON.stringify(Object(o["a"])(Object(o["a"])({}, u["b"].getProperty()), t.property || {}))),
	t
}
// headers -> sign
t.headers.sign = g.a.HmacSHA256(e, c["a"].state.commonStore.cupid_sign_key)


// headers -> uuid
t.headers["uuid"] = u["b"].getuuid(),

 

如果发现跟栈之后没找到设置请求头的位置,那么这时候试试搜索大法 发现请求头中还存在其他参数:

User-Token,Property,Partner,From-Domain....

这里以【User-Token】为例

在这三个位置打上断点刷新页面调试也可定位到上述位关键点位置

由关键词HmacSHA256可知为SHA-256生成哈希值的HMAC算法

验证可知为标准加密

代码扣取

UUID

x = function() {
	if (d["a"].state.commonStore.uuid)
		return d["a"].state.commonStore.uuid;
	var e = (new Date).getTime().toString()
	  , t = e + parseInt(1e7 * Math.random().toString().slice(0, 9)).toString();
	return d["a"].commit("commonStore/setValueLocalStorage", {
		uuid: t
	}),
	t
}


  简化版
var e = (new Date).getTime().toString()
	, t = e + parseInt(1e7 * Math.random().toString().slice(0, 9)).toString();
return  t

Sign

进入方式

8429: function (e, t, n) {
	(function (i) {
			var r, a, o, s = n("7037").default;
			n("c73d"),
				n("6c57"),
				n("ace4"),
				n("d3b7"),
				n("fb2c"),
				n("907a"),
				n("9a8c"),
				n("a975"),
				n("735e"),
				n("c1ac"),
				n("d139"),
				n("3a7b"),
				n("986a"),
				n("1d02"),
				n("d5d6"),
				n("82f8"),
				n("e91f"),
				n("60bd"),
				n("5f96"),
				n("3280"),
				n("3fcc"),
				n("ca91"),
				n("25a1"),
				n("cd26"),
				n("3c5d"),
				n("2954"),
				n("649e"),
				n("219c"),
				n("170b"),
				n("b39a"),
				n("6ce5"),
				n("2834"),
				n("72f7"),
				n("4ea1"),
				n("d9e2"),
				n("25f0"),
				n("fb6a"),
				n("14d9"),
				n("a15b"),
				n("99af"),
				n("a434"),
				n("c19f"),
				n("5cc6"),
				n("fd87"),
				n("8a59"),
				n("8b09"),
				n("84c3"),
				n("143c"),
				n("cfc3"),
				n("4a9b"),
				function (n, i) {
					"object" === s(t) ? e.exports = t = i() : (a = [],
						r = i,
						o = "function" === typeof r ? r.apply(t, a) : r,
					void 0 === o || (e.exports = o))
				}(0, (function () {
						var e = e || function (e, t) {
							var r;
							if ("undefined" !== typeof window && window.crypto && (r = window.crypto),
							"undefined" !== typeof self && self.crypto && (r = self.crypto),
							"undefined" !== typeof globalThis && globalThis.crypto && (r = globalThis.crypto),
							!r && "undefined" !== typeof window && window.msCrypto && (r = window.msCrypto),
							!r && "undefined" !== typeof i && i.crypto && (r = i.crypto),
								!r)
								try {
									r = {}
								} catch (v) {
								}
							var a = function () {
								if (r) {
									if ("function" === typeof r.getRandomValues)
										try {
											return r.getRandomValues(new Uint32Array(1))[0]
										} catch (v) {
										}
									if ("function" === typeof r.randomBytes)
										try {
											return r.randomBytes(4).readInt32LE()
										} catch (v) {
										}
								}
								throw new Error("Native crypto module could not be used to get secure random number.")
							}
								, o = Object.create || function () {
								function e() {
								}

								return function (t) {
									var n;
									return e.prototype = t,
										n = new e,
										e.prototype = null,
										n
								}
							}()
								, s = {}
								, c = s.lib = {}
								, l = c.Base = function () {
								return {
									extend: function (e) {
										var t = o(this);
										return e && t.mixIn(e),
										t.hasOwnProperty("init") && this.init !== t.init || (t.init = function () {
												t.$super.init.apply(this, arguments)
											}
										),
											t.init.prototype = t,
											t.$super = this,
											t
									},
									create: function () {
										var e = this.extend();
										return e.init.apply(e, arguments),
											e
									},
									init: function () {
									},
									mixIn: function (e) {
										for (var t in e)
											e.hasOwnProperty(t) && (this[t] = e[t]);
										e.hasOwnProperty("toString") && (this.toString = e.toString)
									},
									clone: function () {
										return this.init.prototype.extend(this)
									}
								}
							}()
								, u = c.WordArray = l.extend({
								init: function (e, n) {
									e = this.words = e || [],
										this.sigBytes = n != t ? n : 4 * e.length
								},
								toString: function (e) {
									return (e || f).stringify(this)
								},
								concat: function (e) {
									var t = this.words
										, n = e.words
										, i = this.sigBytes
										, r = e.sigBytes;
									if (this.clamp(),
									i % 4)
										for (var a = 0; a < r; a++) {
											var o = n[a >>> 2] >>> 24 - a % 4 * 8 & 255;
											t[i + a >>> 2] |= o << 24 - (i + a) % 4 * 8
										}
									else
										for (var s = 0; s < r; s += 4)
											t[i + s >>> 2] = n[s >>> 2];
									return this.sigBytes += r,
										this
								},
								clamp: function () {
									var t = this.words
										, n = this.sigBytes;
									t[n >>> 2] &= 4294967295 << 32 - n % 4 * 8,
										t.length = e.ceil(n / 4)
								},
								clone: function () {
									var e = l.clone.call(this);
									return e.words = this.words.slice(0),
										e
								},
								random: function (e) {
									for (var t = [], n = 0; n < e; n += 4)
										t.push(a());
									return new u.init(t, e)
								}
							})
								, d = s.enc = {}
								, f = d.Hex = {
								stringify: function (e) {
									for (var t = e.words, n = e.sigBytes, i = [], r = 0; r < n; r++) {
										var a = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
										i.push((a >>> 4).toString(16)),
											i.push((15 & a).toString(16))
									}
									return i.join("")
								},
								parse: function (e) {
									for (var t = e.length, n = [], i = 0; i < t; i += 2)
										n[i >>> 3] |= parseInt(e.substr(i, 2), 16) << 24 - i % 8 * 4;
									return new u.init(n, t / 2)
								}
							}
								, h = d.Latin1 = {
								stringify: function (e) {
									for (var t = e.words, n = e.sigBytes, i = [], r = 0; r < n; r++) {
										var a = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
										i.push(String.fromCharCode(a))
									}
									return i.join("")
								},
								parse: function (e) {
									for (var t = e.length, n = [], i = 0; i < t; i++)
										n[i >>> 2] |= (255 & e.charCodeAt(i)) << 24 - i % 4 * 8;
									return new u.init(n, t)
								}
							}
								, A = d.Utf8 = {
								stringify: function (e) {
									try {
										return decodeURIComponent(escape(h.stringify(e)))
									} catch (t) {
										throw new Error("Malformed UTF-8 data")
									}
								},
								parse: function (e) {
									return h.parse(unescape(encodeURIComponent(e)))
								}
							}
								, p = c.BufferedBlockAlgorithm = l.extend({
								reset: function () {
									this._data = new u.init,
										this._nDataBytes = 0
								},
								_append: function (e) {
									"string" == typeof e && (e = A.parse(e)),
										this._data.concat(e),
										this._nDataBytes += e.sigBytes
								},
								_process: function (t) {
									var n, i = this._data, r = i.words, a = i.sigBytes, o = this.blockSize,
										s = 4 * o, c = a / s;
									c = t ? e.ceil(c) : e.max((0 | c) - this._minBufferSize, 0);
									var l = c * o
										, d = e.min(4 * l, a);
									if (l) {
										for (var f = 0; f < l; f += o)
											this._doProcessBlock(r, f);
										n = r.splice(0, l),
											i.sigBytes -= d
									}
									return new u.init(n, d)
								},
								clone: function () {
									var e = l.clone.call(this);
									return e._data = this._data.clone(),
										e
								},
								_minBufferSize: 0
							})
								, g = (c.Hasher = p.extend({
								cfg: l.extend(),
								init: function (e) {
									this.cfg = this.cfg.extend(e),
										this.reset()
								},
								reset: function () {
									p.reset.call(this),
										this._doReset()
								},
								update: function (e) {
									return this._append(e),
										this._process(),
										this
								},
								finalize: function (e) {
									e && this._append(e);
									var t = this._doFinalize();
									return t
								},
								blockSize: 16,
								_createHelper: function (e) {
									return function (t, n) {
										return new e.init(n).finalize(t)
									}
								},
								_createHmacHelper: function (e) {
									return function (t, n) {
										return new g.HMAC.init(e, n).finalize(t)
									}
								}
							}),
								s.algo = {});
							return s
						}(Math);
						return function (t) {
							var n = e
								, i = n.lib
								, r = i.Base
								, a = i.WordArray
								, o = n.x64 = {};
							o.Word = r.extend({
								init: function (e, t) {
									this.high = e,
										this.low = t
								}
							}),
								o.WordArray = r.extend({
									init: function (e, n) {
										e = this.words = e || [],
											this.sigBytes = n != t ? n : 8 * e.length
									},
									toX32: function () {
										for (var e = this.words, t = e.length, n = [], i = 0; i < t; i++) {
											var r = e[i];
											n.push(r.high),
												n.push(r.low)
										}
										return a.create(n, this.sigBytes)
									},
									clone: function () {
										for (var e = r.clone.call(this), t = e.words = this.words.slice(0), n = t.length, i = 0; i < n; i++)
											t[i] = t[i].clone();
										return e
									}
								})
						}(),
							function () {
								if ("function" == typeof ArrayBuffer) {
									var t = e
										, n = t.lib
										, i = n.WordArray
										, r = i.init
										, a = i.init = function (e) {
											if (e instanceof ArrayBuffer && (e = new Uint8Array(e)),
											(e instanceof Int8Array || "undefined" !== typeof Uint8ClampedArray && e instanceof Uint8ClampedArray || e instanceof Int16Array || e instanceof Uint16Array || e instanceof Int32Array || e instanceof Uint32Array || e instanceof Float32Array || e instanceof Float64Array) && (e = new Uint8Array(e.buffer, e.byteOffset, e.byteLength)),
											e instanceof Uint8Array) {
												for (var t = e.byteLength, n = [], i = 0; i < t; i++)
													n[i >>> 2] |= e[i] << 24 - i % 4 * 8;
												r.call(this, n, t)
											} else
												r.apply(this, arguments)
										}
									;
									a.prototype = i
								}
							}(),
							function () {
								var t = e
									, n = t.lib
									, i = n.WordArray
									, r = t.enc;
								r.Utf16 = r.Utf16BE = {
									stringify: function (e) {
										for (var t = e.words, n = e.sigBytes, i = [], r = 0; r < n; r += 2) {
											var a = t[r >>> 2] >>> 16 - r % 4 * 8 & 65535;
											i.push(String.fromCharCode(a))
										}
										return i.join("")
									},
									parse: function (e) {
										for (var t = e.length, n = [], r = 0; r < t; r++)
											n[r >>> 1] |= e.charCodeAt(r) << 16 - r % 2 * 16;
										return i.create(n, 2 * t)
									}
								};

								function a(e) {
									return e << 8 & 4278255360 | e >>> 8 & 16711935
								}

								r.Utf16LE = {
									stringify: function (e) {
										for (var t = e.words, n = e.sigBytes, i = [], r = 0; r < n; r += 2) {
											var o = a(t[r >>> 2] >>> 16 - r % 4 * 8 & 65535);
											i.push(String.fromCharCode(o))
										}
										return i.join("")
									},
									parse: function (e) {
										for (var t = e.length, n = [], r = 0; r < t; r++)
											n[r >>> 1] |= a(e.charCodeAt(r) << 16 - r % 2 * 16);
										return i.create(n, 2 * t)
									}
								}
							}(),
							function () {
								var t = e
									, n = t.lib
									, i = n.WordArray
									, r = t.enc;
								r.Base64 = {
									stringify: function (e) {
										var t = e.words
											, n = e.sigBytes
											, i = this._map;
										e.clamp();
										for (var r = [], a = 0; a < n; a += 3)
											for (var o = t[a >>> 2] >>> 24 - a % 4 * 8 & 255, s = t[a + 1 >>> 2] >>> 24 - (a + 1) % 4 * 8 & 255, c = t[a + 2 >>> 2] >>> 24 - (a + 2) % 4 * 8 & 255, l = o << 16 | s << 8 | c, u = 0; u < 4 && a + .75 * u < n; u++)
												r.push(i.charAt(l >>> 6 * (3 - u) & 63));
										var d = i.charAt(64);
										if (d)
											while (r.length % 4)
												r.push(d);
										return r.join("")
									},
									parse: function (e) {
										var t = e.length
											, n = this._map
											, i = this._reverseMap;
										if (!i) {
											i = this._reverseMap = [];
											for (var r = 0; r < n.length; r++)
												i[n.charCodeAt(r)] = r
										}
										var o = n.charAt(64);
										if (o) {
											var s = e.indexOf(o);
											-1 !== s && (t = s)
										}
										return a(e, t, i)
									},
									_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
								};

								function a(e, t, n) {
									for (var r = [], a = 0, o = 0; o < t; o++)
										if (o % 4) {
											var s = n[e.charCodeAt(o - 1)] << o % 4 * 2
												, c = n[e.charCodeAt(o)] >>> 6 - o % 4 * 2
												, l = s | c;
											r[a >>> 2] |= l << 24 - a % 4 * 8,
												a++
										}
									return i.create(r, a)
								}
							}(),
							function () {
								var t = e
									, n = t.lib
									, i = n.WordArray
									, r = t.enc;
								r.Base64url = {
									stringify: function (e) {
										var t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1]
											, n = e.words
											, i = e.sigBytes
											, r = t ? this._safe_map : this._map;
										e.clamp();
										for (var a = [], o = 0; o < i; o += 3)
											for (var s = n[o >>> 2] >>> 24 - o % 4 * 8 & 255, c = n[o + 1 >>> 2] >>> 24 - (o + 1) % 4 * 8 & 255, l = n[o + 2 >>> 2] >>> 24 - (o + 2) % 4 * 8 & 255, u = s << 16 | c << 8 | l, d = 0; d < 4 && o + .75 * d < i; d++)
												a.push(r.charAt(u >>> 6 * (3 - d) & 63));
										var f = r.charAt(64);
										if (f)
											while (a.length % 4)
												a.push(f);
										return a.join("")
									},
									parse: function (e) {
										var t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1]
											, n = e.length
											, i = t ? this._safe_map : this._map
											, r = this._reverseMap;
										if (!r) {
											r = this._reverseMap = [];
											for (var o = 0; o < i.length; o++)
												r[i.charCodeAt(o)] = o
										}
										var s = i.charAt(64);
										if (s) {
											var c = e.indexOf(s);
											-1 !== c && (n = c)
										}
										return a(e, n, r)
									},
									_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
									_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
								};

								function a(e, t, n) {
									for (var r = [], a = 0, o = 0; o < t; o++)
										if (o % 4) {
											var s = n[e.charCodeAt(o - 1)] << o % 4 * 2
												, c = n[e.charCodeAt(o)] >>> 6 - o % 4 * 2
												, l = s | c;
											r[a >>> 2] |= l << 24 - a % 4 * 8,
												a++
										}
									return i.create(r, a)
								}
							}(),
							function (t) {
								var n = e
									, i = n.lib
									, r = i.WordArray
									, a = i.Hasher
									, o = n.algo
									, s = [];
								(function () {
										for (var e = 0; e < 64; e++)
											s[e] = 4294967296 * t.abs(t.sin(e + 1)) | 0
									}
								)();
								var c = o.MD5 = a.extend({
									_doReset: function () {
										this._hash = new r.init([1732584193, 4023233417, 2562383102, 271733878])
									},
									_doProcessBlock: function (e, t) {
										for (var n = 0; n < 16; n++) {
											var i = t + n
												, r = e[i];
											e[i] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8)
										}
										var a = this._hash.words
											, o = e[t + 0]
											, c = e[t + 1]
											, h = e[t + 2]
											, A = e[t + 3]
											, p = e[t + 4]
											, g = e[t + 5]
											, v = e[t + 6]
											, m = e[t + 7]
											, y = e[t + 8]
											, b = e[t + 9]
											, _ = e[t + 10]
											, w = e[t + 11]
											, x = e[t + 12]
											, k = e[t + 13]
											, S = e[t + 14]
											, C = e[t + 15]
											, B = a[0]
											, L = a[1]
											, M = a[2]
											, O = a[3];
										B = l(B, L, M, O, o, 7, s[0]),
											O = l(O, B, L, M, c, 12, s[1]),
											M = l(M, O, B, L, h, 17, s[2]),
											L = l(L, M, O, B, A, 22, s[3]),
											B = l(B, L, M, O, p, 7, s[4]),
											O = l(O, B, L, M, g, 12, s[5]),
											M = l(M, O, B, L, v, 17, s[6]),
											L = l(L, M, O, B, m, 22, s[7]),
											B = l(B, L, M, O, y, 7, s[8]),
											O = l(O, B, L, M, b, 12, s[9]),
											M = l(M, O, B, L, _, 17, s[10]),
											L = l(L, M, O, B, w, 22, s[11]),
											B = l(B, L, M, O, x, 7, s[12]),
											O = l(O, B, L, M, k, 12, s[13]),
											M = l(M, O, B, L, S, 17, s[14]),
											L = l(L, M, O, B, C, 22, s[15]),
											B = u(B, L, M, O, c, 5, s[16]),
											O = u(O, B, L, M, v, 9, s[17]),
											M = u(M, O, B, L, w, 14, s[18]),
											L = u(L, M, O, B, o, 20, s[19]),
											B = u(B, L, M, O, g, 5, s[20]),
											O = u(O, B, L, M, _, 9, s[21]),
											M = u(M, O, B, L, C, 14, s[22]),
											L = u(L, M, O, B, p, 20, s[23]),
											B = u(B, L, M, O, b, 5, s[24]),
											O = u(O, B, L, M, S, 9, s[25]),
											M = u(M, O, B, L, A, 14, s[26]),
											L = u(L, M, O, B, y, 20, s[27]),
											B = u(B, L, M, O, k, 5, s[28]),
											O = u(O, B, L, M, h, 9, s[29]),
											M = u(M, O, B, L, m, 14, s[30]),
											L = u(L, M, O, B, x, 20, s[31]),
											B = d(B, L, M, O, g, 4, s[32]),
											O = d(O, B, L, M, y, 11, s[33]),
											M = d(M, O, B, L, w, 16, s[34]),
											L = d(L, M, O, B, S, 23, s[35]),
											B = d(B, L, M, O, c, 4, s[36]),
											O = d(O, B, L, M, p, 11, s[37]),
											M = d(M, O, B, L, m, 16, s[38]),
											L = d(L, M, O, B, _, 23, s[39]),
											B = d(B, L, M, O, k, 4, s[40]),
											O = d(O, B, L, M, o, 11, s[41]),
											M = d(M, O, B, L, A, 16, s[42]),
											L = d(L, M, O, B, v, 23, s[43]),
											B = d(B, L, M, O, b, 4, s[44]),
											O = d(O, B, L, M, x, 11, s[45]),
											M = d(M, O, B, L, C, 16, s[46]),
											L = d(L, M, O, B, h, 23, s[47]),
											B = f(B, L, M, O, o, 6, s[48]),
											O = f(O, B, L, M, m, 10, s[49]),
											M = f(M, O, B, L, S, 15, s[50]),
											L = f(L, M, O, B, g, 21, s[51]),
											B = f(B, L, M, O, x, 6, s[52]),
											O = f(O, B, L, M, A, 10, s[53]),
											M = f(M, O, B, L, _, 15, s[54]),
											L = f(L, M, O, B, c, 21, s[55]),
											B = f(B, L, M, O, y, 6, s[56]),
											O = f(O, B, L, M, C, 10, s[57]),
											M = f(M, O, B, L, v, 15, s[58]),
											L = f(L, M, O, B, k, 21, s[59]),
											B = f(B, L, M, O, p, 6, s[60]),
											O = f(O, B, L, M, w, 10, s[61]),
											M = f(M, O, B, L, h, 15, s[62]),
											L = f(L, M, O, B, b, 21, s[63]),
											a[0] = a[0] + B | 0,
											a[1] = a[1] + L | 0,
											a[2] = a[2] + M | 0,
											a[3] = a[3] + O | 0
									},
									_doFinalize: function () {
										var e = this._data
											, n = e.words
											, i = 8 * this._nDataBytes
											, r = 8 * e.sigBytes;
										n[r >>> 5] |= 128 << 24 - r % 32;
										var a = t.floor(i / 4294967296)
											, o = i;
										n[15 + (r + 64 >>> 9 << 4)] = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8),
											n[14 + (r + 64 >>> 9 << 4)] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8),
											e.sigBytes = 4 * (n.length + 1),
											this._process();
										for (var s = this._hash, c = s.words, l = 0; l < 4; l++) {
											var u = c[l];
											c[l] = 16711935 & (u << 8 | u >>> 24) | 4278255360 & (u << 24 | u >>> 8)
										}
										return s
									},
									clone: function () {
										var e = a.clone.call(this);
										return e._hash = this._hash.clone(),
											e
									}
								});

								function l(e, t, n, i, r, a, o) {
									var s = e + (t & n | ~t & i) + r + o;
									return (s << a | s >>> 32 - a) + t
								}

								function u(e, t, n, i, r, a, o) {
									var s = e + (t & i | n & ~i) + r + o;
									return (s << a | s >>> 32 - a) + t
								}

								function d(e, t, n, i, r, a, o) {
									var s = e + (t ^ n ^ i) + r + o;
									return (s << a | s >>> 32 - a) + t
								}

								function f(e, t, n, i, r, a, o) {
									var s = e + (n ^ (t | ~i)) + r + o;
									return (s << a | s >>> 32 - a) + t
								}

								n.MD5 = a._createHelper(c),
									n.HmacMD5 = a._createHmacHelper(c)
							}(Math),
							function () {
								var t = e
									, n = t.lib
									, i = n.WordArray
									, r = n.Hasher
									, a = t.algo
									, o = []
									, s = a.SHA1 = r.extend({
									_doReset: function () {
										this._hash = new i.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520])
									},
									_doProcessBlock: function (e, t) {
										for (var n = this._hash.words, i = n[0], r = n[1], a = n[2], s = n[3], c = n[4], l = 0; l < 80; l++) {
											if (l < 16)
												o[l] = 0 | e[t + l];
											else {
												var u = o[l - 3] ^ o[l - 8] ^ o[l - 14] ^ o[l - 16];
												o[l] = u << 1 | u >>> 31
											}
											var d = (i << 5 | i >>> 27) + c + o[l];
											d += l < 20 ? 1518500249 + (r & a | ~r & s) : l < 40 ? 1859775393 + (r ^ a ^ s) : l < 60 ? (r & a | r & s | a & s) - 1894007588 : (r ^ a ^ s) - 899497514,
												c = s,
												s = a,
												a = r << 30 | r >>> 2,
												r = i,
												i = d
										}
										n[0] = n[0] + i | 0,
											n[1] = n[1] + r | 0,
											n[2] = n[2] + a | 0,
											n[3] = n[3] + s | 0,
											n[4] = n[4] + c | 0
									},
									_doFinalize: function () {
										var e = this._data
											, t = e.words
											, n = 8 * this._nDataBytes
											, i = 8 * e.sigBytes;
										return t[i >>> 5] |= 128 << 24 - i % 32,
											t[14 + (i + 64 >>> 9 << 4)] = Math.floor(n / 4294967296),
											t[15 + (i + 64 >>> 9 << 4)] = n,
											e.sigBytes = 4 * t.length,
											this._process(),
											this._hash
									},
									clone: function () {
										var e = r.clone.call(this);
										return e._hash = this._hash.clone(),
											e
									}
								});
								t.SHA1 = r._createHelper(s),
									t.HmacSHA1 = r._createHmacHelper(s)
							}(),
							function (t) {
								var n = e
									, i = n.lib
									, r = i.WordArray
									, a = i.Hasher
									, o = n.algo
									, s = []
									, c = [];
								(function () {
										function e(e) {
											for (var n = t.sqrt(e), i = 2; i <= n; i++)
												if (!(e % i))
													return !1;
											return !0
										}

										function n(e) {
											return 4294967296 * (e - (0 | e)) | 0
										}

										var i = 2
											, r = 0;
										while (r < 64)
											e(i) && (r < 8 && (s[r] = n(t.pow(i, .5))),
												c[r] = n(t.pow(i, 1 / 3)),
												r++),
												i++
									}
								)();
								var l = []
									, u = o.SHA256 = a.extend({
									_doReset: function () {
										this._hash = new r.init(s.slice(0))
									},
									_doProcessBlock: function (e, t) {
										for (var n = this._hash.words, i = n[0], r = n[1], a = n[2], o = n[3], s = n[4], u = n[5], d = n[6], f = n[7], h = 0; h < 64; h++) {
											if (h < 16)
												l[h] = 0 | e[t + h];
											else {
												var A = l[h - 15]
													, p = (A << 25 | A >>> 7) ^ (A << 14 | A >>> 18) ^ A >>> 3
													, g = l[h - 2]
													, v = (g << 15 | g >>> 17) ^ (g << 13 | g >>> 19) ^ g >>> 10;
												l[h] = p + l[h - 7] + v + l[h - 16]
											}
											var m = s & u ^ ~s & d
												, y = i & r ^ i & a ^ r & a
												,
												b = (i << 30 | i >>> 2) ^ (i << 19 | i >>> 13) ^ (i << 10 | i >>> 22)
												,
												_ = (s << 26 | s >>> 6) ^ (s << 21 | s >>> 11) ^ (s << 7 | s >>> 25)
												, w = f + _ + m + c[h] + l[h]
												, x = b + y;
											f = d,
												d = u,
												u = s,
												s = o + w | 0,
												o = a,
												a = r,
												r = i,
												i = w + x | 0
										}
										n[0] = n[0] + i | 0,
											n[1] = n[1] + r | 0,
											n[2] = n[2] + a | 0,
											n[3] = n[3] + o | 0,
											n[4] = n[4] + s | 0,
											n[5] = n[5] + u | 0,
											n[6] = n[6] + d | 0,
											n[7] = n[7] + f | 0
									},
									_doFinalize: function () {
										var e = this._data
											, n = e.words
											, i = 8 * this._nDataBytes
											, r = 8 * e.sigBytes;
										return n[r >>> 5] |= 128 << 24 - r % 32,
											n[14 + (r + 64 >>> 9 << 4)] = t.floor(i / 4294967296),
											n[15 + (r + 64 >>> 9 << 4)] = i,
											e.sigBytes = 4 * n.length,
											this._process(),
											this._hash
									},
									clone: function () {
										var e = a.clone.call(this);
										return e._hash = this._hash.clone(),
											e
									}
								});
								n.SHA256 = a._createHelper(u),
									n.HmacSHA256 = a._createHmacHelper(u)
							}(Math),
							function () {
								var t = e
									, n = t.lib
									, i = n.WordArray
									, r = t.algo
									, a = r.SHA256
									, o = r.SHA224 = a.extend({
									_doReset: function () {
										this._hash = new i.init([3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428])
									},
									_doFinalize: function () {
										var e = a._doFinalize.call(this);
										return e.sigBytes -= 4,
											e
									}
								});
								t.SHA224 = a._createHelper(o),
									t.HmacSHA224 = a._createHmacHelper(o)
							}(),
							function () {
								var t = e
									, n = t.lib
									, i = n.Hasher
									, r = t.x64
									, a = r.Word
									, o = r.WordArray
									, s = t.algo;

								function c() {
									return a.create.apply(a, arguments)
								}

								var l = [c(1116352408, 3609767458), c(1899447441, 602891725), c(3049323471, 3964484399), c(3921009573, 2173295548), c(961987163, 4081628472), c(1508970993, 3053834265), c(2453635748, 2937671579), c(2870763221, 3664609560), c(3624381080, 2734883394), c(310598401, 1164996542), c(607225278, 1323610764), c(1426881987, 3590304994), c(1925078388, 4068182383), c(2162078206, 991336113), c(2614888103, 633803317), c(3248222580, 3479774868), c(3835390401, 2666613458), c(4022224774, 944711139), c(264347078, 2341262773), c(604807628, 2007800933), c(770255983, 1495990901), c(1249150122, 1856431235), c(1555081692, 3175218132), c(1996064986, 2198950837), c(2554220882, 3999719339), c(2821834349, 766784016), c(2952996808, 2566594879), c(3210313671, 3203337956), c(3336571891, 1034457026), c(3584528711, 2466948901), c(113926993, 3758326383), c(338241895, 168717936), c(666307205, 1188179964), c(773529912, 1546045734), c(1294757372, 1522805485), c(1396182291, 2643833823), c(1695183700, 2343527390), c(1986661051, 1014477480), c(2177026350, 1206759142), c(2456956037, 344077627), c(2730485921, 1290863460), c(2820302411, 3158454273), c(3259730800, 3505952657), c(3345764771, 106217008), c(3516065817, 3606008344), c(3600352804, 1432725776), c(4094571909, 1467031594), c(275423344, 851169720), c(430227734, 3100823752), c(506948616, 1363258195), c(659060556, 3750685593), c(883997877, 3785050280), c(958139571, 3318307427), c(1322822218, 3812723403), c(1537002063, 2003034995), c(1747873779, 3602036899), c(1955562222, 1575990012), c(2024104815, 1125592928), c(2227730452, 2716904306), c(2361852424, 442776044), c(2428436474, 593698344), c(2756734187, 3733110249), c(3204031479, 2999351573), c(3329325298, 3815920427), c(3391569614, 3928383900), c(3515267271, 566280711), c(3940187606, 3454069534), c(4118630271, 4000239992), c(116418474, 1914138554), c(174292421, 2731055270), c(289380356, 3203993006), c(460393269, 320620315), c(685471733, 587496836), c(852142971, 1086792851), c(1017036298, 365543100), c(1126000580, 2618297676), c(1288033470, 3409855158), c(1501505948, 4234509866), c(1607167915, 987167468), c(1816402316, 1246189591)]
									, u = [];
								(function () {
										for (var e = 0; e < 80; e++)
											u[e] = c()
									}
								)();
								var d = s.SHA512 = i.extend({
									_doReset: function () {
										this._hash = new o.init([new a.init(1779033703, 4089235720), new a.init(3144134277, 2227873595), new a.init(1013904242, 4271175723), new a.init(2773480762, 1595750129), new a.init(1359893119, 2917565137), new a.init(2600822924, 725511199), new a.init(528734635, 4215389547), new a.init(1541459225, 327033209)])
									},
									_doProcessBlock: function (e, t) {
										for (var n = this._hash.words, i = n[0], r = n[1], a = n[2], o = n[3], s = n[4], c = n[5], d = n[6], f = n[7], h = i.high, A = i.low, p = r.high, g = r.low, v = a.high, m = a.low, y = o.high, b = o.low, _ = s.high, w = s.low, x = c.high, k = c.low, S = d.high, C = d.low, B = f.high, L = f.low, M = h, O = A, E = p, T = g, j = v, D = m, F = y, I = b, P = _, N = w, U = x, H = k, R = S, V = C, Y = B, Q = L, z = 0; z < 80; z++) {
											var q, $, W = u[z];
											if (z < 16)
												$ = W.high = 0 | e[t + 2 * z],
													q = W.low = 0 | e[t + 2 * z + 1];
											else {
												var G = u[z - 15]
													, K = G.high
													, J = G.low
													, X = (K >>> 1 | J << 31) ^ (K >>> 8 | J << 24) ^ K >>> 7
													,
													Z = (J >>> 1 | K << 31) ^ (J >>> 8 | K << 24) ^ (J >>> 7 | K << 25)
													, ee = u[z - 2]
													, te = ee.high
													, ne = ee.low
													, ie = (te >>> 19 | ne << 13) ^ (te << 3 | ne >>> 29) ^ te >>> 6
													,
													re = (ne >>> 19 | te << 13) ^ (ne << 3 | te >>> 29) ^ (ne >>> 6 | te << 26)
													, ae = u[z - 7]
													, oe = ae.high
													, se = ae.low
													, ce = u[z - 16]
													, le = ce.high
													, ue = ce.low;
												q = Z + se,
													$ = X + oe + (q >>> 0 < Z >>> 0 ? 1 : 0),
													q += re,
													$ = $ + ie + (q >>> 0 < re >>> 0 ? 1 : 0),
													q += ue,
													$ = $ + le + (q >>> 0 < ue >>> 0 ? 1 : 0),
													W.high = $,
													W.low = q
											}
											var de = P & U ^ ~P & R
												, fe = N & H ^ ~N & V
												, he = M & E ^ M & j ^ E & j
												, Ae = O & T ^ O & D ^ T & D
												,
												pe = (M >>> 28 | O << 4) ^ (M << 30 | O >>> 2) ^ (M << 25 | O >>> 7)
												,
												ge = (O >>> 28 | M << 4) ^ (O << 30 | M >>> 2) ^ (O << 25 | M >>> 7)
												,
												ve = (P >>> 14 | N << 18) ^ (P >>> 18 | N << 14) ^ (P << 23 | N >>> 9)
												,
												me = (N >>> 14 | P << 18) ^ (N >>> 18 | P << 14) ^ (N << 23 | P >>> 9)
												, ye = l[z]
												, be = ye.high
												, _e = ye.low
												, we = Q + me
												, xe = Y + ve + (we >>> 0 < Q >>> 0 ? 1 : 0)
												, ke = (we = we + fe,
													xe = xe + de + (we >>> 0 < fe >>> 0 ? 1 : 0),
													we = we + _e,
													xe = xe + be + (we >>> 0 < _e >>> 0 ? 1 : 0),
													we = we + q,
													xe = xe + $ + (we >>> 0 < q >>> 0 ? 1 : 0),
												ge + Ae)
												, Se = pe + he + (ke >>> 0 < ge >>> 0 ? 1 : 0);
											Y = R,
												Q = V,
												R = U,
												V = H,
												U = P,
												H = N,
												N = I + we | 0,
												P = F + xe + (N >>> 0 < I >>> 0 ? 1 : 0) | 0,
												F = j,
												I = D,
												j = E,
												D = T,
												E = M,
												T = O,
												O = we + ke | 0,
												M = xe + Se + (O >>> 0 < we >>> 0 ? 1 : 0) | 0
										}
										A = i.low = A + O,
											i.high = h + M + (A >>> 0 < O >>> 0 ? 1 : 0),
											g = r.low = g + T,
											r.high = p + E + (g >>> 0 < T >>> 0 ? 1 : 0),
											m = a.low = m + D,
											a.high = v + j + (m >>> 0 < D >>> 0 ? 1 : 0),
											b = o.low = b + I,
											o.high = y + F + (b >>> 0 < I >>> 0 ? 1 : 0),
											w = s.low = w + N,
											s.high = _ + P + (w >>> 0 < N >>> 0 ? 1 : 0),
											k = c.low = k + H,
											c.high = x + U + (k >>> 0 < H >>> 0 ? 1 : 0),
											C = d.low = C + V,
											d.high = S + R + (C >>> 0 < V >>> 0 ? 1 : 0),
											L = f.low = L + Q,
											f.high = B + Y + (L >>> 0 < Q >>> 0 ? 1 : 0)
									},
									_doFinalize: function () {
										var e = this._data
											, t = e.words
											, n = 8 * this._nDataBytes
											, i = 8 * e.sigBytes;
										t[i >>> 5] |= 128 << 24 - i % 32,
											t[30 + (i + 128 >>> 10 << 5)] = Math.floor(n / 4294967296),
											t[31 + (i + 128 >>> 10 << 5)] = n,
											e.sigBytes = 4 * t.length,
											this._process();
										var r = this._hash.toX32();
										return r
									},
									clone: function () {
										var e = i.clone.call(this);
										return e._hash = this._hash.clone(),
											e
									},
									blockSize: 32
								});
								t.SHA512 = i._createHelper(d),
									t.HmacSHA512 = i._createHmacHelper(d)
							}(),
							function () {
								var t = e
									, n = t.x64
									, i = n.Word
									, r = n.WordArray
									, a = t.algo
									, o = a.SHA512
									, s = a.SHA384 = o.extend({
									_doReset: function () {
										this._hash = new r.init([new i.init(3418070365, 3238371032), new i.init(1654270250, 914150663), new i.init(2438529370, 812702999), new i.init(355462360, 4144912697), new i.init(1731405415, 4290775857), new i.init(2394180231, 1750603025), new i.init(3675008525, 1694076839), new i.init(1203062813, 3204075428)])
									},
									_doFinalize: function () {
										var e = o._doFinalize.call(this);
										return e.sigBytes -= 16,
											e
									}
								});
								t.SHA384 = o._createHelper(s),
									t.HmacSHA384 = o._createHmacHelper(s)
							}(),
							function (t) {
								var n = e
									, i = n.lib
									, r = i.WordArray
									, a = i.Hasher
									, o = n.x64
									, s = o.Word
									, c = n.algo
									, l = []
									, u = []
									, d = [];
								(function () {
										for (var e = 1, t = 0, n = 0; n < 24; n++) {
											l[e + 5 * t] = (n + 1) * (n + 2) / 2 % 64;
											var i = t % 5
												, r = (2 * e + 3 * t) % 5;
											e = i,
												t = r
										}
										for (e = 0; e < 5; e++)
											for (t = 0; t < 5; t++)
												u[e + 5 * t] = t + (2 * e + 3 * t) % 5 * 5;
										for (var a = 1, o = 0; o < 24; o++) {
											for (var c = 0, f = 0, h = 0; h < 7; h++) {
												if (1 & a) {
													var A = (1 << h) - 1;
													A < 32 ? f ^= 1 << A : c ^= 1 << A - 32
												}
												128 & a ? a = a << 1 ^ 113 : a <<= 1
											}
											d[o] = s.create(c, f)
										}
									}
								)();
								var f = [];
								(function () {
										for (var e = 0; e < 25; e++)
											f[e] = s.create()
									}
								)();
								var h = c.SHA3 = a.extend({
									cfg: a.cfg.extend({
										outputLength: 512
									}),
									_doReset: function () {
										for (var e = this._state = [], t = 0; t < 25; t++)
											e[t] = new s.init;
										this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32
									},
									_doProcessBlock: function (e, t) {
										for (var n = this._state, i = this.blockSize / 2, r = 0; r < i; r++) {
											var a = e[t + 2 * r]
												, o = e[t + 2 * r + 1];
											a = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8),
												o = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8);
											var s = n[r];
											s.high ^= o,
												s.low ^= a
										}
										for (var c = 0; c < 24; c++) {
											for (var h = 0; h < 5; h++) {
												for (var A = 0, p = 0, g = 0; g < 5; g++) {
													s = n[h + 5 * g];
													A ^= s.high,
														p ^= s.low
												}
												var v = f[h];
												v.high = A,
													v.low = p
											}
											for (h = 0; h < 5; h++) {
												var m = f[(h + 4) % 5]
													, y = f[(h + 1) % 5]
													, b = y.high
													, _ = y.low;
												for (A = m.high ^ (b << 1 | _ >>> 31),
														 p = m.low ^ (_ << 1 | b >>> 31),
														 g = 0; g < 5; g++) {
													s = n[h + 5 * g];
													s.high ^= A,
														s.low ^= p
												}
											}
											for (var w = 1; w < 25; w++) {
												s = n[w];
												var x = s.high
													, k = s.low
													, S = l[w];
												S < 32 ? (A = x << S | k >>> 32 - S,
													p = k << S | x >>> 32 - S) : (A = k << S - 32 | x >>> 64 - S,
													p = x << S - 32 | k >>> 64 - S);
												var C = f[u[w]];
												C.high = A,
													C.low = p
											}
											var B = f[0]
												, L = n[0];
											B.high = L.high,
												B.low = L.low;
											for (h = 0; h < 5; h++)
												for (g = 0; g < 5; g++) {
													w = h + 5 * g,
														s = n[w];
													var M = f[w]
														, O = f[(h + 1) % 5 + 5 * g]
														, E = f[(h + 2) % 5 + 5 * g];
													s.high = M.high ^ ~O.high & E.high,
														s.low = M.low ^ ~O.low & E.low
												}
											s = n[0];
											var T = d[c];
											s.high ^= T.high,
												s.low ^= T.low
										}
									},
									_doFinalize: function () {
										var e = this._data
											, n = e.words
											, i = (this._nDataBytes,
										8 * e.sigBytes)
											, a = 32 * this.blockSize;
										n[i >>> 5] |= 1 << 24 - i % 32,
											n[(t.ceil((i + 1) / a) * a >>> 5) - 1] |= 128,
											e.sigBytes = 4 * n.length,
											this._process();
										for (var o = this._state, s = this.cfg.outputLength / 8, c = s / 8, l = [], u = 0; u < c; u++) {
											var d = o[u]
												, f = d.high
												, h = d.low;
											f = 16711935 & (f << 8 | f >>> 24) | 4278255360 & (f << 24 | f >>> 8),
												h = 16711935 & (h << 8 | h >>> 24) | 4278255360 & (h << 24 | h >>> 8),
												l.push(h),
												l.push(f)
										}
										return new r.init(l, s)
									},
									clone: function () {
										for (var e = a.clone.call(this), t = e._state = this._state.slice(0), n = 0; n < 25; n++)
											t[n] = t[n].clone();
										return e
									}
								});
								n.SHA3 = a._createHelper(h),
									n.HmacSHA3 = a._createHmacHelper(h)
							}(Math),
							/** @preserve
							 (c) 2012 by Cédric Mesnil. All rights reserved.
							 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
							 - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
							 - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
							 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
							 */
							function (t) {
								var n = e
									, i = n.lib
									, r = i.WordArray
									, a = i.Hasher
									, o = n.algo
									,
									s = r.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])
									,
									c = r.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])
									,
									l = r.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])
									,
									u = r.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])
									, d = r.create([0, 1518500249, 1859775393, 2400959708, 2840853838])
									, f = r.create([1352829926, 1548603684, 1836072691, 2053994217, 0])
									, h = o.RIPEMD160 = a.extend({
										_doReset: function () {
											this._hash = r.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520])
										},
										_doProcessBlock: function (e, t) {
											for (var n = 0; n < 16; n++) {
												var i = t + n
													, r = e[i];
												e[i] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8)
											}
											var a, o, h, b, _, w, x, k, S, C, B, L = this._hash.words, M = d.words,
												O = f.words, E = s.words, T = c.words, j = l.words, D = u.words;
											w = a = L[0],
												x = o = L[1],
												k = h = L[2],
												S = b = L[3],
												C = _ = L[4];
											for (n = 0; n < 80; n += 1)
												B = a + e[t + E[n]] | 0,
													B += n < 16 ? A(o, h, b) + M[0] : n < 32 ? p(o, h, b) + M[1] : n < 48 ? g(o, h, b) + M[2] : n < 64 ? v(o, h, b) + M[3] : m(o, h, b) + M[4],
													B |= 0,
													B = y(B, j[n]),
													B = B + _ | 0,
													a = _,
													_ = b,
													b = y(h, 10),
													h = o,
													o = B,
													B = w + e[t + T[n]] | 0,
													B += n < 16 ? m(x, k, S) + O[0] : n < 32 ? v(x, k, S) + O[1] : n < 48 ? g(x, k, S) + O[2] : n < 64 ? p(x, k, S) + O[3] : A(x, k, S) + O[4],
													B |= 0,
													B = y(B, D[n]),
													B = B + C | 0,
													w = C,
													C = S,
													S = y(k, 10),
													k = x,
													x = B;
											B = L[1] + h + S | 0,
												L[1] = L[2] + b + C | 0,
												L[2] = L[3] + _ + w | 0,
												L[3] = L[4] + a + x | 0,
												L[4] = L[0] + o + k | 0,
												L[0] = B
										},
										_doFinalize: function () {
											var e = this._data
												, t = e.words
												, n = 8 * this._nDataBytes
												, i = 8 * e.sigBytes;
											t[i >>> 5] |= 128 << 24 - i % 32,
												t[14 + (i + 64 >>> 9 << 4)] = 16711935 & (n << 8 | n >>> 24) | 4278255360 & (n << 24 | n >>> 8),
												e.sigBytes = 4 * (t.length + 1),
												this._process();
											for (var r = this._hash, a = r.words, o = 0; o < 5; o++) {
												var s = a[o];
												a[o] = 16711935 & (s << 8 | s >>> 24) | 4278255360 & (s << 24 | s >>> 8)
											}
											return r
										},
										clone: function () {
											var e = a.clone.call(this);
											return e._hash = this._hash.clone(),
												e
										}
									});

								function A(e, t, n) {
									return e ^ t ^ n
								}

								function p(e, t, n) {
									return e & t | ~e & n
								}

								function g(e, t, n) {
									return (e | ~t) ^ n
								}

								function v(e, t, n) {
									return e & n | t & ~n
								}

								function m(e, t, n) {
									return e ^ (t | ~n)
								}

								function y(e, t) {
									return e << t | e >>> 32 - t
								}

								n.RIPEMD160 = a._createHelper(h),
									n.HmacRIPEMD160 = a._createHmacHelper(h)
							}(Math),
							function () {
								var t = e
									, n = t.lib
									, i = n.Base
									, r = t.enc
									, a = r.Utf8
									, o = t.algo;
								o.HMAC = i.extend({
									init: function (e, t) {
										e = this._hasher = new e.init,
										"string" == typeof t && (t = a.parse(t));
										var n = e.blockSize
											, i = 4 * n;
										t.sigBytes > i && (t = e.finalize(t)),
											t.clamp();
										for (var r = this._oKey = t.clone(), o = this._iKey = t.clone(), s = r.words, c = o.words, l = 0; l < n; l++)
											s[l] ^= 1549556828,
												c[l] ^= 909522486;
										r.sigBytes = o.sigBytes = i,
											this.reset()
									},
									reset: function () {
										var e = this._hasher;
										e.reset(),
											e.update(this._iKey)
									},
									update: function (e) {
										return this._hasher.update(e),
											this
									},
									finalize: function (e) {
										var t = this._hasher
											, n = t.finalize(e);
										t.reset();
										var i = t.finalize(this._oKey.clone().concat(n));
										return i
									}
								})
							}(),
							function () {
								var t = e
									, n = t.lib
									, i = n.Base
									, r = n.WordArray
									, a = t.algo
									, o = a.SHA1
									, s = a.HMAC
									, c = a.PBKDF2 = i.extend({
									cfg: i.extend({
										keySize: 4,
										hasher: o,
										iterations: 1
									}),
									init: function (e) {
										this.cfg = this.cfg.extend(e)
									},
									compute: function (e, t) {
										var n = this.cfg
											, i = s.create(n.hasher, e)
											, a = r.create()
											, o = r.create([1])
											, c = a.words
											, l = o.words
											, u = n.keySize
											, d = n.iterations;
										while (c.length < u) {
											var f = i.update(t).finalize(o);
											i.reset();
											for (var h = f.words, A = h.length, p = f, g = 1; g < d; g++) {
												p = i.finalize(p),
													i.reset();
												for (var v = p.words, m = 0; m < A; m++)
													h[m] ^= v[m]
											}
											a.concat(f),
												l[0]++
										}
										return a.sigBytes = 4 * u,
											a
									}
								});
								t.PBKDF2 = function (e, t, n) {
									return c.create(n).compute(e, t)
								}
							}(),
							function () {
								var t = e
									, n = t.lib
									, i = n.Base
									, r = n.WordArray
									, a = t.algo
									, o = a.MD5
									, s = a.EvpKDF = i.extend({
									cfg: i.extend({
										keySize: 4,
										hasher: o,
										iterations: 1
									}),
									init: function (e) {
										this.cfg = this.cfg.extend(e)
									},
									compute: function (e, t) {
										var n, i = this.cfg, a = i.hasher.create(), o = r.create(), s = o.words,
											c = i.keySize, l = i.iterations;
										while (s.length < c) {
											n && a.update(n),
												n = a.update(e).finalize(t),
												a.reset();
											for (var u = 1; u < l; u++)
												n = a.finalize(n),
													a.reset();
											o.concat(n)
										}
										return o.sigBytes = 4 * c,
											o
									}
								});
								t.EvpKDF = function (e, t, n) {
									return s.create(n).compute(e, t)
								}
							}(),
						e.lib.Cipher || function (t) {
							var n = e
								, i = n.lib
								, r = i.Base
								, a = i.WordArray
								, o = i.BufferedBlockAlgorithm
								, s = n.enc
								, c = (s.Utf8,
								s.Base64)
								, l = n.algo
								, u = l.EvpKDF
								, d = i.Cipher = o.extend({
								cfg: r.extend(),
								createEncryptor: function (e, t) {
									return this.create(this._ENC_XFORM_MODE, e, t)
								},
								createDecryptor: function (e, t) {
									return this.create(this._DEC_XFORM_MODE, e, t)
								},
								init: function (e, t, n) {
									this.cfg = this.cfg.extend(n),
										this._xformMode = e,
										this._key = t,
										this.reset()
								},
								reset: function () {
									o.reset.call(this),
										this._doReset()
								},
								process: function (e) {
									return this._append(e),
										this._process()
								},
								finalize: function (e) {
									e && this._append(e);
									var t = this._doFinalize();
									return t
								},
								keySize: 4,
								ivSize: 4,
								_ENC_XFORM_MODE: 1,
								_DEC_XFORM_MODE: 2,
								_createHelper: function () {
									function e(e) {
										return "string" == typeof e ? x : b
									}

									return function (t) {
										return {
											encrypt: function (n, i, r) {
												return e(i).encrypt(t, n, i, r)
											},
											decrypt: function (n, i, r) {
												return e(i).decrypt(t, n, i, r)
											}
										}
									}
								}()
							})
								, f = (i.StreamCipher = d.extend({
								_doFinalize: function () {
									var e = this._process(!0);
									return e
								},
								blockSize: 1
							}),
								n.mode = {})
								, h = i.BlockCipherMode = r.extend({
								createEncryptor: function (e, t) {
									return this.Encryptor.create(e, t)
								},
								createDecryptor: function (e, t) {
									return this.Decryptor.create(e, t)
								},
								init: function (e, t) {
									this._cipher = e,
										this._iv = t
								}
							})
								, A = f.CBC = function () {
								var e = h.extend();

								function n(e, n, i) {
									var r, a = this._iv;
									a ? (r = a,
										this._iv = t) : r = this._prevBlock;
									for (var o = 0; o < i; o++)
										e[n + o] ^= r[o]
								}

								return e.Encryptor = e.extend({
									processBlock: function (e, t) {
										var i = this._cipher
											, r = i.blockSize;
										n.call(this, e, t, r),
											i.encryptBlock(e, t),
											this._prevBlock = e.slice(t, t + r)
									}
								}),
									e.Decryptor = e.extend({
										processBlock: function (e, t) {
											var i = this._cipher
												, r = i.blockSize
												, a = e.slice(t, t + r);
											i.decryptBlock(e, t),
												n.call(this, e, t, r),
												this._prevBlock = a
										}
									}),
									e
							}()
								, p = n.pad = {}
								, g = p.Pkcs7 = {
								pad: function (e, t) {
									for (var n = 4 * t, i = n - e.sigBytes % n, r = i << 24 | i << 16 | i << 8 | i, o = [], s = 0; s < i; s += 4)
										o.push(r);
									var c = a.create(o, i);
									e.concat(c)
								},
								unpad: function (e) {
									var t = 255 & e.words[e.sigBytes - 1 >>> 2];
									e.sigBytes -= t
								}
							}
								, v = (i.BlockCipher = d.extend({
								cfg: d.cfg.extend({
									mode: A,
									padding: g
								}),
								reset: function () {
									var e;
									d.reset.call(this);
									var t = this.cfg
										, n = t.iv
										, i = t.mode;
									this._xformMode == this._ENC_XFORM_MODE ? e = i.createEncryptor : (e = i.createDecryptor,
										this._minBufferSize = 1),
										this._mode && this._mode.__creator == e ? this._mode.init(this, n && n.words) : (this._mode = e.call(i, this, n && n.words),
											this._mode.__creator = e)
								},
								_doProcessBlock: function (e, t) {
									this._mode.processBlock(e, t)
								},
								_doFinalize: function () {
									var e, t = this.cfg.padding;
									return this._xformMode == this._ENC_XFORM_MODE ? (t.pad(this._data, this.blockSize),
										e = this._process(!0)) : (e = this._process(!0),
										t.unpad(e)),
										e
								},
								blockSize: 4
							}),
								i.CipherParams = r.extend({
									init: function (e) {
										this.mixIn(e)
									},
									toString: function (e) {
										return (e || this.formatter).stringify(this)
									}
								}))
								, m = n.format = {}
								, y = m.OpenSSL = {
								stringify: function (e) {
									var t, n = e.ciphertext, i = e.salt;
									return t = i ? a.create([1398893684, 1701076831]).concat(i).concat(n) : n,
										t.toString(c)
								},
								parse: function (e) {
									var t, n = c.parse(e), i = n.words;
									return 1398893684 == i[0] && 1701076831 == i[1] && (t = a.create(i.slice(2, 4)),
										i.splice(0, 4),
										n.sigBytes -= 16),
										v.create({
											ciphertext: n,
											salt: t
										})
								}
							}
								, b = i.SerializableCipher = r.extend({
								cfg: r.extend({
									format: y
								}),
								encrypt: function (e, t, n, i) {
									i = this.cfg.extend(i);
									var r = e.createEncryptor(n, i)
										, a = r.finalize(t)
										, o = r.cfg;
									return v.create({
										ciphertext: a,
										key: n,
										iv: o.iv,
										algorithm: e,
										mode: o.mode,
										padding: o.padding,
										blockSize: e.blockSize,
										formatter: i.format
									})
								},
								decrypt: function (e, t, n, i) {
									i = this.cfg.extend(i),
										t = this._parse(t, i.format);
									var r = e.createDecryptor(n, i).finalize(t.ciphertext);
									return r
								},
								_parse: function (e, t) {
									return "string" == typeof e ? t.parse(e, this) : e
								}
							})
								, _ = n.kdf = {}
								, w = _.OpenSSL = {
								execute: function (e, t, n, i) {
									i || (i = a.random(8));
									var r = u.create({
										keySize: t + n
									}).compute(e, i)
										, o = a.create(r.words.slice(t), 4 * n);
									return r.sigBytes = 4 * t,
										v.create({
											key: r,
											iv: o,
											salt: i
										})
								}
							}
								, x = i.PasswordBasedCipher = b.extend({
								cfg: b.cfg.extend({
									kdf: w
								}),
								encrypt: function (e, t, n, i) {
									i = this.cfg.extend(i);
									var r = i.kdf.execute(n, e.keySize, e.ivSize);
									i.iv = r.iv;
									var a = b.encrypt.call(this, e, t, r.key, i);
									return a.mixIn(r),
										a
								},
								decrypt: function (e, t, n, i) {
									i = this.cfg.extend(i),
										t = this._parse(t, i.format);
									var r = i.kdf.execute(n, e.keySize, e.ivSize, t.salt);
									i.iv = r.iv;
									var a = b.decrypt.call(this, e, t, r.key, i);
									return a
								}
							})
						}(),
							e.mode.CFB = function () {
								var t = e.lib.BlockCipherMode.extend();

								function n(e, t, n, i) {
									var r, a = this._iv;
									a ? (r = a.slice(0),
										this._iv = void 0) : r = this._prevBlock,
										i.encryptBlock(r, 0);
									for (var o = 0; o < n; o++)
										e[t + o] ^= r[o]
								}

								return t.Encryptor = t.extend({
									processBlock: function (e, t) {
										var i = this._cipher
											, r = i.blockSize;
										n.call(this, e, t, r, i),
											this._prevBlock = e.slice(t, t + r)
									}
								}),
									t.Decryptor = t.extend({
										processBlock: function (e, t) {
											var i = this._cipher
												, r = i.blockSize
												, a = e.slice(t, t + r);
											n.call(this, e, t, r, i),
												this._prevBlock = a
										}
									}),
									t
							}(),
							e.mode.CTR = function () {
								var t = e.lib.BlockCipherMode.extend()
									, n = t.Encryptor = t.extend({
									processBlock: function (e, t) {
										var n = this._cipher
											, i = n.blockSize
											, r = this._iv
											, a = this._counter;
										r && (a = this._counter = r.slice(0),
											this._iv = void 0);
										var o = a.slice(0);
										n.encryptBlock(o, 0),
											a[i - 1] = a[i - 1] + 1 | 0;
										for (var s = 0; s < i; s++)
											e[t + s] ^= o[s]
									}
								});
								return t.Decryptor = n,
									t
							}(),
							/** @preserve
							 * Counter block mode compatible with  Dr Brian Gladman fileenc.c
							 * derived from CryptoJS.mode.CTR
							 * Jan Hruby jhruby.web@gmail.com
							 */
							e.mode.CTRGladman = function () {
								var t = e.lib.BlockCipherMode.extend();

								function n(e) {
									if (255 === (e >> 24 & 255)) {
										var t = e >> 16 & 255
											, n = e >> 8 & 255
											, i = 255 & e;
										255 === t ? (t = 0,
											255 === n ? (n = 0,
												255 === i ? i = 0 : ++i) : ++n) : ++t,
											e = 0,
											e += t << 16,
											e += n << 8,
											e += i
									} else
										e += 1 << 24;
									return e
								}

								function i(e) {
									return 0 === (e[0] = n(e[0])) && (e[1] = n(e[1])),
										e
								}

								var r = t.Encryptor = t.extend({
									processBlock: function (e, t) {
										var n = this._cipher
											, r = n.blockSize
											, a = this._iv
											, o = this._counter;
										a && (o = this._counter = a.slice(0),
											this._iv = void 0),
											i(o);
										var s = o.slice(0);
										n.encryptBlock(s, 0);
										for (var c = 0; 
上一篇:Linux如何redis清空缓存


下一篇:新质生产力实践,我用chatgpt开发网站