webpack 学习
1. 开始学习webpack :
找到入口 删除无关函数
找到重要函数 放在 函数调用的位置
运行调试
1.https://www.gm99.com/ 登录参数 password封装 2022/7/22

window = global; navigator = {}; var _n; !function (t) { function e(s) { var i = {}; if (i[s]) return i[s].exports; var n = i[s] = { exports: {}, id: s, loaded: !1 }; return t[s].call(n.exports, n, n.exports, e), n.loaded = !0, n.exports } _n = e; }({ jiemi: function (t, e, i) { var s; s = function (t, e, s) { function n() { "undefined" != typeof r && (this.jsencrypt = new r.JSEncrypt, this.jsencrypt.setPublicKey("-----BEGIN PUBLIC KEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDq04c6My441Gj0UFKgrqUhAUg+kQZeUeWSPlAU9fr4HBPDldAeqzx1UR92KJHuQh/zs1HOamE2dgX9z/2oXcJaqoRIA/FXysx+z2YlJkSk8XQLcQ8EBOkp//MZrixam7lCYpNOjadQBb2Ot0U/Ky+jF2p+Ie8gSZ7/u+Wnr5grywIDAQAB-----END PUBLIC KEY-----")) } var r = i('jsencrypt'); n.prototype.encode = function (t, e) { var i = e ? e + "|" + t : t; return encodeURIComponent(this.jsencrypt.encrypt(i)) } , s.exports = n } .call(e, i, e, t), !(void 0 !== s && (t.exports = s)) }, jsencrypt: function (t, e, i) { var s, n, r, s; s = function (t, e, i) { /*! JSEncrypt v2.3.1 | //npmcdn.com/jsencrypt@2.3.1/LICENSE.txt */ !function (t, o) { r = [e], n = o, s = "function" == typeof n ? n.apply(e, r) : n, !(void 0 !== s && (i.exports = s)) }(this, function (t) { function e(t, e, i) { null != t && ("number" == typeof t ? this.fromNumber(t, e, i) : null == e && "string" != typeof t ? this.fromString(t, 256) : this.fromString(t, e)) } function i() { return new e(null) } function s(t, e, i, s, n, r) { for (; --r >= 0;) { var o = e * this[t++] + i[s] + n; n = Math.floor(o / 67108864), i[s++] = 67108863 & o } return n } function n(t, e, i, s, n, r) { for (var o = 32767 & e, a = e >> 15; --r >= 0;) { var c = 32767 & this[t] , l = this[t++] >> 15 , u = a * c + l * o; c = o * c + ((32767 & u) << 15) + i[s] + (1073741823 & n), n = (c >>> 30) + (u >>> 15) + a * l + (n >>> 30), i[s++] = 1073741823 & c } return n } function r(t, e, i, s, n, r) { for (var o = 16383 & e, a = e >> 14; --r >= 0;) { var c = 16383 & this[t] , l = this[t++] >> 14 , u = a * c + l * o; c = o * c + ((16383 & u) << 14) + i[s] + n, n = (c >> 28) + (u >> 14) + a * l, i[s++] = 268435455 & c } return n } function o(t) { return Te.charAt(t) } function a(t, e) { var i = Ie[t.charCodeAt(e)]; return null == i ? -1 : i } function c(t) { for (var e = this.t - 1; e >= 0; --e) t[e] = this[e]; t.t = this.t, t.s = this.s } function l(t) { this.t = 1, this.s = 0 > t ? -1 : 0, t > 0 ? this[0] = t : -1 > t ? this[0] = t + this.DV : this.t = 0 } function u(t) { var e = i(); return e.fromInt(t), e } function p(t, i) { var s; if (16 == i) s = 4; else if (8 == i) s = 3; else if (256 == i) s = 8; else if (2 == i) s = 1; else if (32 == i) s = 5; else { if (4 != i) return void this.fromRadix(t, i); s = 2 } this.t = 0, this.s = 0; for (var n = t.length, r = !1, o = 0; --n >= 0;) { var c = 8 == s ? 255 & t[n] : a(t, n); 0 > c ? "-" == t.charAt(n) && (r = !0) : (r = !1, 0 == o ? this[this.t++] = c : o + s > this.DB ? (this[this.t - 1] |= (c & (1 << this.DB - o) - 1) << o, this[this.t++] = c >> this.DB - o) : this[this.t - 1] |= c << o, o += s, o >= this.DB && (o -= this.DB)) } 8 == s && 0 != (128 & t[0]) && (this.s = -1, o > 0 && (this[this.t - 1] |= (1 << this.DB - o) - 1 << o)), this.clamp(), r && e.ZERO.subTo(this, this) } function d() { for (var t = this.s & this.DM; this.t > 0 && this[this.t - 1] == t;) --this.t } function h(t) { if (this.s < 0) return "-" + this.negate().toString(t); var e; if (16 == t) e = 4; else if (8 == t) e = 3; else if (2 == t) e = 1; else if (32 == t) e = 5; else { if (4 != t) return this.toRadix(t); e = 2 } var i, s = (1 << e) - 1, n = !1, r = "", a = this.t, c = this.DB - a * this.DB % e; if (a-- > 0) for (c < this.DB && (i = this[a] >> c) > 0 && (n = !0, r = o(i)); a >= 0;) e > c ? (i = (this[a] & (1 << c) - 1) << e - c, i |= this[--a] >> (c += this.DB - e)) : (i = this[a] >> (c -= e) & s, 0 >= c && (c += this.DB, --a)), i > 0 && (n = !0), n && (r += o(i)); return n ? r : "0" } function f() { var t = i(); return e.ZERO.subTo(this, t), t } function g() { return this.s < 0 ? this.negate() : this } function m(t) { var e = this.s - t.s; if (0 != e) return e; var i = this.t; if (e = i - t.t, 0 != e) return this.s < 0 ? -e : e; for (; --i >= 0;) if (0 != (e = this[i] - t[i])) return e; return 0 } function _(t) { var e, i = 1; return 0 != (e = t >>> 16) && (t = e, i += 16), 0 != (e = t >> 8) && (t = e, i += 8), 0 != (e = t >> 4) && (t = e, i += 4), 0 != (e = t >> 2) && (t = e, i += 2), 0 != (e = t >> 1) && (t = e, i += 1), i } function b() { return this.t <= 0 ? 0 : this.DB * (this.t - 1) + _(this[this.t - 1] ^ this.s & this.DM) } function y(t, e) { var i; for (i = this.t - 1; i >= 0; --i) e[i + t] = this[i]; for (i = t - 1; i >= 0; --i) e[i] = 0; e.t = this.t + t, e.s = this.s } function w(t, e) { for (var i = t; i < this.t; ++i) e[i - t] = this[i]; e.t = Math.max(this.t - t, 0), e.s = this.s } function k(t, e) { var i, s = t % this.DB, n = this.DB - s, r = (1 << n) - 1, o = Math.floor(t / this.DB), a = this.s << s & this.DM; for (i = this.t - 1; i >= 0; --i) e[i + o + 1] = this[i] >> n | a, a = (this[i] & r) << s; for (i = o - 1; i >= 0; --i) e[i] = 0; e[o] = a, e.t = this.t + o + 1, e.s = this.s, e.clamp() } function x(t, e) { e.s = this.s; var i = Math.floor(t / this.DB); if (i >= this.t) return void (e.t = 0); var s = t % this.DB , n = this.DB - s , r = (1 << s) - 1; e[0] = this[i] >> s; for (var o = i + 1; o < this.t; ++o) e[o - i - 1] |= (this[o] & r) << n, e[o - i] = this[o] >> s; s > 0 && (e[this.t - i - 1] |= (this.s & r) << n), e.t = this.t - i, e.clamp() } function D(t, e) { for (var i = 0, s = 0, n = Math.min(t.t, this.t); n > i;) s += this[i] - t[i], e[i++] = s & this.DM, s >>= this.DB; if (t.t < this.t) { for (s -= t.s; i < this.t;) s += this[i], e[i++] = s & this.DM, s >>= this.DB; s += this.s } else { for (s += this.s; i < t.t;) s -= t[i], e[i++] = s & this.DM, s >>= this.DB; s -= t.s } e.s = 0 > s ? -1 : 0, -1 > s ? e[i++] = this.DV + s : s > 0 && (e[i++] = s), e.t = i, e.clamp() } function S(t, i) { var s = this.abs() , n = t.abs() , r = s.t; for (i.t = r + n.t; --r >= 0;) i[r] = 0; for (r = 0; r < n.t; ++r) i[r + s.t] = s.am(0, n[r], i, r, 0, s.t); i.s = 0, i.clamp(), this.s != t.s && e.ZERO.subTo(i, i) } function C(t) { for (var e = this.abs(), i = t.t = 2 * e.t; --i >= 0;) t[i] = 0; for (i = 0; i < e.t - 1; ++i) { var s = e.am(i, e[i], t, 2 * i, 0, 1); (t[i + e.t] += e.am(i + 1, 2 * e[i], t, 2 * i + 1, s, e.t - i - 1)) >= e.DV && (t[i + e.t] -= e.DV, t[i + e.t + 1] = 1) } t.t > 0 && (t[t.t - 1] += e.am(i, e[i], t, 2 * i, 0, 1)), t.s = 0, t.clamp() } function T(t, s, n) { var r = t.abs(); if (!(r.t <= 0)) { var o = this.abs(); if (o.t < r.t) return null != s && s.fromInt(0), void (null != n && this.copyTo(n)); null == n && (n = i()); var a = i() , c = this.s , l = t.s , u = this.DB - _(r[r.t - 1]); u > 0 ? (r.lShiftTo(u, a), o.lShiftTo(u, n)) : (r.copyTo(a), o.copyTo(n)); var p = a.t , d = a[p - 1]; if (0 != d) { var h = d * (1 << this.F1) + (p > 1 ? a[p - 2] >> this.F2 : 0) , f = this.FV / h , g = (1 << this.F1) / h , m = 1 << this.F2 , v = n.t , b = v - p , y = null == s ? i() : s; for (a.dlShiftTo(b, y), n.compareTo(y) >= 0 && (n[n.t++] = 1, n.subTo(y, n)), e.ONE.dlShiftTo(p, y), y.subTo(a, a); a.t < p;) a[a.t++] = 0; for (; --b >= 0;) { var w = n[--v] == d ? this.DM : Math.floor(n[v] * f + (n[v - 1] + m) * g); if ((n[v] += a.am(0, w, n, b, 0, p)) < w) for (a.dlShiftTo(b, y), n.subTo(y, n); n[v] < --w;) n.subTo(y, n) } null != s && (n.drShiftTo(p, s), c != l && e.ZERO.subTo(s, s)), n.t = p, n.clamp(), u > 0 && n.rShiftTo(u, n), 0 > c && e.ZERO.subTo(n, n) } } } function I(t) { var s = i(); return this.abs().divRemTo(t, null, s), this.s < 0 && s.compareTo(e.ZERO) > 0 && t.subTo(s, s), s } function $(t) { this.m = t } function P(t) { return t.s < 0 || t.compareTo(this.m) >= 0 ? t.mod(this.m) : t } function R(t) { return t } function A(t) { t.divRemTo(this.m, null, t) } function E(t, e, i) { t.multiplyTo(e, i), this.reduce(i) } function M(t, e) { t.squareTo(e), this.reduce(e) } function N() { if (this.t < 1) return 0; var t = this[0]; if (0 == (1 & t)) return 0; var e = 3 & t; return e = e * (2 - (15 & t) * e) & 15, e = e * (2 - (255 & t) * e) & 255, e = e * (2 - ((65535 & t) * e & 65535)) & 65535, e = e * (2 - t * e % this.DV) % this.DV, e > 0 ? this.DV - e : -e } function O(t) { this.m = t, this.mp = t.invDigit(), this.mpl = 32767 & this.mp, this.mph = this.mp >> 15, this.um = (1 << t.DB - 15) - 1, this.mt2 = 2 * t.t } function B(t) { var s = i(); return t.abs().dlShiftTo(this.m.t, s), s.divRemTo(this.m, null, s), t.s < 0 && s.compareTo(e.ZERO) > 0 && this.m.subTo(s, s), s } function j(t) { var e = i(); return t.copyTo(e), this.reduce(e), e } function L(t) { for (; t.t <= this.mt2;) t[t.t++] = 0; for (var e = 0; e < this.m.t; ++e) { var i = 32767 & t[e] , s = i * this.mpl + ((i * this.mph + (t[e] >> 15) * this.mpl & this.um) << 15) & t.DM; for (i = e + this.m.t, t[i] += this.m.am(0, s, t, e, 0, this.m.t); t[i] >= t.DV;) t[i] -= t.DV, t[++i]++ } t.clamp(), t.drShiftTo(this.m.t, t), t.compareTo(this.m) >= 0 && t.subTo(this.m, t) } function F(t, e) { t.squareTo(e), this.reduce(e) } function K(t, e, i) { t.multiplyTo(e, i), this.reduce(i) } function U() { return 0 == (this.t > 0 ? 1 & this[0] : this.s) } function V(t, s) { if (t > 4294967295 || 1 > t) return e.ONE; var n = i() , r = i() , o = s.convert(this) , a = _(t) - 1; for (o.copyTo(n); --a >= 0;) if (s.sqrTo(n, r), (t & 1 << a) > 0) s.mulTo(r, o, n); else { var c = n; n = r, r = c } return s.revert(n) } function z(t, e) { var i; return i = 256 > t || e.isEven() ? new $(e) : new O(e), this.exp(t, i) } function H() { var t = i(); return this.copyTo(t), t } function q() { if (this.s < 0) { if (1 == this.t) return this[0] - this.DV; if (0 == this.t) return -1 } else { if (1 == this.t) return this[0]; if (0 == this.t) return 0 } return (this[1] & (1 << 32 - this.DB) - 1) << this.DB | this[0] } function J() { return 0 == this.t ? this.s : this[0] << 24 >> 24 } function G() { return 0 == this.t ? this.s : this[0] << 16 >> 16 } function Y(t) { return Math.floor(Math.LN2 * this.DB / Math.log(t)) } function W() { return this.s < 0 ? -1 : this.t <= 0 || 1 == this.t && this[0] <= 0 ? 0 : 1 } function Z(t) { if (null == t && (t = 10), 0 == this.signum() || 2 > t || t > 36) return "0"; var e = this.chunkSize(t) , s = Math.pow(t, e) , n = u(s) , r = i() , o = i() , a = ""; for (this.divRemTo(n, r, o); r.signum() > 0;) a = (s + o.intValue()).toString(t).substr(1) + a, r.divRemTo(n, r, o); return o.intValue().toString(t) + a } function Q(t, i) { this.fromInt(0), null == i && (i = 10); for (var s = this.chunkSize(i), n = Math.pow(i, s), r = !1, o = 0, c = 0, l = 0; l < t.length; ++l) { var u = a(t, l); 0 > u ? "-" == t.charAt(l) && 0 == this.signum() && (r = !0) : (c = i * c + u, ++o >= s && (this.dMultiply(n), this.dAddOffset(c, 0), o = 0, c = 0)) } o > 0 && (this.dMultiply(Math.pow(i, o)), this.dAddOffset(c, 0)), r && e.ZERO.subTo(this, this) } function X(t, i, s) { if ("number" == typeof i) if (2 > t) this.fromInt(1); else for (this.fromNumber(t, s), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1), at, this), this.isEven() && this.dAddOffset(1, 0); !this.isProbablePrime(i);) this.dAddOffset(2, 0), this.bitLength() > t && this.subTo(e.ONE.shiftLeft(t - 1), this); else { var n = new Array , r = 7 & t; n.length = (t >> 3) + 1, i.nextBytes(n), r > 0 ? n[0] &= (1 << r) - 1 : n[0] = 0, this.fromString(n, 256) } } function tt() { var t = this.t , e = new Array; e[0] = this.s; var i, s = this.DB - t * this.DB % 8, n = 0; if (t-- > 0) for (s < this.DB && (i = this[t] >> s) != (this.s & this.DM) >> s && (e[n++] = i | this.s << this.DB - s); t >= 0;) 8 > s ? (i = (this[t] & (1 << s) - 1) << 8 - s, i |= this[--t] >> (s += this.DB - 8)) : (i = this[t] >> (s -= 8) & 255, 0 >= s && (s += this.DB, --t)), 0 != (128 & i) && (i |= -256), 0 == n && (128 & this.s) != (128 & i) && ++n, (n > 0 || i != this.s) && (e[n++] = i); return e } function et(t) { return 0 == this.compareTo(t) } function it(t) { return this.compareTo(t) < 0 ? this : t } function st(t) { return this.compareTo(t) > 0 ? this : t } function nt(t, e, i) { var s, n, r = Math.min(t.t, this.t); for (s = 0; r > s; ++s) i[s] = e(this[s], t[s]); if (t.t < this.t) { for (n = t.s & this.DM, s = r; s < this.t; ++s) i[s] = e(this[s], n); i.t = this.t } else { for (n = this.s & this.DM, s = r; s < t.t; ++s) i[s] = e(n, t[s]); i.t = t.t } i.s = e(this.s, t.s), i.clamp() } function rt(t, e) { return t & e } function ot(t) { var e = i(); return this.bitwiseTo(t, rt, e), e } function at(t, e) { return t | e } function ct(t) { var e = i(); return this.bitwiseTo(t, at, e), e } function lt(t, e) { return t ^ e } function ut(t) { var e = i(); return this.bitwiseTo(t, lt, e), e } function pt(t, e) { return t & ~e } function dt(t) { var e = i(); return this.bitwiseTo(t, pt, e), e } function ht() { for (var t = i(), e = 0; e < this.t; ++e) t[e] = this.DM & ~this[e]; return t.t = this.t, t.s = ~this.s, t } function ft(t) { var e = i(); return 0 > t ? this.rShiftTo(-t, e) : this.lShiftTo(t, e), e } function gt(t) { var e = i(); return 0 > t ? this.lShiftTo(-t, e) : this.rShiftTo(t, e), e } function mt(t) { if (0 == t) return -1; var e = 0; return 0 == (65535 & t) && (t >>= 16, e += 16), 0 == (255 & t) && (t >>= 8, e += 8), 0 == (15 & t) && (t >>= 4, e += 4), 0 == (3 & t) && (t >>= 2, e += 2), 0 == (1 & t) && ++e, e } function vt() { for (var t = 0; t < this.t; ++t) if (0 != this[t]) return t * this.DB + mt(this[t]); return this.s < 0 ? this.t * this.DB : -1 } function _t(t) { for (var e = 0; 0 != t;) t &= t - 1, ++e; return e } function bt() { for (var t = 0, e = this.s & this.DM, i = 0; i < this.t; ++i) t += _t(this[i] ^ e); return t } function yt(t) { var e = Math.floor(t / this.DB); return e >= this.t ? 0 != this.s : 0 != (this[e] & 1 << t % this.DB) } function wt(t, i) { var s = e.ONE.shiftLeft(t); return this.bitwiseTo(s, i, s), s } function kt(t) { return this.changeBit(t, at) } function xt(t) { return this.changeBit(t, pt) } function Dt(t) { return this.changeBit(t, lt) } function St(t, e) { for (var i = 0, s = 0, n = Math.min(t.t, this.t); n > i;) s += this[i] + t[i], e[i++] = s & this.DM, s >>= this.DB; if (t.t < this.t) { for (s += t.s; i < this.t;) s += this[i], e[i++] = s & this.DM, s >>= this.DB; s += this.s } else { for (s += this.s; i < t.t;) s += t[i], e[i++] = s & this.DM, s >>= this.DB; s += t.s } e.s = 0 > s ? -1 : 0, s > 0 ? e[i++] = s : -1 > s && (e[i++] = this.DV + s), e.t = i, e.clamp() } function Ct(t) { var e = i(); return this.addTo(t, e), e } function Tt(t) { var e = i(); return this.subTo(t, e), e } function It(t) { var e = i(); return this.multiplyTo(t, e), e } function $t() { var t = i(); return this.squareTo(t), t } function Pt(t) { var e = i(); return this.divRemTo(t, e, null), e } function Rt(t) { var e = i(); return this.divRemTo(t, null, e), e } function At(t) { var e = i() , s = i(); return this.divRemTo(t, e, s), new Array(e, s) } function Et(t) { this[this.t] = this.am(0, t - 1, this, 0, 0, this.t), ++this.t, this.clamp() } function Mt(t, e) { if (0 != t) { for (; this.t <= e;) this[this.t++] = 0; for (this[e] += t; this[e] >= this.DV;) this[e] -= this.DV, ++e >= this.t && (this[this.t++] = 0), ++this[e] } } function Nt() { } function Ot(t) { return t } function Bt(t, e, i) { t.multiplyTo(e, i) } function jt(t, e) { t.squareTo(e) } function Lt(t) { return this.exp(t, new Nt) } function Ft(t, e, i) { var s = Math.min(this.t + t.t, e); for (i.s = 0, i.t = s; s > 0;) i[--s] = 0; var n; for (n = i.t - this.t; n > s; ++s) i[s + this.t] = this.am(0, t[s], i, s, 0, this.t); for (n = Math.min(t.t, e); n > s; ++s) this.am(0, t[s], i, s, 0, e - s); i.clamp() } function Kt(t, e, i) { --e; var s = i.t = this.t + t.t - e; for (i.s = 0; --s >= 0;) i[s] = 0; for (s = Math.max(e - this.t, 0); s < t.t; ++s) i[this.t + s - e] = this.am(e - s, t[s], i, 0, 0, this.t + s - e); i.clamp(), i.drShiftTo(1, i) } function Ut(t) { this.r2 = i(), this.q3 = i(), e.ONE.dlShiftTo(2 * t.t, this.r2), this.mu = this.r2.divide(t), this.m = t } function Vt(t) { if (t.s < 0 || t.t > 2 * this.m.t) return t.mod(this.m); if (t.compareTo(this.m) < 0) return t; var e = i(); return t.copyTo(e), this.reduce(e), e } function zt(t) { return t } function Ht(t) { for (t.drShiftTo(this.m.t - 1, this.r2), t.t > this.m.t + 1 && (t.t = this.m.t + 1, t.clamp()), this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3), this.m.multiplyLowerTo(this.q3, this.m.t + 1, this.r2); t.compareTo(this.r2) < 0;) t.dAddOffset(1, this.m.t + 1); for (t.subTo(this.r2, t); t.compareTo(this.m) >= 0;) t.subTo(this.m, t) } function qt(t, e) { t.squareTo(e), this.reduce(e) } function Jt(t, e, i) { t.multiplyTo(e, i), this.reduce(i) } function Gt(t, e) { var s, n, r = t.bitLength(), o = u(1); if (0 >= r) return o; s = 18 > r ? 1 : 48 > r ? 3 : 144 > r ? 4 : 768 > r ? 5 : 6, n = 8 > r ? new $(e) : e.isEven() ? new Ut(e) : new O(e); var a = new Array , c = 3 , l = s - 1 , p = (1 << s) - 1; if (a[1] = n.convert(this), s > 1) { var d = i(); for (n.sqrTo(a[1], d); p >= c;) a[c] = i(), n.mulTo(d, a[c - 2], a[c]), c += 2 } var h, f, g = t.t - 1, m = !0, v = i(); for (r = _(t[g]) - 1; g >= 0;) { for (r >= l ? h = t[g] >> r - l & p : (h = (t[g] & (1 << r + 1) - 1) << l - r, g > 0 && (h |= t[g - 1] >> this.DB + r - l)), c = s; 0 == (1 & h);) h >>= 1, --c; if ((r -= c) < 0 && (r += this.DB, --g), m) a[h].copyTo(o), m = !1; else { for (; c > 1;) n.sqrTo(o, v), n.sqrTo(v, o), c -= 2; c > 0 ? n.sqrTo(o, v) : (f = o, o = v, v = f), n.mulTo(v, a[h], o) } for (; g >= 0 && 0 == (t[g] & 1 << r);) n.sqrTo(o, v), f = o, o = v, v = f, --r < 0 && (r = this.DB - 1, --g) } return n.revert(o) } function Yt(t) { var e = this.s < 0 ? this.negate() : this.clone() , i = t.s < 0 ? t.negate() : t.clone(); if (e.compareTo(i) < 0) { var s = e; e = i, i = s } var n = e.getLowestSetBit() , r = i.getLowestSetBit(); if (0 > r) return e; for (r > n && (r = n), r > 0 && (e.rShiftTo(r, e), i.rShiftTo(r, i)); e.signum() > 0;) (n = e.getLowestSetBit()) > 0 && e.rShiftTo(n, e), (n = i.getLowestSetBit()) > 0 && i.rShiftTo(n, i), e.compareTo(i) >= 0 ? (e.subTo(i, e), e.rShiftTo(1, e)) : (i.subTo(e, i), i.rShiftTo(1, i)); return r > 0 && i.lShiftTo(r, i), i } function Wt(t) { if (0 >= t) return 0; var e = this.DV % t , i = this.s < 0 ? t - 1 : 0; if (this.t > 0) if (0 == e) i = this[0] % t; else for (var s = this.t - 1; s >= 0; --s) i = (e * i + this[s]) % t; return i } function Zt(t) { var i = t.isEven(); if (this.isEven() && i || 0 == t.signum()) return e.ZERO; for (var s = t.clone(), n = this.clone(), r = u(1), o = u(0), a = u(0), c = u(1); 0 != s.signum();) { for (; s.isEven();) s.rShiftTo(1, s), i ? (r.isEven() && o.isEven() || (r.addTo(this, r), o.subTo(t, o)), r.rShiftTo(1, r)) : o.isEven() || o.subTo(t, o), o.rShiftTo(1, o); for (; n.isEven();) n.rShiftTo(1, n), i ? (a.isEven() && c.isEven() || (a.addTo(this, a), c.subTo(t, c)), a.rShiftTo(1, a)) : c.isEven() || c.subTo(t, c), c.rShiftTo(1, c); s.compareTo(n) >= 0 ? (s.subTo(n, s), i && r.subTo(a, r), o.subTo(c, o)) : (n.subTo(s, n), i && a.subTo(r, a), c.subTo(o, c)) } return 0 != n.compareTo(e.ONE) ? e.ZERO : c.compareTo(t) >= 0 ? c.subtract(t) : c.signum() < 0 ? (c.addTo(t, c), c.signum() < 0 ? c.add(t) : c) : c } function Qt(t) { var e, i = this.abs(); if (1 == i.t && i[0] <= $e[$e.length - 1]) { for (e = 0; e < $e.length; ++e) if (i[0] == $e[e]) return !0; return !1 } if (i.isEven()) return !1; for (e = 1; e < $e.length;) { for (var s = $e[e], n = e + 1; n < $e.length && Pe > s;) s *= $e[n++]; for (s = i.modInt(s); n > e;) if (s % $e[e++] == 0) return !1 } return i.millerRabin(t) } function Xt(t) { var s = this.subtract(e.ONE) , n = s.getLowestSetBit(); if (0 >= n) return !1; var r = s.shiftRight(n); t = t + 1 >> 1, t > $e.length && (t = $e.length); for (var o = i(), a = 0; t > a; ++a) { o.fromInt($e[Math.floor(Math.random() * $e.length)]); var c = o.modPow(r, this); if (0 != c.compareTo(e.ONE) && 0 != c.compareTo(s)) { for (var l = 1; l++ < n && 0 != c.compareTo(s);) if (c = c.modPowInt(2, this), 0 == c.compareTo(e.ONE)) return !1; if (0 != c.compareTo(s)) return !1 } } return !0 } function te() { this.i = 0, this.j = 0, this.S = new Array } function ee(t) { var e, i, s; for (e = 0; 256 > e; ++e) this.S[e] = e; for (i = 0, e = 0; 256 > e; ++e) i = i + this.S[e] + t[e % t.length] & 255, s = this.S[e], this.S[e] = this.S[i], this.S[i] = s; this.i = 0, this.j = 0 } function ie() { var t; return this.i = this.i + 1 & 255, this.j = this.j + this.S[this.i] & 255, t = this.S[this.i], this.S[this.i] = this.S[this.j], this.S[this.j] = t, this.S[t + this.S[this.i] & 255] } function se() { return new te } function ne() { if (null == Re) { for (Re = se(); Me > Ee;) { var t = Math.floor(65536 * Math.random()); Ae[Ee++] = 255 & t } for (Re.init(Ae), Ee = 0; Ee < Ae.length; ++Ee) Ae[Ee] = 0; Ee = 0 } return Re.next() } function re(t) { var e; for (e = 0; e < t.length; ++e) t[e] = ne() } function oe() { } function ae(t, i) { return new e(t, i) } function ce(t, i) { if (i < t.length + 11) return console.error("Message too long for RSA"), null; for (var s = new Array, n = t.length - 1; n >= 0 && i > 0;) { var r = t.charCodeAt(n--); 128 > r ? s[--i] = r : r > 127 && 2048 > r ? (s[--i] = 63 & r | 128, s[--i] = r >> 6 | 192) : (s[--i] = 63 & r | 128, s[--i] = r >> 6 & 63 | 128, s[--i] = r >> 12 | 224) } s[--i] = 0; for (var o = new oe, a = new Array; i > 2;) { for (a[0] = 0; 0 == a[0];) o.nextBytes(a); s[--i] = a[0] } return s[--i] = 2, s[--i] = 0, new e(s) } function le() { this.n = null, this.e = 0, this.d = null, this.p = null, this.q = null, this.dmp1 = null, this.dmq1 = null, this.coeff = null } function ue(t, e) { null != t && null != e && t.length > 0 && e.length > 0 ? (this.n = ae(t, 16), this.e = parseInt(e, 16)) : console.error("Invalid RSA public key") } function pe(t) { return t.modPowInt(this.e, this.n) } function de(t) { var e = ce(t, this.n.bitLength() + 7 >> 3); if (null == e) return null; var i = this.doPublic(e); if (null == i) return null; var s = i.toString(16); return 0 == (1 & s.length) ? s : "0" + s } function he(t, e) { for (var i = t.toByteArray(), s = 0; s < i.length && 0 == i[s];) ++s; if (i.length - s != e - 1 || 2 != i[s]) return null; for (++s; 0 != i[s];) if (++s >= i.length) return null; for (var n = ""; ++s < i.length;) { var r = 255 & i[s]; 128 > r ? n += String.fromCharCode(r) : r > 191 && 224 > r ? (n += String.fromCharCode((31 & r) << 6 | 63 & i[s + 1]), ++s) : (n += String.fromCharCode((15 & r) << 12 | (63 & i[s + 1]) << 6 | 63 & i[s + 2]), s += 2) } return n } function fe(t, e, i) { null != t && null != e && t.length > 0 && e.length > 0 ? (this.n = ae(t, 16), this.e = parseInt(e, 16), this.d = ae(i, 16)) : console.error("Invalid RSA private key") } function ge(t, e, i, s, n, r, o, a) { null != t && null != e && t.length > 0 && e.length > 0 ? (this.n = ae(t, 16), this.e = parseInt(e, 16), this.d = ae(i, 16), this.p = ae(s, 16), this.q = ae(n, 16), this.dmp1 = ae(r, 16), this.dmq1 = ae(o, 16), this.coeff = ae(a, 16)) : console.error("Invalid RSA private key") } function me(t, i) { var s = new oe , n = t >> 1; this.e = parseInt(i, 16); for (var r = new e(i, 16); ;) { for (; this.p = new e(t - n, 1, s), 0 != this.p.subtract(e.ONE).gcd(r).compareTo(e.ONE) || !this.p.isProbablePrime(10);) ; for (; this.q = new e(n, 1, s), 0 != this.q.subtract(e.ONE).gcd(r).compareTo(e.ONE) || !this.q.isProbablePrime(10);) ; if (this.p.compareTo(this.q) <= 0) { var o = this.p; this.p = this.q, this.q = o } var a = this.p.subtract(e.ONE) , c = this.q.subtract(e.ONE) , l = a.multiply(c); if (0 == l.gcd(r).compareTo(e.ONE)) { this.n = this.p.multiply(this.q), this.d = r.modInverse(l), this.dmp1 = this.d.mod(a), this.dmq1 = this.d.mod(c), this.coeff = this.q.modInverse(this.p); break } } } function ve(t) { if (null == this.p || null == this.q) return t.modPow(this.d, this.n); for (var e = t.mod(this.p).modPow(this.dmp1, this.p), i = t.mod(this.q).modPow(this.dmq1, this.q); e.compareTo(i) < 0;) e = e.add(this.p); return e.subtract(i).multiply(this.coeff).mod(this.p).multiply(this.q).add(i) } function _e(t) { var e = ae(t, 16) , i = this.doPrivate(e); return null == i ? null : he(i, this.n.bitLength() + 7 >> 3) } function be(t) { var e, i, s = ""; for (e = 0; e + 3 <= t.length; e += 3) i = parseInt(t.substring(e, e + 3), 16), s += je.charAt(i >> 6) + je.charAt(63 & i); for (e + 1 == t.length ? (i = parseInt(t.substring(e, e + 1), 16), s += je.charAt(i << 2)) : e + 2 == t.length && (i = parseInt(t.substring(e, e + 2), 16), s += je.charAt(i >> 2) + je.charAt((3 & i) << 4)); (3 & s.length) > 0;) s += Le; return s } function ye(t) { var e, i, s = "", n = 0; for (e = 0; e < t.length && t.charAt(e) != Le; ++e) v = je.indexOf(t.charAt(e)), v < 0 || (0 == n ? (s += o(v >> 2), i = 3 & v, n = 1) : 1 == n ? (s += o(i << 2 | v >> 4), i = 15 & v, n = 2) : 2 == n ? (s += o(i), s += o(v >> 2), i = 3 & v, n = 3) : (s += o(i << 2 | v >> 4), s += o(15 & v), n = 0)); return 1 == n && (s += o(i << 2)), s } var we, ke = 0xdeadbeefcafe, xe = 15715070 == (16777215 & ke); xe && "Microsoft Internet Explorer" == navigator.appName ? (e.prototype.am = n, we = 30) : xe && "Netscape" != navigator.appName ? (e.prototype.am = s, we = 26) : (e.prototype.am = r, we = 28), e.prototype.DB = we, e.prototype.DM = (1 << we) - 1, e.prototype.DV = 1 << we; var De = 52; e.prototype.FV = Math.pow(2, De), e.prototype.F1 = De - we, e.prototype.F2 = 2 * we - De; var Se, Ce, Te = "0123456789abcdefghijklmnopqrstuvwxyz", Ie = new Array; for (Se = "0".charCodeAt(0), Ce = 0; 9 >= Ce; ++Ce) Ie[Se++] = Ce; for (Se = "a".charCodeAt(0), Ce = 10; 36 > Ce; ++Ce) Ie[Se++] = Ce; for (Se = "A".charCodeAt(0), Ce = 10; 36 > Ce; ++Ce) Ie[Se++] = Ce; $.prototype.convert = P, $.prototype.revert = R, $.prototype.reduce = A, $.prototype.mulTo = E, $.prototype.sqrTo = M, O.prototype.convert = B, O.prototype.revert = j, O.prototype.reduce = L, O.prototype.mulTo = K, O.prototype.sqrTo = F, e.prototype.copyTo = c, e.prototype.fromInt = l, e.prototype.fromString = p, e.prototype.clamp = d, e.prototype.dlShiftTo = y, e.prototype.drShiftTo = w, e.prototype.lShiftTo = k, e.prototype.rShiftTo = x, e.prototype.subTo = D, e.prototype.multiplyTo = S, e.prototype.squareTo = C, e.prototype.divRemTo = T, e.prototype.invDigit = N, e.prototype.isEven = U, e.prototype.exp = V, e.prototype.toString = h, e.prototype.negate = f, e.prototype.abs = g, e.prototype.compareTo = m, e.prototype.bitLength = b, e.prototype.mod = I, e.prototype.modPowInt = z, e.ZERO = u(0), e.ONE = u(1), Nt.prototype.convert = Ot, Nt.prototype.revert = Ot, Nt.prototype.mulTo = Bt, Nt.prototype.sqrTo = jt, Ut.prototype.convert = Vt, Ut.prototype.revert = zt, Ut.prototype.reduce = Ht, Ut.prototype.mulTo = Jt, Ut.prototype.sqrTo = qt; var $e = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997] , Pe = (1 << 26) / $e[$e.length - 1]; e.prototype.chunkSize = Y, e.prototype.toRadix = Z, e.prototype.fromRadix = Q, e.prototype.fromNumber = X, e.prototype.bitwiseTo = nt, e.prototype.changeBit = wt, e.prototype.addTo = St, e.prototype.dMultiply = Et, e.prototype.dAddOffset = Mt, e.prototype.multiplyLowerTo = Ft, e.prototype.multiplyUpperTo = Kt, e.prototype.modInt = Wt, e.prototype.millerRabin = Xt, e.prototype.clone = H, e.prototype.intValue = q, e.prototype.byteValue = J, e.prototype.shortValue = G, e.prototype.signum = W, e.prototype.toByteArray = tt, e.prototype.equals = et, e.prototype.min = it, e.prototype.max = st, e.prototype.and = ot, e.prototype.or = ct, e.prototype.xor = ut, e.prototype.andNot = dt, e.prototype.not = ht, e.prototype.shiftLeft = ft, e.prototype.shiftRight = gt, e.prototype.getLowestSetBit = vt, e.prototype.bitCount = bt, e.prototype.testBit = yt, e.prototype.setBit = kt, e.prototype.clearBit = xt, e.prototype.flipBit = Dt, e.prototype.add = Ct, e.prototype.subtract = Tt, e.prototype.multiply = It, e.prototype.divide = Pt, e.prototype.remainder = Rt, e.prototype.divideAndRemainder = At, e.prototype.modPow = Gt, e.prototype.modInverse = Zt, e.prototype.pow = Lt, e.prototype.gcd = Yt, e.prototype.isProbablePrime = Qt, e.prototype.square = $t, te.prototype.init = ee, te.prototype.next = ie; var Re, Ae, Ee, Me = 256; if (null == Ae) { Ae = new Array, Ee = 0; var Ne; if (window.crypto && window.crypto.getRandomValues) { var Oe = new Uint32Array(256); for (window.crypto.getRandomValues(Oe), Ne = 0; Ne < Oe.length; ++Ne) Ae[Ee++] = 255 & Oe[Ne] } var Be = function (t) { if (this.count = this.count || 0, this.count >= 256 || Ee >= Me) return void (window.removeEventListener ? window.removeEventListener("mousemove", Be, !1) : window.detachEvent && window.detachEvent("onmousemove", Be)); try { var e = t.x + t.y; Ae[Ee++] = 255 & e, this.count += 1 } catch (t) { } }; window.addEventListener ? window.addEventListener("mousemove", Be, !1) : window.attachEvent && window.attachEvent("onmousemove", Be) } oe.prototype.nextBytes = re, le.prototype.doPublic = pe, le.prototype.setPublic = ue, le.prototype.encrypt = de, le.prototype.doPrivate = ve, le.prototype.setPrivate = fe, le.prototype.setPrivateEx = ge, le.prototype.generate = me, le.prototype.decrypt = _e, function () { var t = function (t, s, n) { var r = new oe , o = t >> 1; this.e = parseInt(s, 16); var a = new e(s, 16) , c = this , l = function () { var s = function () { if (c.p.compareTo(c.q) <= 0) { var t = c.p; c.p = c.q, c.q = t } var i = c.p.subtract(e.ONE) , s = c.q.subtract(e.ONE) , r = i.multiply(s); 0 == r.gcd(a).compareTo(e.ONE) ? (c.n = c.p.multiply(c.q), c.d = a.modInverse(r), c.dmp1 = c.d.mod(i), c.dmq1 = c.d.mod(s), c.coeff = c.q.modInverse(c.p), setTimeout(function () { n() }, 0)) : setTimeout(l, 0) } , u = function () { c.q = i(), c.q.fromNumberAsync(o, 1, r, function () { c.q.subtract(e.ONE).gcda(a, function (t) { 0 == t.compareTo(e.ONE) && c.q.isProbablePrime(10) ? setTimeout(s, 0) : setTimeout(u, 0) }) }) } , p = function () { c.p = i(), c.p.fromNumberAsync(t - o, 1, r, function () { c.p.subtract(e.ONE).gcda(a, function (t) { 0 == t.compareTo(e.ONE) && c.p.isProbablePrime(10) ? setTimeout(u, 0) : setTimeout(p, 0) }) }) }; setTimeout(p, 0) }; setTimeout(l, 0) }; le.prototype.generateAsync = t; var s = function (t, e) { var i = this.s < 0 ? this.negate() : this.clone() , s = t.s < 0 ? t.negate() : t.clone(); if (i.compareTo(s) < 0) { var n = i; i = s, s = n } var r = i.getLowestSetBit() , o = s.getLowestSetBit(); if (0 > o) return void e(i); o > r && (o = r), o > 0 && (i.rShiftTo(o, i), s.rShiftTo(o, s)); var a = function () { (r = i.getLowestSetBit()) > 0 && i.rShiftTo(r, i), (r = s.getLowestSetBit()) > 0 && s.rShiftTo(r, s), i.compareTo(s) >= 0 ? (i.subTo(s, i), i.rShiftTo(1, i)) : (s.subTo(i, s), s.rShiftTo(1, s)), i.signum() > 0 ? setTimeout(a, 0) : (o > 0 && s.lShiftTo(o, s), setTimeout(function () { e(s) }, 0)) }; setTimeout(a, 10) }; e.prototype.gcda = s; var n = function (t, i, s, n) { if ("number" == typeof i) if (2 > t) this.fromInt(1); else { this.fromNumber(t, s), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1), at, this), this.isEven() && this.dAddOffset(1, 0); var r = this , o = function () { r.dAddOffset(2, 0), r.bitLength() > t && r.subTo(e.ONE.shiftLeft(t - 1), r), r.isProbablePrime(i) ? setTimeout(function () { n() }, 0) : setTimeout(o, 0) }; setTimeout(o, 0) } else { var a = new Array , c = 7 & t; a.length = (t >> 3) + 1, i.nextBytes(a), c > 0 ? a[0] &= (1 << c) - 1 : a[0] = 0, this.fromString(a, 256) } }; e.prototype.fromNumberAsync = n }(); var je = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" , Le = "=" , Fe = Fe || {}; Fe.env = Fe.env || {}; var Ke = Fe , Ue = Object.prototype , Ve = "[object Function]" , ze = ["toString", "valueOf"]; Fe.env.parseUA = function (t) { var e, i = function (t) { var e = 0; return parseFloat(t.replace(/\./g, function () { return 1 == e++ ? "" : "." })) }, s = navigator, n = { ie: 0, opera: 0, gecko: 0, webkit: 0, chrome: 0, mobile: null, air: 0, ipad: 0, iphone: 0, ipod: 0, ios: null, android: 0, webos: 0, caja: s && s.cajaVersion, secure: !1, os: null }, r = t || navigator && navigator.userAgent, o = window && window.location, a = o && o.href; return n.secure = a && 0 === a.toLowerCase().indexOf("https"), r && (/windows|win32/i.test(r) ? n.os = "windows" : /macintosh/i.test(r) ? n.os = "macintosh" : /rhino/i.test(r) && (n.os = "rhino"), /KHTML/.test(r) && (n.webkit = 1), e = r.match(/AppleWebKit\/([^\s]*)/), e && e[1] && (n.webkit = i(e[1]), / Mobile\//.test(r) ? (n.mobile = "Apple", e = r.match(/OS ([^\s]*)/), e && e[1] && (e = i(e[1].replace("_", "."))), n.ios = e, n.ipad = n.ipod = n.iphone = 0, e = r.match(/iPad|iPod|iPhone/), e && e[0] && (n[e[0].toLowerCase()] = n.ios)) : (e = r.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/), e && (n.mobile = e[0]), /webOS/.test(r) && (n.mobile = "WebOS", e = r.match(/webOS\/([^\s]*);/), e && e[1] && (n.webos = i(e[1]))), / Android/.test(r) && (n.mobile = "Android", e = r.match(/Android ([^\s]*);/), e && e[1] && (n.android = i(e[1])))), e = r.match(/Chrome\/([^\s]*)/), e && e[1] ? n.chrome = i(e[1]) : (e = r.match(/AdobeAIR\/([^\s]*)/), e && (n.air = e[0]))), n.webkit || (e = r.match(/Opera[\s\/]([^\s]*)/), e && e[1] ? (n.opera = i(e[1]), e = r.match(/Version\/([^\s]*)/), e && e[1] && (n.opera = i(e[1])), e = r.match(/Opera Mini[^;]*/), e && (n.mobile = e[0])) : (e = r.match(/MSIE\s([^;]*)/), e && e[1] ? n.ie = i(e[1]) : (e = r.match(/Gecko\/([^\s]*)/), e && (n.gecko = 1, e = r.match(/rv:([^\s\)]*)/), e && e[1] && (n.gecko = i(e[1]))))))), n } , Fe.env.ua = Fe.env.parseUA(), Fe.isFunction = function (t) { return "function" == typeof t || Ue.toString.apply(t) === Ve } , Fe._IEEnumFix = Fe.env.ua.ie ? function (t, e) { var i, s, n; for (i = 0; i < ze.length; i += 1) s = ze[i], n = e[s], Ke.isFunction(n) && n != Ue[s] && (t[s] = n) } : function () { } , Fe.extend = function (t, e, i) { if (!e || !t) throw new Error("extend failed, please check that all dependencies are included."); var s, n = function () { }; if (n.prototype = e.prototype, t.prototype = new n, t.prototype.constructor = t, t.superclass = e.prototype, e.prototype.constructor == Ue.constructor && (e.prototype.constructor = e), i) { for (s in i) Ke.hasOwnProperty(i, s) && (t.prototype[s] = i[s]); Ke._IEEnumFix(t.prototype, i) } } , /** * @fileOverview * @name asn1-1.0.js * @author Kenji Urushima kenji.urushima@gmail.com * @version 1.0.2 (2013-May-30) * @since 2.1 * @license <a href="//kjur.github.io/jsrsasign/license/">MIT License</a> */ "undefined" != typeof KJUR && KJUR || (KJUR = {}), "undefined" != typeof KJUR.asn1 && KJUR.asn1 || (KJUR.asn1 = {}), KJUR.asn1.ASN1Util = new function () { this.integerToByteHex = function (t) { var e = t.toString(16); return e.length % 2 == 1 && (e = "0" + e), e } , this.bigIntToMinTwosComplementsHex = function (t) { var i = t.toString(16); if ("-" != i.substr(0, 1)) i.length % 2 == 1 ? i = "0" + i : i.match(/^[0-7]/) || (i = "00" + i); else { var s = i.substr(1) , n = s.length; n % 2 == 1 ? n += 1 : i.match(/^[0-7]/) || (n += 2); for (var r = "", o = 0; n > o; o++) r += "f"; var a = new e(r, 16) , c = a.xor(t).add(e.ONE); i = c.toString(16).replace(/^-/, "") } return i } , this.getPEMStringFromHex = function (t, e) { var i = CryptoJS.enc.Hex.parse(t) , s = CryptoJS.enc.Base64.stringify(i) , n = s.replace(/(.{64})/g, "$1\r\n"); return n = n.replace(/\r\n$/, ""), "-----BEGIN " + e + "-----\r\n" + n + "\r\n-----END " + e + "-----\r\n" } } , KJUR.asn1.ASN1Object = function () { var t = ""; this.getLengthHexFromValue = function () { if ("undefined" == typeof this.hV || null == this.hV) throw "this.hV is null or undefined."; if (this.hV.length % 2 == 1) throw "value hex must be even length: n=" + t.length + ",v=" + this.hV; var e = this.hV.length / 2 , i = e.toString(16); if (i.length % 2 == 1 && (i = "0" + i), 128 > e) return i; var s = i.length / 2; if (s > 15) throw "ASN.1 length too long to represent by 8x: n = " + e.toString(16); var n = 128 + s; return n.toString(16) + i } , this.getEncodedHex = function () { return (null == this.hTLV || this.isModified) && (this.hV = this.getFreshValueHex(), this.hL = this.getLengthHexFromValue(), this.hTLV = this.hT + this.hL + this.hV, this.isModified = !1), this.hTLV } , this.getValueHex = function () { return this.getEncodedHex(), this.hV } , this.getFreshValueHex = function () { return "" } } , KJUR.asn1.DERAbstractString = function (t) { KJUR.asn1.DERAbstractString.superclass.constructor.call(this), this.getString = function () { return this.s } , this.setString = function (t) { this.hTLV = null, this.isModified = !0, this.s = t, this.hV = stohex(this.s) } , this.setStringHex = function (t) { this.hTLV = null, this.isModified = !0, this.s = null, this.hV = t } , this.getFreshValueHex = function () { return this.hV } , "undefined" != typeof t && ("undefined" != typeof t.str ? this.setString(t.str) : "undefined" != typeof t.hex && this.setStringHex(t.hex)) } , Fe.extend(KJUR.asn1.DERAbstractString, KJUR.asn1.ASN1Object), KJUR.asn1.DERAbstractTime = function (t) { KJUR.asn1.DERAbstractTime.superclass.constructor.call(this), this.localDateToUTC = function (t) { utc = t.getTime() + 6e4 * t.getTimezoneOffset(); var e = new Date(utc); return e } , this.formatDate = function (t, e) { var i = this.zeroPadding , s = this.localDateToUTC(t) , n = String(s.getFullYear()); "utc" == e && (n = n.substr(2, 2)); var r = i(String(s.getMonth() + 1), 2) , o = i(String(s.getDate()), 2) , a = i(String(s.getHours()), 2) , c = i(String(s.getMinutes()), 2) , l = i(String(s.getSeconds()), 2); return n + r + o + a + c + l + "Z" } , this.zeroPadding = function (t, e) { return t.length >= e ? t : new Array(e - t.length + 1).join("0") + t } , this.getString = function () { return this.s } , this.setString = function (t) { this.hTLV = null, this.isModified = !0, this.s = t, this.hV = stohex(this.s) } , this.setByDateValue = function (t, e, i, s, n, r) { var o = new Date(Date.UTC(t, e - 1, i, s, n, r, 0)); this.setByDate(o) } , this.getFreshValueHex = function () { return this.hV } } , Fe.extend(KJUR.asn1.DERAbstractTime, KJUR.asn1.ASN1Object), KJUR.asn1.DERAbstractStructured = function (t) { KJUR.asn1.DERAbstractString.superclass.constructor.call(this), this.setByASN1ObjectArray = function (t) { this.hTLV = null, this.isModified = !0, this.asn1Array = t } , this.appendASN1Object = function (t) { this.hTLV = null, this.isModified = !0, this.asn1Array.push(t) } , this.asn1Array = new Array, "undefined" != typeof t && "undefined" != typeof t.array && (this.asn1Array = t.array) } , Fe.extend(KJUR.asn1.DERAbstractStructured, KJUR.asn1.ASN1Object), KJUR.asn1.DERBoolean = function () { KJUR.asn1.DERBoolean.superclass.constructor.call(this), this.hT = "01", this.hTLV = "0101ff" } , Fe.extend(KJUR.asn1.DERBoolean, KJUR.asn1.ASN1Object), KJUR.asn1.DERInteger = function (t) { KJUR.asn1.DERInteger.superclass.constructor.call(this), this.hT = "02", this.setByBigInteger = function (t) { this.hTLV = null, this.isModified = !0, this.hV = KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t) } , this.setByInteger = function (t) { var i = new e(String(t), 10); this.setByBigInteger(i) } , this.setValueHex = function (t) { this.hV = t } , this.getFreshValueHex = function () { return this.hV } , "undefined" != typeof t && ("undefined" != typeof t.bigint ? this.setByBigInteger(t.bigint) : "undefined" != typeof t.int ? this.setByInteger(t.int) : "undefined" != typeof t.hex && this.setValueHex(t.hex)) } , Fe.extend(KJUR.asn1.DERInteger, KJUR.asn1.ASN1Object), KJUR.asn1.DERBitString = function (t) { KJUR.asn1.DERBitString.superclass.constructor.call(this), this.hT = "03", this.setHexValueIncludingUnusedBits = function (t) { this.hTLV = null, this.isModified = !0, this.hV = t } , this.setUnusedBitsAndHexValue = function (t, e) { if (0 > t || t > 7) throw "unused bits shall be from 0 to 7: u = " + t; var i = "0" + t; this.hTLV = null, this.isModified = !0, this.hV = i + e } , this.setByBinaryString = function (t) { t = t.replace(/0+$/, ""); var e = 8 - t.length % 8; 8 == e && (e = 0); for (var i = 0; e >= i; i++) t += "0"; for (var s = "", i = 0; i < t.length - 1; i += 8) { var n = t.substr(i, 8) , r = parseInt(n, 2).toString(16); 1 == r.length && (r = "0" + r), s += r } this.hTLV = null, this.isModified = !0, this.hV = "0" + e + s } , this.setByBooleanArray = function (t) { for (var e = "", i = 0; i < t.length; i++) e += 1 == t[i] ? "1" : "0"; this.setByBinaryString(e) } , this.newFalseArray = function (t) { for (var e = new Array(t), i = 0; t > i; i++) e[i] = !1; return e } , this.getFreshValueHex = function () { return this.hV } , "undefined" != typeof t && ("undefined" != typeof t.hex ? this.setHexValueIncludingUnusedBits(t.hex) : "undefined" != typeof t.bin ? this.setByBinaryString(t.bin) : "undefined" != typeof t.array && this.setByBooleanArray(t.array)) } , Fe.extend(KJUR.asn1.DERBitString, KJUR.asn1.ASN1Object), KJUR.asn1.DEROctetString = function (t) { KJUR.asn1.DEROctetString.superclass.constructor.call(this, t), this.hT = "04" } , Fe.extend(KJUR.asn1.DEROctetString, KJUR.asn1.DERAbstractString), KJUR.asn1.DERNull = function () { KJUR.asn1.DERNull.superclass.constructor.call(this), this.hT = "05", this.hTLV = "0500" } , Fe.extend(KJUR.asn1.DERNull, KJUR.asn1.ASN1Object), KJUR.asn1.DERObjectIdentifier = function (t) { var i = function (t) { var e = t.toString(16); return 1 == e.length && (e = "0" + e), e } , s = function (t) { var s = "" , n = new e(t, 10) , r = n.toString(2) , o = 7 - r.length % 7; 7 == o && (o = 0); for (var a = "", c = 0; o > c; c++) a += "0"; r = a + r; for (var c = 0; c < r.length - 1; c += 7) { var l = r.substr(c, 7); c != r.length - 7 && (l = "1" + l), s += i(parseInt(l, 2)) } return s }; KJUR.asn1.DERObjectIdentifier.superclass.constructor.call(this), this.hT = "06", this.setValueHex = function (t) { this.hTLV = null, this.isModified = !0, this.s = null, this.hV = t } , this.setValueOidString = function (t) { if (!t.match(/^[0-9.]+$/)) throw "malformed oid string: " + t; var e = "" , n = t.split(".") , r = 40 * parseInt(n[0]) + parseInt(n[1]); e += i(r), n.splice(0, 2); for (var o = 0; o < n.length; o++) e += s(n[o]); this.hTLV = null, this.isModified = !0, this.s = null, this.hV = e } , this.setValueName = function (t) { if ("undefined" == typeof KJUR.asn1.x509.OID.name2oidList[t]) throw "DERObjectIdentifier oidName undefined: " + t; var e = KJUR.asn1.x509.OID.name2oidList[t]; this.setValueOidString(e) } , this.getFreshValueHex = function () { return this.hV } , "undefined" != typeof t && ("undefined" != typeof t.oid ? this.setValueOidString(t.oid) : "undefined" != typeof t.hex ? this.setValueHex(t.hex) : "undefined" != typeof t.name && this.setValueName(t.name)) } , Fe.extend(KJUR.asn1.DERObjectIdentifier, KJUR.asn1.ASN1Object), KJUR.asn1.DERUTF8String = function (t) { KJUR.asn1.DERUTF8String.superclass.constructor.call(this, t), this.hT = "0c" } , Fe.extend(KJUR.asn1.DERUTF8String, KJUR.asn1.DERAbstractString), KJUR.asn1.DERNumericString = function (t) { KJUR.asn1.DERNumericString.superclass.constructor.call(this, t), this.hT = "12" } , Fe.extend(KJUR.asn1.DERNumericString, KJUR.asn1.DERAbstractString), KJUR.asn1.DERPrintableString = function (t) { KJUR.asn1.DERPrintableString.superclass.constructor.call(this, t), this.hT = "13" } , Fe.extend(KJUR.asn1.DERPrintableString, KJUR.asn1.DERAbstractString), KJUR.asn1.DERTeletexString = function (t) { KJUR.asn1.DERTeletexString.superclass.constructor.call(this, t), this.hT = "14" } , Fe.extend(KJUR.asn1.DERTeletexString, KJUR.asn1.DERAbstractString), KJUR.asn1.DERIA5String = function (t) { KJUR.asn1.DERIA5String.superclass.constructor.call(this, t), this.hT = "16" } , Fe.extend(KJUR.asn1.DERIA5String, KJUR.asn1.DERAbstractString), KJUR.asn1.DERUTCTime = function (t) { KJUR.asn1.DERUTCTime.superclass.constructor.call(this, t), this.hT = "17", this.setByDate = function (t) { this.hTLV = null, this.isModified = !0, this.date = t, this.s = this.formatDate(this.date, "utc"), this.hV = stohex(this.s) } , "undefined" != typeof t && ("undefined" != typeof t.str ? this.setString(t.str) : "undefined" != typeof t.hex ? this.setStringHex(t.hex) : "undefined" != typeof t.date && this.setByDate(t.date)) } , Fe.extend(KJUR.asn1.DERUTCTime, KJUR.asn1.DERAbstractTime), KJUR.asn1.DERGeneralizedTime = function (t) { KJUR.asn1.DERGeneralizedTime.superclass.constructor.call(this, t), this.hT = "18", this.setByDate = function (t) { this.hTLV = null, this.isModified = !0, this.date = t, this.s = this.formatDate(this.date, "gen"), this.hV = stohex(this.s) } , "undefined" != typeof t && ("undefined" != typeof t.str ? this.setString(t.str) : "undefined" != typeof t.hex ? this.setStringHex(t.hex) : "undefined" != typeof t.date && this.setByDate(t.date)) } , Fe.extend(KJUR.asn1.DERGeneralizedTime, KJUR.asn1.DERAbstractTime), KJUR.asn1.DERSequence = function (t) { KJUR.asn1.DERSequence.superclass.constructor.call(this, t), this.hT = "30", this.getFreshValueHex = function () { for (var t = "", e = 0; e < this.asn1Array.length; e++) { var i = this.asn1Array[e]; t += i.getEncodedHex() } return this.hV = t, this.hV } } , Fe.extend(KJUR.asn1.DERSequence, KJUR.asn1.DERAbstractStructured), KJUR.asn1.DERSet = function (t) { KJUR.asn1.DERSet.superclass.constructor.call(this, t), this.hT = "31", this.getFreshValueHex = function () { for (var t = new Array, e = 0; e < this.asn1Array.length; e++) { var i = this.asn1Array[e]; t.push(i.getEncodedHex()) } return t.sort(), this.hV = t.join(""), this.hV } } , Fe.extend(KJUR.asn1.DERSet, KJUR.asn1.DERAbstractStructured), KJUR.asn1.DERTaggedObject = function (t) { KJUR.asn1.DERTaggedObject.superclass.constructor.call(this), this.hT = "a0", this.hV = "", this.isExplicit = !0, this.asn1Object = null, this.setASN1Object = function (t, e, i) { this.hT = e, this.isExplicit = t, this.asn1Object = i, this.isExplicit ? (this.hV = this.asn1Object.getEncodedHex(), this.hTLV = null, this.isModified = !0) : (this.hV = null, this.hTLV = i.getEncodedHex(), this.hTLV = this.hTLV.replace(/^../, e), this.isModified = !1) } , this.getFreshValueHex = function () { return this.hV } , "undefined" != typeof t && ("undefined" != typeof t.tag && (this.hT = t.tag), "undefined" != typeof t.explicit && (this.isExplicit = t.explicit), "undefined" != typeof t.obj && (this.asn1Object = t.obj, this.setASN1Object(this.isExplicit, this.hT, this.asn1Object))) } , Fe.extend(KJUR.asn1.DERTaggedObject, KJUR.asn1.ASN1Object), function (t) { "use strict"; var e, i = {}; i.decode = function (i) { var s; if (e === t) { var n = "0123456789ABCDEF" , r = " \f\n\r \u2028\u2029"; for (e = [], s = 0; 16 > s; ++s) e[n.charAt(s)] = s; for (n = n.toLowerCase(), s = 10; 16 > s; ++s) e[n.charAt(s)] = s; for (s = 0; s < r.length; ++s) e[r.charAt(s)] = -1 } var o = [] , a = 0 , c = 0; for (s = 0; s < i.length; ++s) { var l = i.charAt(s); if ("=" == l) break; if (l = e[l], -1 != l) { if (l === t) throw "Illegal character at offset " + s; a |= l, ++c >= 2 ? (o[o.length] = a, a = 0, c = 0) : a <<= 4 } } if (c) throw "Hex encoding incomplete: 4 bits missing"; return o } , window.Hex = i }(), function (t) { "use strict"; var e, i = {}; i.decode = function (i) { var s; if (e === t) { var n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" , r = "= \f\n\r \u2028\u2029"; for (e = [], s = 0; 64 > s; ++s) e[n.charAt(s)] = s; for (s = 0; s < r.length; ++s) e[r.charAt(s)] = -1 } var o = [] , a = 0 , c = 0; for (s = 0; s < i.length; ++s) { var l = i.charAt(s); if ("=" == l) break; if (l = e[l], -1 != l) { if (l === t) throw "Illegal character at offset " + s; a |= l, ++c >= 4 ? (o[o.length] = a >> 16, o[o.length] = a >> 8 & 255, o[o.length] = 255 & a, a = 0, c = 0) : a <<= 6 } } switch (c) { case 1: throw "Base64 encoding incomplete: at least 2 bits missing"; case 2: o[o.length] = a >> 10; break; case 3: o[o.length] = a >> 16, o[o.length] = a >> 8 & 255 } return o } , i.re = /-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/, i.unarmor = function (t) { var e = i.re.exec(t); if (e) if (e[1]) t = e[1]; else { if (!e[2]) throw "RegExp out of sync"; t = e[2] } return i.decode(t) } , window.Base64 = i }(), function (t) { "use strict"; function e(t, i) { t instanceof e ? (this.enc = t.enc, this.pos = t.pos) : (this.enc = t, this.pos = i) } function i(t, e, i, s, n) { this.stream = t, this.header = e, this.length = i, this.tag = s, this.sub = n } var s = 100 , n = "…" , r = { tag: function (t, e) { var i = document.createElement(t); return i.className = e, i }, text: function (t) { return document.createTextNode(t) } }; e.prototype.get = function (e) { if (e === t && (e = this.pos++), e >= this.enc.length) throw "Requesting byte offset " + e + " on a stream of length " + this.enc.length; return this.enc[e] } , e.prototype.hexDigits = "0123456789ABCDEF", e.prototype.hexByte = function (t) { return this.hexDigits.charAt(t >> 4 & 15) + this.hexDigits.charAt(15 & t) } , e.prototype.hexDump = function (t, e, i) { for (var s = "", n = t; e > n; ++n) if (s += this.hexByte(this.get(n)), i !== !0) switch (15 & n) { case 7: s += " "; break; case 15: s += "\n"; break; default: s += " " } return s } , e.prototype.parseStringISO = function (t, e) { for (var i = "", s = t; e > s; ++s) i += String.fromCharCode(this.get(s)); return i } , e.prototype.parseStringUTF = function (t, e) { for (var i = "", s = t; e > s;) { var n = this.get(s++); i += 128 > n ? String.fromCharCode(n) : n > 191 && 224 > n ? String.fromCharCode((31 & n) << 6 | 63 & this.get(s++)) : String.fromCharCode((15 & n) << 12 | (63 & this.get(s++)) << 6 | 63 & this.get(s++)) } return i } , e.prototype.parseStringBMP = function (t, e) { for (var i = "", s = t; e > s; s += 2) { var n = this.get(s) , r = this.get(s + 1); i += String.fromCharCode((n << 8) + r) } return i } , e.prototype.reTime = /^((?:1[89]|2\d)?\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/, e.prototype.parseTime = function (t, e) { var i = this.parseStringISO(t, e) , s = this.reTime.exec(i); return s ? (i = s[1] + "-" + s[2] + "-" + s[3] + " " + s[4], s[5] && (i += ":" + s[5], s[6] && (i += ":" + s[6], s[7] && (i += "." + s[7]))), s[8] && (i += " UTC", "Z" != s[8] && (i += s[8], s[9] && (i += ":" + s[9]))), i) : "Unrecognized time: " + i } , e.prototype.parseInteger = function (t, e) { var i = e - t; if (i > 4) { i <<= 3; var s = this.get(t); if (0 === s) i -= 8; else for (; 128 > s;) s <<= 1, --i; return "(" + i + " bit)" } for (var n = 0, r = t; e > r; ++r) n = n << 8 | this.get(r); return n } , e.prototype.parseBitString = function (t, e) { var i = this.get(t) , s = (e - t - 1 << 3) - i , n = "(" + s + " bit)"; if (20 >= s) { var r = i; n += " "; for (var o = e - 1; o > t; --o) { for (var a = this.get(o), c = r; 8 > c; ++c) n += a >> c & 1 ? "1" : "0"; r = 0 } } return n } , e.prototype.parseOctetString = function (t, e) { var i = e - t , r = "(" + i + " byte) "; i > s && (e = t + s); for (var o = t; e > o; ++o) r += this.hexByte(this.get(o)); return i > s && (r += n), r } , e.prototype.parseOID = function (t, e) { for (var i = "", s = 0, n = 0, r = t; e > r; ++r) { var o = this.get(r); if (s = s << 7 | 127 & o, n += 7, !(128 & o)) { if ("" === i) { var a = 80 > s ? 40 > s ? 0 : 1 : 2; i = a + "." + (s - 40 * a) } else i += "." + (n >= 31 ? "bigint" : s); s = n = 0 } } return i } , i.prototype.typeName = function () { if (this.tag === t) return "unknown"; var e = this.tag >> 6 , i = (this.tag >> 5 & 1, 31 & this.tag); switch (e) { case 0: switch (i) { case 0: return "EOC"; case 1: return "BOOLEAN"; case 2: return "INTEGER"; case 3: return "BIT_STRING"; case 4: return "OCTET_STRING"; case 5: return "NULL"; case 6: return "OBJECT_IDENTIFIER"; case 7: return "ObjectDescriptor"; case 8: return "EXTERNAL"; case 9: return "REAL"; case 10: return "ENUMERATED"; case 11: return "EMBEDDED_PDV"; case 12: return "UTF8String"; case 16: return "SEQUENCE"; case 17: return "SET"; case 18: return "NumericString"; case 19: return "PrintableString"; case 20: return "TeletexString"; case 21: return "VideotexString"; case 22: return "IA5String"; case 23: return "UTCTime"; case 24: return "GeneralizedTime"; case 25: return "GraphicString"; case 26: return "VisibleString"; case 27: return "GeneralString"; case 28: return "UniversalString"; case 30: return "BMPString"; default: return "Universal_" + i.toString(16) } case 1: return "Application_" + i.toString(16); case 2: return "[" + i + "]"; case 3: return "Private_" + i.toString(16) } } , i.prototype.reSeemsASCII = /^[ -~]+$/, i.prototype.content = function () { if (this.tag === t) return null; var e = this.tag >> 6 , i = 31 & this.tag , r = this.posContent() , o = Math.abs(this.length); if (0 !== e) { if (null !== this.sub) return "(" + this.sub.length + " elem)"; var a = this.stream.parseStringISO(r, r + Math.min(o, s)); return this.reSeemsASCII.test(a) ? a.substring(0, 2 * s) + (a.length > 2 * s ? n : "") : this.stream.parseOctetString(r, r + o) } switch (i) { case 1: return 0 === this.stream.get(r) ? "false" : "true"; case 2: return this.stream.parseInteger(r, r + o); case 3: return this.sub ? "(" + this.sub.length + " elem)" : this.stream.parseBitString(r, r + o); case 4: return this.sub ? "(" + this.sub.length + " elem)" : this.stream.parseOctetString(r, r + o); case 6: return this.stream.parseOID(r, r + o); case 16: case 17: return "(" + this.sub.length + " elem)"; case 12: return this.stream.parseStringUTF(r, r + o); case 18: case 19: case 20: case 21: case 22: case 26: return this.stream.parseStringISO(r, r + o); case 30: return this.stream.parseStringBMP(r, r + o); case 23: case 24: return this.stream.parseTime(r, r + o) } return null } , i.prototype.toString = function () { return this.typeName() + "@" + this.stream.pos + "[header:" + this.header + ",length:" + this.length + ",sub:" + (null === this.sub ? "null" : this.sub.length) + "]" } , i.prototype.print = function (e) { if (e === t && (e = ""), document.writeln(e + this), null !== this.sub) { e += " "; for (var i = 0, s = this.sub.length; s > i; ++i) this.sub[i].print(e) } } , i.prototype.toPrettyString = function (e) { e === t && (e = ""); var i = e + this.typeName() + " @" + this.stream.pos; if (this.length >= 0 && (i += "+"), i += this.length, 32 & this.tag ? i += " (constructed)" : 3 != this.tag && 4 != this.tag || null === this.sub || (i += " (encapsulates)"), i += "\n", null !== this.sub) { e += " "; for (var s = 0, n = this.sub.length; n > s; ++s) i += this.sub[s].toPrettyString(e) } return i } , i.prototype.toDOM = function () { var t = r.tag("div", "node"); t.asn1 = this; var e = r.tag("div", "head") , i = this.typeName().replace(/_/g, " "); e.innerHTML = i; var s = this.content(); if (null !== s) { s = String(s).replace(/</g, "<"); var n = r.tag("span", "preview"); n.appendChild(r.text(s)), e.appendChild(n) } t.appendChild(e), this.node = t, this.head = e; var o = r.tag("div", "value"); if (i = "Offset: " + this.stream.pos + "<br/>", i += "Length: " + this.header + "+", i += this.length >= 0 ? this.length : -this.length + " (undefined)", 32 & this.tag ? i += "<br/>(constructed)" : 3 != this.tag && 4 != this.tag || null === this.sub || (i += "<br/>(encapsulates)"), null !== s && (i += "<br/>Value:<br/><b>" + s + "</b>", "object" == typeof oids && 6 == this.tag)) { var a = oids[s]; a && (a.d && (i += "<br/>" + a.d), a.c && (i += "<br/>" + a.c), a.w && (i += "<br/>(warning!)")) } o.innerHTML = i, t.appendChild(o); var c = r.tag("div", "sub"); if (null !== this.sub) for (var l = 0, u = this.sub.length; u > l; ++l) c.appendChild(this.sub[l].toDOM()); return t.appendChild(c), e.onclick = function () { t.className = "node collapsed" == t.className ? "node" : "node collapsed" } , t } , i.prototype.posStart = function () { return this.stream.pos } , i.prototype.posContent = function () { return this.stream.pos + this.header } , i.prototype.posEnd = function () { return this.stream.pos + this.header + Math.abs(this.length) } , i.prototype.fakeHover = function (t) { this.node.className += " hover", t && (this.head.className += " hover") } , i.prototype.fakeOut = function (t) { var e = / ?hover/; this.node.className = this.node.className.replace(e, ""), t && (this.head.className = this.head.className.replace(e, "")) } , i.prototype.toHexDOM_sub = function (t, e, i, s, n) { if (!(s >= n)) { var o = r.tag("span", e); o.appendChild(r.text(i.hexDump(s, n))), t.appendChild(o) } } , i.prototype.toHexDOM = function (e) { var i = r.tag("span", "hex"); if (e === t && (e = i), this.head.hexNode = i, this.head.onmouseover = function () { this.hexNode.className = "hexCurrent" } , this.head.onmouseout = function () { this.hexNode.className = "hex" } , i.asn1 = this, i.onmouseover = function () { var t = !e.selected; t && (e.selected = this.asn1, this.className = "hexCurrent"), this.asn1.fakeHover(t) } , i.onmouseout = function () { var t = e.selected == this.asn1; this.asn1.fakeOut(t), t && (e.selected = null, this.className = "hex") } , this.toHexDOM_sub(i, "tag", this.stream, this.posStart(), this.posStart() + 1), this.toHexDOM_sub(i, this.length >= 0 ? "dlen" : "ulen", this.stream, this.posStart() + 1, this.posContent()), null === this.sub) i.appendChild(r.text(this.stream.hexDump(this.posContent(), this.posEnd()))); else if (this.sub.length > 0) { var s = this.sub[0] , n = this.sub[this.sub.length - 1]; this.toHexDOM_sub(i, "intro", this.stream, this.posContent(), s.posStart()); for (var o = 0, a = this.sub.length; a > o; ++o) i.appendChild(this.sub[o].toHexDOM(e)); this.toHexDOM_sub(i, "outro", this.stream, n.posEnd(), this.posEnd()) } return i } , i.prototype.toHexString = function (t) { return this.stream.hexDump(this.posStart(), this.posEnd(), !0) } , i.decodeLength = function (t) { var e = t.get() , i = 127 & e; if (i == e) return i; if (i > 3) throw "Length over 24 bits not supported at position " + (t.pos - 1); if (0 === i) return -1; e = 0; for (var s = 0; i > s; ++s) e = e << 8 | t.get(); return e } , i.hasContent = function (t, s, n) { if (32 & t) return !0; if (3 > t || t > 4) return !1; var r = new e(n); 3 == t && r.get(); var o = r.get(); if (o >> 6 & 1) return !1; try { var a = i.decodeLength(r); return r.pos - n.pos + a == s } catch (t) { return !1 } } , i.decode = function (t) { t instanceof e || (t = new e(t, 0)); var s = new e(t) , n = t.get() , r = i.decodeLength(t) , o = t.pos - s.pos , a = null; if (i.hasContent(n, r, t)) { var c = t.pos; if (3 == n && t.get(), a = [], r >= 0) { for (var l = c + r; t.pos < l;) a[a.length] = i.decode(t); if (t.pos != l) throw "Content size is not correct for container starting at offset " + c } else try { for (; ;) { var u = i.decode(t); if (0 === u.tag) break; a[a.length] = u } r = c - t.pos } catch (t) { throw "Exception while decoding undefined length content: " + t } } else t.pos += r; return new i(s, o, r, n, a) } , i.test = function () { for (var t = [{ value: [39], expected: 39 }, { value: [129, 201], expected: 201 }, { value: [131, 254, 220, 186], expected: 16702650 }], s = 0, n = t.length; n > s; ++s) { var r = new e(t[s].value, 0) , o = i.decodeLength(r); o != t[s].expected && document.write("In test[" + s + "] expected " + t[s].expected + " got " + o + "\n") } } , window.ASN1 = i }(), ASN1.prototype.getHexStringValue = function () { var t = this.toHexString() , e = 2 * this.header , i = 2 * this.length; return t.substr(e, i) } , le.prototype.parseKey = function (t) { try { var e = 0 , i = 0 , s = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/ , n = s.test(t) ? Hex.decode(t) : Base64.unarmor(t) , r = ASN1.decode(n); if (3 === r.sub.length && (r = r.sub[2].sub[0]), 9 === r.sub.length) { e = r.sub[1].getHexStringValue(), this.n = ae(e, 16), i = r.sub[2].getHexStringValue(), this.e = parseInt(i, 16); var o = r.sub[3].getHexStringValue(); this.d = ae(o, 16); var a = r.sub[4].getHexStringValue(); this.p = ae(a, 16); var c = r.sub[5].getHexStringValue(); this.q = ae(c, 16); var l = r.sub[6].getHexStringValue(); this.dmp1 = ae(l, 16); var u = r.sub[7].getHexStringValue(); this.dmq1 = ae(u, 16); var p = r.sub[8].getHexStringValue(); this.coeff = ae(p, 16) } else { if (2 !== r.sub.length) return !1; var d = r.sub[1] , h = d.sub[0]; e = h.sub[0].getHexStringValue(), this.n = ae(e, 16), i = h.sub[1].getHexStringValue(), this.e = parseInt(i, 16) } return !0 } catch (t) { return !1 } } , le.prototype.getPrivateBaseKey = function () { var t = { array: [new KJUR.asn1.DERInteger({ int: 0 }), new KJUR.asn1.DERInteger({ bigint: this.n }), new KJUR.asn1.DERInteger({ int: this.e }), new KJUR.asn1.DERInteger({ bigint: this.d }), new KJUR.asn1.DERInteger({ bigint: this.p }), new KJUR.asn1.DERInteger({ bigint: this.q }), new KJUR.asn1.DERInteger({ bigint: this.dmp1 }), new KJUR.asn1.DERInteger({ bigint: this.dmq1 }), new KJUR.asn1.DERInteger({ bigint: this.coeff })] } , e = new KJUR.asn1.DERSequence(t); return e.getEncodedHex() } , le.prototype.getPrivateBaseKeyB64 = function () { return be(this.getPrivateBaseKey()) } , le.prototype.getPublicBaseKey = function () { var t = { array: [new KJUR.asn1.DERObjectIdentifier({ oid: "1.2.840.113549.1.1.1" }), new KJUR.asn1.DERNull] } , e = new KJUR.asn1.DERSequence(t); t = { array: [new KJUR.asn1.DERInteger({ bigint: this.n }), new KJUR.asn1.DERInteger({ int: this.e })] }; var i = new KJUR.asn1.DERSequence(t); t = { hex: "00" + i.getEncodedHex() }; var s = new KJUR.asn1.DERBitString(t); t = { array: [e, s] }; var n = new KJUR.asn1.DERSequence(t); return n.getEncodedHex() } , le.prototype.getPublicBaseKeyB64 = function () { return be(this.getPublicBaseKey()) } , le.prototype.wordwrap = function (t, e) { if (e = e || 64, !t) return t; var i = "(.{1," + e + "})( +|$\n?)|(.{1," + e + "})"; return t.match(RegExp(i, "g")).join("\n") } , le.prototype.getPrivateKey = function () { var t = "-----BEGIN RSA PRIVATE KEY-----\n"; return t += this.wordwrap(this.getPrivateBaseKeyB64()) + "\n", t += "-----END RSA PRIVATE KEY-----" } , le.prototype.getPublicKey = function () { var t = "-----BEGIN PUBLIC KEY-----\n"; return t += this.wordwrap(this.getPublicBaseKeyB64()) + "\n", t += "-----END PUBLIC KEY-----" } , le.prototype.hasPublicKeyProperty = function (t) { return t = t || {}, t.hasOwnProperty("n") && t.hasOwnProperty("e") } , le.prototype.hasPrivateKeyProperty = function (t) { return t = t || {}, t.hasOwnProperty("n") && t.hasOwnProperty("e") && t.hasOwnProperty("d") && t.hasOwnProperty("p") && t.hasOwnProperty("q") && t.hasOwnProperty("dmp1") && t.hasOwnProperty("dmq1") && t.hasOwnProperty("coeff") } , le.prototype.parsePropertiesFrom = function (t) { this.n = t.n, this.e = t.e, t.hasOwnProperty("d") && (this.d = t.d, this.p = t.p, this.q = t.q, this.dmp1 = t.dmp1, this.dmq1 = t.dmq1, this.coeff = t.coeff) } ; var He = function (t) { le.call(this), t && ("string" == typeof t ? this.parseKey(t) : (this.hasPrivateKeyProperty(t) || this.hasPublicKeyProperty(t)) && this.parsePropertiesFrom(t)) }; He.prototype = new le, He.prototype.constructor = He; var qe = function (t) { t = t || {}, this.default_key_size = parseInt(t.default_key_size) || 1024, this.default_public_exponent = t.default_public_exponent || "010001", this.log = t.log || !1, this.key = null }; qe.prototype.setKey = function (t) { this.log && this.key && console.warn("A key was already set, overriding existing."), this.key = new He(t) } , qe.prototype.setPrivateKey = function (t) { this.setKey(t) } , qe.prototype.setPublicKey = function (t) { this.setKey(t) } , qe.prototype.decrypt = function (t) { try { return this.getKey().decrypt(ye(t)) } catch (t) { return !1 } } , qe.prototype.encrypt = function (t) { try { return be(this.getKey().encrypt(t)) } catch (t) { return !1 } } , qe.prototype.getKey = function (t) { if (!this.key) { if (this.key = new He, t && "[object Function]" === {}.toString.call(t)) return void this.key.generateAsync(this.default_key_size, this.default_public_exponent, t); this.key.generate(this.default_key_size, this.default_public_exponent) } return this.key } , qe.prototype.getPrivateKey = function () { return this.getKey().getPrivateKey() } , qe.prototype.getPrivateKeyB64 = function () { return this.getKey().getPrivateBaseKeyB64() } , qe.prototype.getPublicKey = function () { return this.getKey().getPublicKey() } , qe.prototype.getPublicKeyB64 = function () { return this.getKey().getPublicBaseKeyB64() } , qe.version = "2.3.1", t.JSEncrypt = qe }) } .call(e, i, e, t), !(void 0 !== s && (t.exports = s)) } }) // 1658372856749|123456 let n = _n('jiemi') n = new n; console.log(n.encode('12344',1234))
2. https://www.qimingpian.cn/finosda/project/ainvestment 里面的 encrypt_data XHR 2022/7/23

window = global; var _n; !function (e) { function c(c) { for (var f, t, b = c[0], n = c[1], o = c[2], u = 0, l = []; u < b.length; u++) t = b[u], d[t] && l.push(d[t][0]), d[t] = 0; for (f in n) Object.prototype.hasOwnProperty.call(n, f) && (e[f] = n[f]); for (i && i(c); l.length;) l.shift()(); return r.push.apply(r, o || []), a() } function a() { for (var e, c = 0; c < r.length; c++) { for (var a = r[c], f = !0, t = 1; t < a.length; t++) { var n = a[t]; 0 !== d[n] && (f = !1) } f && (r.splice(c--, 1), e = b(b.s = a[0])) } return e } var f = {} , t = { 48: 0 } , d = { 48: 0 } , r = []; function b(c) { if (f[c]) return f[c].exports; var a = f[c] = { i: c, l: !1, exports: {} }; return e[c].call(a.exports, a, a.exports, b), a.l = !0, a.exports } b.e = function (e) { var c = []; t[e] ? c.push(t[e]) : 0 !== t[e] && { 0: 1, 6: 1, 7: 1, 9: 1, 10: 1, 11: 1, 12: 1, 13: 1, 21: 1, 22: 1, 23: 1, 24: 1, 25: 1, 26: 1, 27: 1, 28: 1, 29: 1, 30: 1, 31: 1, 32: 1, 33: 1, 34: 1, 35: 1, 36: 1, 37: 1, 38: 1, 39: 1, 40: 1, 41: 1, 42: 1, 43: 1, 44: 1, 45: 1 }[e] && c.push(t[e] = new Promise(function (c, a) { for (var f = "static/css/" + ({ 0: "vendors", 1: "chunk-echarts" }[e] || e) + "." + { 0: "adfb01fb417c85c735b9", 1: "9d9d5fe3a7104cc08054", 2: "64523b56b871243e4601", 3: "abe1de1aefa6af089d4d", 4: "ccbcd7a0712351b4f2cb", 6: "3c91c6b5438cc13202ab", 7: "4235bf7830bad8cda1ae", 8: "346585e4d6661010a641", 9: "8d757ee0f1d183a5c601", 10: "c09a2ff2e95c917a468d", 11: "71271424afb16a152bd9", 12: "e6441b79555c46ef68b2", 13: "b23ef26c864adb4e502f", 14: "90599d810dfdcb405ffc", 15: "eb642912a280e00926a7", 16: "1f6b34356f677d684749", 17: "b3ec10b4d9272361a4b6", 18: "e7fbe24707bf419f646d", 19: "94e511960c00743727a0", 20: "1c2e763483c99ccb6f15", 21: "5096fd6b71d53980b2ef", 22: "de202d0099f067b2dd12", 23: "76d8ec3c625ca0ed300f", 24: "433f49b3e75e26789005", 25: "b75a652ffa132e9972ca", 26: "f7906c812c1dce7c7fa9", 27: "68fb1f4f5e9571d7a782", 28: "db33b5e53e527d8ed7ca", 29: "d4bc3b45b9e0412a82a9", 30: "6c287e5f5ec69dd09398", 31: "65cb9e24b154020e3c55", 32: "d7c6de8ecbceb131dd3c", 33: "3d05738dba9325b65718", 34: "5978e5fccffab46a340f", 35: "0466b56f097e2a83ad60", 36: "f12738977a40421efc17", 37: "df51b93d15d251cbcb34", 38: "47ae02b383be7f7f9175", 39: "1d8e682cca8a686721a4", 40: "68cb3834082a3111335d", 41: "a0ea856e01fbc947c0da", 42: "771ae46fceeb9aff8141", 43: "6cd83fe8bd1ce58cfe38", 44: "d70f1afb7987dac8ec0e", 45: "d4e74debed07c7a4c0e4" }[e] + ".css", t = b.p + f, d = document.getElementsByTagName("link"), r = 0; r < d.length; r++) { var n = (u = d[r]).getAttribute("data-href") || u.getAttribute("href"); if ("stylesheet" === u.rel && (n === f || n === t)) return c() } var o = document.getElementsByTagName("style"); for (r = 0; r < o.length; r++) { var u; if ((n = (u = o[r]).getAttribute("data-href")) === f || n === t) return c() } var i = document.createElement("link"); i.rel = "stylesheet", i.type = "text/css", i.onload = c, i.onerror = function (c) { var f = c && c.target && c.target.src || t , d = new Error("Loading CSS chunk " + e + " failed.\n(" + f + ")"); d.request = f, a(d) } , i.href = t, document.getElementsByTagName("head")[0].appendChild(i) } ).then(function () { t[e] = 0 })); var a = d[e]; if (0 !== a) if (a) c.push(a[2]); else { var f = new Promise(function (c, f) { a = d[e] = [c, f] } ); c.push(a[2] = f); var r, n = document.getElementsByTagName("head")[0], o = document.createElement("script"); o.charset = "utf-8", o.timeout = 120, b.nc && o.setAttribute("nonce", b.nc), o.src = function (e) { return b.p + "static/js/" + ({ 0: "vendors", 1: "chunk-echarts" }[e] || e) + "." + { 0: "adfb01fb417c85c735b9", 1: "9d9d5fe3a7104cc08054", 2: "64523b56b871243e4601", 3: "abe1de1aefa6af089d4d", 4: "ccbcd7a0712351b4f2cb", 6: "3c91c6b5438cc13202ab", 7: "4235bf7830bad8cda1ae", 8: "346585e4d6661010a641", 9: "8d757ee0f1d183a5c601", 10: "c09a2ff2e95c917a468d", 11: "71271424afb16a152bd9", 12: "e6441b79555c46ef68b2", 13: "b23ef26c864adb4e502f", 14: "90599d810dfdcb405ffc", 15: "eb642912a280e00926a7", 16: "1f6b34356f677d684749", 17: "b3ec10b4d9272361a4b6", 18: "e7fbe24707bf419f646d", 19: "94e511960c00743727a0", 20: "1c2e763483c99ccb6f15", 21: "5096fd6b71d53980b2ef", 22: "de202d0099f067b2dd12", 23: "76d8ec3c625ca0ed300f", 24: "433f49b3e75e26789005", 25: "b75a652ffa132e9972ca", 26: "f7906c812c1dce7c7fa9", 27: "68fb1f4f5e9571d7a782", 28: "db33b5e53e527d8ed7ca", 29: "d4bc3b45b9e0412a82a9", 30: "6c287e5f5ec69dd09398", 31: "65cb9e24b154020e3c55", 32: "d7c6de8ecbceb131dd3c", 33: "3d05738dba9325b65718", 34: "5978e5fccffab46a340f", 35: "0466b56f097e2a83ad60", 36: "f12738977a40421efc17", 37: "df51b93d15d251cbcb34", 38: "47ae02b383be7f7f9175", 39: "1d8e682cca8a686721a4", 40: "68cb3834082a3111335d", 41: "a0ea856e01fbc947c0da", 42: "771ae46fceeb9aff8141", 43: "6cd83fe8bd1ce58cfe38", 44: "d70f1afb7987dac8ec0e", 45: "d4e74debed07c7a4c0e4" }[e] + ".js" }(e), r = function (c) { o.onerror = o.onload = null, clearTimeout(u); var a = d[e]; if (0 !== a) { if (a) { var f = c && ("load" === c.type ? "missing" : c.type) , t = c && c.target && c.target.src , r = new Error("Loading chunk " + e + " failed.\n(" + f + ": " + t + ")"); r.type = f, r.request = t, a[1](r) } d[e] = void 0 } } ; var u = setTimeout(function () { r({ type: "timeout", target: o }) }, 12e4); o.onerror = o.onload = r, n.appendChild(o) } return Promise.all(c) } , b.m = e, b.c = f, b.d = function (e, c, a) { b.o(e, c) || Object.defineProperty(e, c, { enumerable: !0, get: a }) } , b.r = function (e) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 }) } , b.t = function (e, c) { if (1 & c && (e = b(e)), 8 & c) return e; if (4 & c && "object" == typeof e && e && e.__esModule) return e; var a = Object.create(null); if (b.r(a), Object.defineProperty(a, "default", { enumerable: !0, value: e }), 2 & c && "string" != typeof e) for (var f in e) b.d(a, f, function (c) { return e[c] } .bind(null, f)); return a } , b.n = function (e) { var c = e && e.__esModule ? function () { return e.default } : function () { return e } ; return b.d(c, "a", c), c } , b.o = function (e, c) { return Object.prototype.hasOwnProperty.call(e, c) } , b.p = "/", b.oe = function (e) { throw console.error(e), e } ; var n = window.webpackJsonp = window.webpackJsonp || [] , o = n.push.bind(n); n.push = c, n = n.slice(); for (var u = 0; u < n.length; u++) c(n[u]); var i = o; a() _n = b; }({ aqBw: function(t, e, n) { (function(t, r) { var i; /*! http://mths.be/base64 v0.1.0 by @mathias | MIT license */ !function(o) { var a = "object" == typeof e && e , s = ("object" == typeof t && t && t.exports, "object" == typeof r && r); s.global !== s && s.window; var u = function(t) { this.message = t }; (u.prototype = new Error).name = "InvalidCharacterError"; var l = function(t) { throw new u(t) } , c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" , f = /[\t\n\f\r ]/g , d = { encode: function(t) { t = String(t), /[^\0-\xFF]/.test(t) && l("The string to be encoded contains characters outside of the Latin1 range."); for (var e, n, r, i, o = t.length % 3, a = "", s = -1, u = t.length - o; ++s < u; ) e = t.charCodeAt(s) << 16, n = t.charCodeAt(++s) << 8, r = t.charCodeAt(++s), a += c.charAt((i = e + n + r) >> 18 & 63) + c.charAt(i >> 12 & 63) + c.charAt(i >> 6 & 63) + c.charAt(63 & i); return 2 == o ? (e = t.charCodeAt(s) << 8, n = t.charCodeAt(++s), a += c.charAt((i = e + n) >> 10) + c.charAt(i >> 4 & 63) + c.charAt(i << 2 & 63) + "=") : 1 == o && (i = t.charCodeAt(s), a += c.charAt(i >> 2) + c.charAt(i << 4 & 63) + "=="), a }, decode: function(t) { var e = (t = String(t).replace(f, "")).length; e % 4 == 0 && (e = (t = t.replace(/==?$/, "")).length), (e % 4 == 1 || /[^+a-zA-Z0-9/]/.test(t)) && l("Invalid character: the string to be decoded is not correctly encoded."); for (var n, r, i = 0, o = "", a = -1; ++a < e; ) r = c.indexOf(t.charAt(a)), n = i % 4 ? 64 * n + r : r, i++ % 4 && (o += String.fromCharCode(255 & n >> (-2 * i & 6))); return o }, version: "0.1.0" }; void 0 === (i = function() { return d } .call(e, n, e, t)) || (t.exports = i) }() } ).call(this, n("YuTi")(t), n("yLpj")) }, YuTi: function(t, e) { t.exports = function(t) { return t.webpackPolyfill || (t.deprecate = function() {} , t.paths = [], t.children || (t.children = []), Object.defineProperty(t, "loaded", { enumerable: !0, get: function() { return t.l } }), Object.defineProperty(t, "id", { enumerable: !0, get: function() { return t.i } }), t.webpackPolyfill = 1), t } }, yLpj: function(t, e) { var n; n = function() { return this }(); try { n = n || Function("return this")() || (0, eval)("this") } catch (t) { "object" == typeof window && (n = window) } t.exports = n } }); function o(e, t, i, n, a, o) { var s, c, r, l, d, u, h, p, f, m, v, g, y, b, C = new Array(16843776, 0, 65536, 16843780, 16842756, 66564, 4, 65536, 1024, 16843776, 16843780, 1024, 16778244, 16842756, 16777216, 4, 1028, 16778240, 16778240, 66560, 66560, 16842752, 16842752, 16778244, 65540, 16777220, 16777220, 65540, 0, 1028, 66564, 16777216, 65536, 16843780, 4, 16842752, 16843776, 16777216, 16777216, 1024, 16842756, 65536, 66560, 16777220, 1024, 4, 16778244, 66564, 16843780, 65540, 16842752, 16778244, 16777220, 1028, 66564, 16843776, 1028, 16778240, 16778240, 0, 65540, 66560, 0, 16842756), _ = new Array(-2146402272, -2147450880, 32768, 1081376, 1048576, 32, -2146435040, -2147450848, -2147483616, -2146402272, -2146402304, -2147483648, -2147450880, 1048576, 32, -2146435040, 1081344, 1048608, -2147450848, 0, -2147483648, 32768, 1081376, -2146435072, 1048608, -2147483616, 0, 1081344, 32800, -2146402304, -2146435072, 32800, 0, 1081376, -2146435040, 1048576, -2147450848, -2146435072, -2146402304, 32768, -2146435072, -2147450880, 32, -2146402272, 1081376, 32, 32768, -2147483648, 32800, -2146402304, 1048576, -2147483616, 1048608, -2147450848, -2147483616, 1048608, 1081344, 0, -2147450880, 32800, -2147483648, -2146435040, -2146402272, 1081344), w = new Array(520, 134349312, 0, 134348808, 134218240, 0, 131592, 134218240, 131080, 134217736, 134217736, 131072, 134349320, 131080, 134348800, 520, 134217728, 8, 134349312, 512, 131584, 134348800, 134348808, 131592, 134218248, 131584, 131072, 134218248, 8, 134349320, 512, 134217728, 134349312, 134217728, 131080, 520, 131072, 134349312, 134218240, 0, 512, 131080, 134349320, 134218240, 134217736, 512, 0, 134348808, 134218248, 131072, 134217728, 134349320, 8, 131592, 131584, 134217736, 134348800, 134218248, 520, 134348800, 131592, 8, 134348808, 131584), k = new Array(8396801, 8321, 8321, 128, 8396928, 8388737, 8388609, 8193, 0, 8396800, 8396800, 8396929, 129, 0, 8388736, 8388609, 1, 8192, 8388608, 8396801, 128, 8388608, 8193, 8320, 8388737, 1, 8320, 8388736, 8192, 8396928, 8396929, 129, 8388736, 8388609, 8396800, 8396929, 129, 0, 0, 8396800, 8320, 8388736, 8388737, 1, 8396801, 8321, 8321, 128, 8396929, 129, 1, 8192, 8388609, 8193, 8396928, 8388737, 8193, 8320, 8388608, 8396801, 128, 8388608, 8192, 8396928), x = new Array(256, 34078976, 34078720, 1107296512, 524288, 256, 1073741824, 34078720, 1074266368, 524288, 33554688, 1074266368, 1107296512, 1107820544, 524544, 1073741824, 33554432, 1074266112, 1074266112, 0, 1073742080, 1107820800, 1107820800, 33554688, 1107820544, 1073742080, 0, 1107296256, 34078976, 33554432, 1107296256, 524544, 524288, 1107296512, 256, 33554432, 1073741824, 34078720, 1107296512, 1074266368, 33554688, 1073741824, 1107820544, 34078976, 1074266368, 256, 33554432, 1107820544, 1107820800, 524544, 1107296256, 1107820800, 34078720, 0, 1074266112, 1107296256, 524544, 33554688, 1073742080, 524288, 0, 1074266112, 34078976, 1073742080), T = new Array(536870928, 541065216, 16384, 541081616, 541065216, 16, 541081616, 4194304, 536887296, 4210704, 4194304, 536870928, 4194320, 536887296, 536870912, 16400, 0, 4194320, 536887312, 16384, 4210688, 536887312, 16, 541065232, 541065232, 0, 4210704, 541081600, 16400, 4210688, 541081600, 536870912, 536887296, 16, 541065232, 4210688, 541081616, 4194304, 16400, 536870928, 4194304, 536887296, 536870912, 16400, 536870928, 541081616, 4210688, 541065216, 4210704, 541081600, 0, 541065232, 16, 16384, 541065216, 4210704, 16384, 4194320, 536887312, 0, 541081600, 536870912, 4194320, 536887312), $ = new Array(2097152, 69206018, 67110914, 0, 2048, 67110914, 2099202, 69208064, 69208066, 2097152, 0, 67108866, 2, 67108864, 69206018, 2050, 67110912, 2099202, 2097154, 67110912, 67108866, 69206016, 69208064, 2097154, 69206016, 2048, 2050, 69208066, 2099200, 2, 67108864, 2099200, 67108864, 2099200, 2097152, 67110914, 67110914, 69206018, 69206018, 2, 2097154, 67108864, 67110912, 2097152, 69208064, 2050, 2099202, 69208064, 2050, 67108866, 69208066, 69206016, 2099200, 0, 2, 69208066, 0, 2099202, 69206016, 2048, 67108866, 67110912, 2048, 2097154), N = new Array(268439616, 4096, 262144, 268701760, 268435456, 268439616, 64, 268435456, 262208, 268697600, 268701760, 266240, 268701696, 266304, 4096, 64, 268697600, 268435520, 268439552, 4160, 266240, 262208, 268697664, 268701696, 4160, 0, 0, 268697664, 268435520, 268439552, 266304, 262144, 266304, 262144, 268701696, 4096, 64, 268697664, 4096, 266304, 268439552, 64, 268435520, 268697600, 268697664, 268435456, 262144, 268439616, 0, 268701760, 262208, 268435520, 268697600, 268439552, 268439616, 0, 268701760, 266240, 266240, 4160, 4160, 262208, 268435456, 268701696), A = function (e) { for (var t, i, n, a = new Array(0, 4, 536870912, 536870916, 65536, 65540, 536936448, 536936452, 512, 516, 536871424, 536871428, 66048, 66052, 536936960, 536936964), o = new Array(0, 1, 1048576, 1048577, 67108864, 67108865, 68157440, 68157441, 256, 257, 1048832, 1048833, 67109120, 67109121, 68157696, 68157697), s = new Array(0, 8, 2048, 2056, 16777216, 16777224, 16779264, 16779272, 0, 8, 2048, 2056, 16777216, 16777224, 16779264, 16779272), c = new Array(0, 2097152, 134217728, 136314880, 8192, 2105344, 134225920, 136323072, 131072, 2228224, 134348800, 136445952, 139264, 2236416, 134356992, 136454144), r = new Array(0, 262144, 16, 262160, 0, 262144, 16, 262160, 4096, 266240, 4112, 266256, 4096, 266240, 4112, 266256), l = new Array(0, 1024, 32, 1056, 0, 1024, 32, 1056, 33554432, 33555456, 33554464, 33555488, 33554432, 33555456, 33554464, 33555488), d = new Array(0, 268435456, 524288, 268959744, 2, 268435458, 524290, 268959746, 0, 268435456, 524288, 268959744, 2, 268435458, 524290, 268959746), u = new Array(0, 65536, 2048, 67584, 536870912, 536936448, 536872960, 536938496, 131072, 196608, 133120, 198656, 537001984, 537067520, 537004032, 537069568), h = new Array(0, 262144, 0, 262144, 2, 262146, 2, 262146, 33554432, 33816576, 33554432, 33816576, 33554434, 33816578, 33554434, 33816578), p = new Array(0, 268435456, 8, 268435464, 0, 268435456, 8, 268435464, 1024, 268436480, 1032, 268436488, 1024, 268436480, 1032, 268436488), f = new Array(0, 32, 0, 32, 1048576, 1048608, 1048576, 1048608, 8192, 8224, 8192, 8224, 1056768, 1056800, 1056768, 1056800), m = new Array(0, 16777216, 512, 16777728, 2097152, 18874368, 2097664, 18874880, 67108864, 83886080, 67109376, 83886592, 69206016, 85983232, 69206528, 85983744), v = new Array(0, 4096, 134217728, 134221824, 524288, 528384, 134742016, 134746112, 16, 4112, 134217744, 134221840, 524304, 528400, 134742032, 134746128), g = new Array(0, 4, 256, 260, 0, 4, 256, 260, 1, 5, 257, 261, 1, 5, 257, 261), y = e.length > 8 ? 3 : 1, b = new Array(32 * y), C = new Array(0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0), _ = 0, w = 0, k = 0; k < y; k++) { var x = e.charCodeAt(_++) << 24 | e.charCodeAt(_++) << 16 | e.charCodeAt(_++) << 8 | e.charCodeAt(_++) , T = e.charCodeAt(_++) << 24 | e.charCodeAt(_++) << 16 | e.charCodeAt(_++) << 8 | e.charCodeAt(_++); x ^= (n = 252645135 & (x >>> 4 ^ T)) << 4, x ^= n = 65535 & ((T ^= n) >>> -16 ^ x), x ^= (n = 858993459 & (x >>> 2 ^ (T ^= n << -16))) << 2, x ^= n = 65535 & ((T ^= n) >>> -16 ^ x), x ^= (n = 1431655765 & (x >>> 1 ^ (T ^= n << -16))) << 1, x ^= n = 16711935 & ((T ^= n) >>> 8 ^ x), n = (x ^= (n = 1431655765 & (x >>> 1 ^ (T ^= n << 8))) << 1) << 8 | (T ^= n) >>> 20 & 240, x = T << 24 | T << 8 & 16711680 | T >>> 8 & 65280 | T >>> 24 & 240, T = n; for (var $ = 0; $ < C.length; $++) C[$] ? (x = x << 2 | x >>> 26, T = T << 2 | T >>> 26) : (x = x << 1 | x >>> 27, T = T << 1 | T >>> 27), T &= -15, t = a[(x &= -15) >>> 28] | o[x >>> 24 & 15] | s[x >>> 20 & 15] | c[x >>> 16 & 15] | r[x >>> 12 & 15] | l[x >>> 8 & 15] | d[x >>> 4 & 15], i = u[T >>> 28] | h[T >>> 24 & 15] | p[T >>> 20 & 15] | f[T >>> 16 & 15] | m[T >>> 12 & 15] | v[T >>> 8 & 15] | g[T >>> 4 & 15], n = 65535 & (i >>> 16 ^ t), b[w++] = t ^ n, b[w++] = i ^ n << 16 } return b }(e), L = 0, S = t.length, z = 0, B = 32 == A.length ? 3 : 9; p = 3 == B ? i ? new Array(0, 32, 2) : new Array(30, -2, -2) : i ? new Array(0, 32, 2, 62, 30, -2, 64, 96, 2) : new Array(94, 62, -2, 32, 64, 2, 30, -2, -2), 2 == o ? t += " " : 1 == o ? i && (r = 8 - S % 8, t += String.fromCharCode(r, r, r, r, r, r, r, r), 8 === r && (S += 8)) : o || (t += "\0\0\0\0\0\0\0\0"); var F = "" , I = ""; for (1 == n && (f = a.charCodeAt(L++) << 24 | a.charCodeAt(L++) << 16 | a.charCodeAt(L++) << 8 | a.charCodeAt(L++), v = a.charCodeAt(L++) << 24 | a.charCodeAt(L++) << 16 | a.charCodeAt(L++) << 8 | a.charCodeAt(L++), L = 0); L < S;) { for (u = t.charCodeAt(L++) << 24 | t.charCodeAt(L++) << 16 | t.charCodeAt(L++) << 8 | t.charCodeAt(L++), h = t.charCodeAt(L++) << 24 | t.charCodeAt(L++) << 16 | t.charCodeAt(L++) << 8 | t.charCodeAt(L++), 1 == n && (i ? (u ^= f, h ^= v) : (m = f, g = v, f = u, v = h)), u ^= (r = 252645135 & (u >>> 4 ^ h)) << 4, u ^= (r = 65535 & (u >>> 16 ^ (h ^= r))) << 16, u ^= r = 858993459 & ((h ^= r) >>> 2 ^ u), u ^= r = 16711935 & ((h ^= r << 2) >>> 8 ^ u), u = (u ^= (r = 1431655765 & (u >>> 1 ^ (h ^= r << 8))) << 1) << 1 | u >>> 31, h = (h ^= r) << 1 | h >>> 31, c = 0; c < B; c += 3) { for (y = p[c + 1], b = p[c + 2], s = p[c]; s != y; s += b) l = h ^ A[s], d = (h >>> 4 | h << 28) ^ A[s + 1], r = u, u = h, h = r ^ (_[l >>> 24 & 63] | k[l >>> 16 & 63] | T[l >>> 8 & 63] | N[63 & l] | C[d >>> 24 & 63] | w[d >>> 16 & 63] | x[d >>> 8 & 63] | $[63 & d]); r = u, u = h, h = r } h = h >>> 1 | h << 31, h ^= r = 1431655765 & ((u = u >>> 1 | u << 31) >>> 1 ^ h), h ^= (r = 16711935 & (h >>> 8 ^ (u ^= r << 1))) << 8, h ^= (r = 858993459 & (h >>> 2 ^ (u ^= r))) << 2, h ^= r = 65535 & ((u ^= r) >>> 16 ^ h), h ^= r = 252645135 & ((u ^= r << 16) >>> 4 ^ h), u ^= r << 4, 1 == n && (i ? (f = u, v = h) : (u ^= m, h ^= g)), I += String.fromCharCode(u >>> 24, u >>> 16 & 255, u >>> 8 & 255, 255 & u, h >>> 24, h >>> 16 & 255, h >>> 8 & 255, 255 & h), 512 == (z += 8) && (F += I, I = "", z = 0) } if (F = (F += I).replace(/\0*$/g, ""), !i) { if (1 === o) { var j = 0; (S = F.length) && (j = F.charCodeAt(S - 1)), j <= 8 && (F = F.substring(0, S - j)) } F = decodeURIComponent(escape(F)) } return F } function get_data(e){ var a = _n("aqBw") var data = o("5e5062e82f15fe4ca9d24bc5", a.decode(e), 0, 0, "012345677890123", 1); return JSON.parse(data) }
3. http://yizhan.mamayz.com/login header 里面的 参数 digest 2022/7/23

window = global; var _n; (function(t) { function e(e) { for (var a, o, c = e[0], s = e[1], u = e[2], l = 0, d = []; l < c.length; l++) o = c[l], Object.prototype.hasOwnProperty.call(r, o) && r[o] && d.push(r[o][0]), r[o] = 0; for (a in s) Object.prototype.hasOwnProperty.call(s, a) && (t[a] = s[a]); p && p(e); while (d.length) d.shift()(); return i.push.apply(i, u || []), n() } function n() { for (var t, e = 0; e < i.length; e++) { for (var n = i[e], a = !0, o = 1; o < n.length; o++) { var c = n[o]; 0 !== r[c] && (a = !1) } a && (i.splice(e--, 1), t = s(s.s = n[0])) } return t } var a = {} , o = { app: 0 } , r = { app: 0 } , i = []; function c(t) { return s.p + "js/" + ({}[t] || t) + "." + { "chunk-0132181a": "a12dd75d", "chunk-05c3e3f6": "78dca1a7", "chunk-09b00496": "451d1d07", "chunk-0b0114a9": "7b289402", "chunk-0b4b4c9a": "19e4f150", "chunk-1488ffb5": "6835a2e7", "chunk-16913ead": "172bd542", "chunk-1770658f": "1ebebee1", "chunk-1f7057be": "985ed1c7", "chunk-2124e62c": "0eee3ed5", "chunk-e672110e": "2579323f", "chunk-e064a8e0": "ae2e1242", "chunk-fa9dd188": "fb39e94d", "chunk-290b7ef2": "9e9c6a61", "chunk-1433619e": "356be961", "chunk-1748e4b6": "b1182bb5", "chunk-1cc0d121": "cb8f1f97", "chunk-b6c014ba": "633022fa", "chunk-29d72531": "ab732fac", "chunk-2d0ba398": "dc68c48c", "chunk-2d0ce7fc": "3359a9f4", "chunk-2fe1f53a": "d1513e24", "chunk-335a55b3": "a4a78629", "chunk-3460df06": "523e4b1a", "chunk-35d465c0": "43b85b9a", "chunk-3e40b380": "024fd5a1", "chunk-00930d03": "daf919fd", "chunk-4e965b14": "db969f4e", "chunk-7bebb407": "dc53a7a3", "chunk-3ecffc21": "01a545e4", "chunk-479a1ac5": "d0fb2de8", "chunk-4fb40d80": "09256ca1", "chunk-514883e8": "d982e65f", "chunk-5734cb2d": "ab09b806", "chunk-5efd45a9": "06908f99", "chunk-65e3525d": "ef6ef483", "chunk-6733751a": "f47c246a", "chunk-6c41078f": "74f393b5", "chunk-7c89e388": "bc248d8b", "chunk-846183c4": "3f0b1cc8", "chunk-a7685a5a": "17b0244c", "chunk-deb1b3ba": "fb9f1094", "chunk-7bbf455f": "cee8170a", "chunk-e923ca14": "322b78b2", "chunk-ec62bd12": "44b9e3c2", "chunk-0592f1d9": "8bc71018" }[t] + ".js" } function s(e) { if (a[e]) return a[e].exports; var n = a[e] = { i: e, l: !1, exports: {} }; return t[e].call(n.exports, n, n.exports, s), n.l = !0, n.exports } s.e = function(t) { var e = [] , n = { "chunk-0132181a": 1, "chunk-05c3e3f6": 1, "chunk-0b0114a9": 1, "chunk-0b4b4c9a": 1, "chunk-1488ffb5": 1, "chunk-16913ead": 1, "chunk-1770658f": 1, "chunk-1f7057be": 1, "chunk-e064a8e0": 1, "chunk-fa9dd188": 1, "chunk-1433619e": 1, "chunk-1748e4b6": 1, "chunk-1cc0d121": 1, "chunk-b6c014ba": 1, "chunk-29d72531": 1, "chunk-2fe1f53a": 1, "chunk-335a55b3": 1, "chunk-3460df06": 1, "chunk-35d465c0": 1, "chunk-00930d03": 1, "chunk-4e965b14": 1, "chunk-7bebb407": 1, "chunk-3ecffc21": 1, "chunk-479a1ac5": 1, "chunk-4fb40d80": 1, "chunk-514883e8": 1, "chunk-5734cb2d": 1, "chunk-5efd45a9": 1, "chunk-65e3525d": 1, "chunk-6733751a": 1, "chunk-6c41078f": 1, "chunk-7c89e388": 1, "chunk-846183c4": 1, "chunk-a7685a5a": 1, "chunk-deb1b3ba": 1, "chunk-7bbf455f": 1, "chunk-e923ca14": 1, "chunk-ec62bd12": 1, "chunk-0592f1d9": 1 }; o[t] ? e.push(o[t]) : 0 !== o[t] && n[t] && e.push(o[t] = new Promise((function(e, n) { for (var a = "css/" + ({}[t] || t) + "." + { "chunk-0132181a": "10a2fe00", "chunk-05c3e3f6": "eb71cce8", "chunk-09b00496": "31d6cfe0", "chunk-0b0114a9": "8fafc082", "chunk-0b4b4c9a": "209c5c8b", "chunk-1488ffb5": "9a72e568", "chunk-16913ead": "b401324d", "chunk-1770658f": "5b850d28", "chunk-1f7057be": "7db062a8", "chunk-2124e62c": "31d6cfe0", "chunk-e672110e": "31d6cfe0", "chunk-e064a8e0": "d817b355", "chunk-fa9dd188": "6668f920", "chunk-290b7ef2": "31d6cfe0", "chunk-1433619e": "bac3b230", "chunk-1748e4b6": "f88c6f9f", "chunk-1cc0d121": "bd8c4454", "chunk-b6c014ba": "83ba0eaa", "chunk-29d72531": "a8255563", "chunk-2d0ba398": "31d6cfe0", "chunk-2d0ce7fc": "31d6cfe0", "chunk-2fe1f53a": "5c1aa07d", "chunk-335a55b3": "d0948bf9", "chunk-3460df06": "bffd4c1e", "chunk-35d465c0": "a7acbfca", "chunk-3e40b380": "31d6cfe0", "chunk-00930d03": "c4f55007", "chunk-4e965b14": "57d27463", "chunk-7bebb407": "86ba6fa9", "chunk-3ecffc21": "17d764fd", "chunk-479a1ac5": "6a9ec91a", "chunk-4fb40d80": "4e713414", "chunk-514883e8": "9e64bfff", "chunk-5734cb2d": "aadad8f0", "chunk-5efd45a9": "6ebc5aed", "chunk-65e3525d": "598d6dd6", "chunk-6733751a": "204c4bb8", "chunk-6c41078f": "2b6e5e24", "chunk-7c89e388": "a97804a2", "chunk-846183c4": "b20c5572", "chunk-a7685a5a": "5e125fb1", "chunk-deb1b3ba": "4265f81d", "chunk-7bbf455f": "088bfdf7", "chunk-e923ca14": "db6ea7f8", "chunk-ec62bd12": "e6319dc6", "chunk-0592f1d9": "968bcdaf" }[t] + ".css", r = s.p + a, i = document.getElementsByTagName("link"), c = 0; c < i.length; c++) { var u = i[c] , l = u.getAttribute("data-href") || u.getAttribute("href"); if ("stylesheet" === u.rel && (l === a || l === r)) return e() } var d = document.getElementsByTagName("style"); for (c = 0; c < d.length; c++) { u = d[c], l = u.getAttribute("data-href"); if (l === a || l === r) return e() } var p = document.createElement("link"); p.rel = "stylesheet", p.type = "text/css", p.onload = e, p.onerror = function(e) { var a = e && e.target && e.target.src || r , i = new Error("Loading CSS chunk " + t + " failed.\n(" + a + ")"); i.code = "CSS_CHUNK_LOAD_FAILED", i.request = a, delete o[t], p.parentNode.removeChild(p), n(i) } , p.href = r; var f = document.getElementsByTagName("head")[0]; f.appendChild(p) } )).then((function() { o[t] = 0 } ))); var a = r[t]; if (0 !== a) if (a) e.push(a[2]); else { var i = new Promise((function(e, n) { a = r[t] = [e, n] } )); e.push(a[2] = i); var u, l = document.createElement("script"); l.charset = "utf-8", l.timeout = 120, s.nc && l.setAttribute("nonce", s.nc), l.src = c(t); var d = new Error; u = function(e) { l.onerror = l.onload = null, clearTimeout(p); var n = r[t]; if (0 !== n) { if (n) { var a = e && ("load" === e.type ? "missing" : e.type) , o = e && e.target && e.target.src; d.message = "Loading chunk " + t + " failed.\n(" + a + ": " + o + ")", d.name = "ChunkLoadError", d.type = a, d.request = o, n[1](d) } r[t] = void 0 } } ; var p = setTimeout((function() { u({ type: "timeout", target: l }) } ), 12e4); l.onerror = l.onload = u, document.head.appendChild(l) } return Promise.all(e) } , s.m = t, s.c = a, s.d = function(t, e, n) { s.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: n }) } , s.r = function(t) { "undefined" !== typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }) } , s.t = function(t, e) { if (1 & e && (t = s(t)), 8 & e) return t; if (4 & e && "object" === typeof t && t && t.__esModule) return t; var n = Object.create(null); if (s.r(n), Object.defineProperty(n, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t) for (var a in t) s.d(n, a, function(e) { return t[e] } .bind(null, a)); return n } , s.n = function(t) { var e = t && t.__esModule ? function() { return t["default"] } : function() { return t } ; return s.d(e, "a", e), e } , s.o = function(t, e) { return Object.prototype.hasOwnProperty.call(t, e) } , s.p = "/", s.oe = function(t) { throw console.error(t), t } ; var u = window["webpackJsonp"] = window["webpackJsonp"] || [] , l = u.push.bind(u); u.push = e, u = u.slice(); for (var d = 0; d < u.length; d++) e(u[d]); var p = l; i.push([0, "chunk-vendors"]), n(); _n = s; } )({ "21bf" : function(t, e, i) { (function(e) { (function(e, i) { t.exports = i() } )(0, (function() { var t = t || function(t, n) { var r; if ("undefined" !== typeof window && window.crypto && (r = window.crypto), !r && "undefined" !== typeof window && window.msCrypto && (r = window.msCrypto), !r && "undefined" !== typeof e && e.crypto && (r = e.crypto), !r) try { r = i("09c6") } catch (g) {} var o = function() { if (r) { if ("function" === typeof r.getRandomValues) try { return r.getRandomValues(new Uint32Array(1))[0] } catch (g) {} if ("function" === typeof r.randomBytes) try { return r.randomBytes(4).readInt32LE() } catch (g) {} } throw new Error("Native crypto module could not be used to get secure random number.") } , a = Object.create || function() { function t() {} return function(e) { var i; return t.prototype = e, i = new t, t.prototype = null, i } }() , s = {} , l = s.lib = {} , u = l.Base = function() { return { extend: function(t) { var e = a(this); return t && e.mixIn(t), e.hasOwnProperty("init") && this.init !== e.init || (e.init = function() { e.$super.init.apply(this, arguments) } ), e.init.prototype = e, e.$super = this, e }, create: function() { var t = this.extend(); return t.init.apply(t, arguments), t }, init: function() {}, mixIn: function(t) { for (var e in t) t.hasOwnProperty(e) && (this[e] = t[e]); t.hasOwnProperty("toString") && (this.toString = t.toString) }, clone: function() { return this.init.prototype.extend(this) } } }() , c = l.WordArray = u.extend({ init: function(t, e) { t = this.words = t || [], this.sigBytes = e != n ? e : 4 * t.length }, toString: function(t) { return (t || f).stringify(this) }, concat: function(t) { var e = this.words , i = t.words , n = this.sigBytes , r = t.sigBytes; if (this.clamp(), n % 4) for (var o = 0; o < r; o++) { var a = i[o >>> 2] >>> 24 - o % 4 * 8 & 255; e[n + o >>> 2] |= a << 24 - (n + o) % 4 * 8 } else for (o = 0; o < r; o += 4) e[n + o >>> 2] = i[o >>> 2]; return this.sigBytes += r, this }, clamp: function() { var e = this.words , i = this.sigBytes; e[i >>> 2] &= 4294967295 << 32 - i % 4 * 8, e.length = t.ceil(i / 4) }, clone: function() { var t = u.clone.call(this); return t.words = this.words.slice(0), t }, random: function(t) { for (var e = [], i = 0; i < t; i += 4) e.push(o()); return new c.init(e,t) } }) , h = s.enc = {} , f = h.Hex = { stringify: function(t) { for (var e = t.words, i = t.sigBytes, n = [], r = 0; r < i; r++) { var o = e[r >>> 2] >>> 24 - r % 4 * 8 & 255; n.push((o >>> 4).toString(16)), n.push((15 & o).toString(16)) } return n.join("") }, parse: function(t) { for (var e = t.length, i = [], n = 0; n < e; n += 2) i[n >>> 3] |= parseInt(t.substr(n, 2), 16) << 24 - n % 8 * 4; return new c.init(i,e / 2) } } , d = h.Latin1 = { stringify: function(t) { for (var e = t.words, i = t.sigBytes, n = [], r = 0; r < i; r++) { var o = e[r >>> 2] >>> 24 - r % 4 * 8 & 255; n.push(String.fromCharCode(o)) } return n.join("") }, parse: function(t) { for (var e = t.length, i = [], n = 0; n < e; n++) i[n >>> 2] |= (255 & t.charCodeAt(n)) << 24 - n % 4 * 8; return new c.init(i,e) } } , p = h.Utf8 = { stringify: function(t) { try { return decodeURIComponent(escape(d.stringify(t))) } catch (e) { throw new Error("Malformed UTF-8 data") } }, parse: function(t) { return d.parse(unescape(encodeURIComponent(t))) } } , m = l.BufferedBlockAlgorithm = u.extend({ reset: function() { this._data = new c.init, this._nDataBytes = 0 }, _append: function(t) { "string" == typeof t && (t = p.parse(t)), this._data.concat(t), this._nDataBytes += t.sigBytes }, _process: function(e) { var i, n = this._data, r = n.words, o = n.sigBytes, a = this.blockSize, s = 4 * a, l = o / s; l = e ? t.ceil(l) : t.max((0 | l) - this._minBufferSize, 0); var u = l * a , h = t.min(4 * u, o); if (u) { for (var f = 0; f < u; f += a) this._doProcessBlock(r, f); i = r.splice(0, u), n.sigBytes -= h } return new c.init(i,h) }, clone: function() { var t = u.clone.call(this); return t._data = this._data.clone(), t }, _minBufferSize: 0 }) , v = (l.Hasher = m.extend({ cfg: u.extend(), init: function(t) { this.cfg = this.cfg.extend(t), this.reset() }, reset: function() { m.reset.call(this), this._doReset() }, update: function(t) { return this._append(t), this._process(), this }, finalize: function(t) { t && this._append(t); var e = this._doFinalize(); return e }, blockSize: 16, _createHelper: function(t) { return function(e, i) { return new t.init(i).finalize(e) } }, _createHmacHelper: function(t) { return function(e, i) { return new v.HMAC.init(t,i).finalize(e) } } }), s.algo = {}); return s }(Math); return t } )) } ).call(this, i("c8ba")) }, "c8ba" : function(t, e) { var i; i = function() { return this }(); try { i = i || new Function("return this")() } catch (n) { "object" === typeof window && (i = window) } t.exports = i }, "72fe" : function(t, e, i) { (function(e, n) { t.exports = n(i("21bf")) } )(0, (function(t) { return function(e) { var i = t , n = i.lib , r = n.WordArray , o = n.Hasher , a = i.algo , s = []; (function() { for (var t = 0; t < 64; t++) s[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0 } )(); var l = a.MD5 = o.extend({ _doReset: function() { this._hash = new r.init([1732584193, 4023233417, 2562383102, 271733878]) }, _doProcessBlock: function(t, e) { for (var i = 0; i < 16; i++) { var n = e + i , r = t[n]; t[n] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8) } var o = this._hash.words , a = t[e + 0] , l = t[e + 1] , d = t[e + 2] , p = t[e + 3] , m = t[e + 4] , v = t[e + 5] , g = t[e + 6] , y = t[e + 7] , b = t[e + 8] , _ = t[e + 9] , w = t[e + 10] , x = t[e + 11] , M = t[e + 12] , S = t[e + 13] , k = t[e + 14] , C = t[e + 15] , E = o[0] , O = o[1] , A = o[2] , T = o[3]; E = u(E, O, A, T, a, 7, s[0]), T = u(T, E, O, A, l, 12, s[1]), A = u(A, T, E, O, d, 17, s[2]), O = u(O, A, T, E, p, 22, s[3]), E = u(E, O, A, T, m, 7, s[4]), T = u(T, E, O, A, v, 12, s[5]), A = u(A, T, E, O, g, 17, s[6]), O = u(O, A, T, E, y, 22, s[7]), E = u(E, O, A, T, b, 7, s[8]), T = u(T, E, O, A, _, 12, s[9]), A = u(A, T, E, O, w, 17, s[10]), O = u(O, A, T, E, x, 22, s[11]), E = u(E, O, A, T, M, 7, s[12]), T = u(T, E, O, A, S, 12, s[13]), A = u(A, T, E, O, k, 17, s[14]), O = u(O, A, T, E, C, 22, s[15]), E = c(E, O, A, T, l, 5, s[16]), T = c(T, E, O, A, g, 9, s[17]), A = c(A, T, E, O, x, 14, s[18]), O = c(O, A, T, E, a, 20, s[19]), E = c(E, O, A, T, v, 5, s[20]), T = c(T, E, O, A, w, 9, s[21]), A = c(A, T, E, O, C, 14, s[22]), O = c(O, A, T, E, m, 20, s[23]), E = c(E, O, A, T, _, 5, s[24]), T = c(T, E, O, A, k, 9, s[25]), A = c(A, T, E, O, p, 14, s[26]), O = c(O, A, T, E, b, 20, s[27]), E = c(E, O, A, T, S, 5, s[28]), T = c(T, E, O, A, d, 9, s[29]), A = c(A, T, E, O, y, 14, s[30]), O = c(O, A, T, E, M, 20, s[31]), E = h(E, O, A, T, v, 4, s[32]), T = h(T, E, O, A, b, 11, s[33]), A = h(A, T, E, O, x, 16, s[34]), O = h(O, A, T, E, k, 23, s[35]), E = h(E, O, A, T, l, 4, s[36]), T = h(T, E, O, A, m, 11, s[37]), A = h(A, T, E, O, y, 16, s[38]), O = h(O, A, T, E, w, 23, s[39]), E = h(E, O, A, T, S, 4, s[40]), T = h(T, E, O, A, a, 11, s[41]), A = h(A, T, E, O, p, 16, s[42]), O = h(O, A, T, E, g, 23, s[43]), E = h(E, O, A, T, _, 4, s[44]), T = h(T, E, O, A, M, 11, s[45]), A = h(A, T, E, O, C, 16, s[46]), O = h(O, A, T, E, d, 23, s[47]), E = f(E, O, A, T, a, 6, s[48]), T = f(T, E, O, A, y, 10, s[49]), A = f(A, T, E, O, k, 15, s[50]), O = f(O, A, T, E, v, 21, s[51]), E = f(E, O, A, T, M, 6, s[52]), T = f(T, E, O, A, p, 10, s[53]), A = f(A, T, E, O, w, 15, s[54]), O = f(O, A, T, E, l, 21, s[55]), E = f(E, O, A, T, b, 6, s[56]), T = f(T, E, O, A, C, 10, s[57]), A = f(A, T, E, O, g, 15, s[58]), O = f(O, A, T, E, S, 21, s[59]), E = f(E, O, A, T, m, 6, s[60]), T = f(T, E, O, A, x, 10, s[61]), A = f(A, T, E, O, d, 15, s[62]), O = f(O, A, T, E, _, 21, s[63]), o[0] = o[0] + E | 0, o[1] = o[1] + O | 0, o[2] = o[2] + A | 0, o[3] = o[3] + T | 0 }, _doFinalize: function() { var t = this._data , i = t.words , n = 8 * this._nDataBytes , r = 8 * t.sigBytes; i[r >>> 5] |= 128 << 24 - r % 32; var o = e.floor(n / 4294967296) , a = n; i[15 + (r + 64 >>> 9 << 4)] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8), i[14 + (r + 64 >>> 9 << 4)] = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8), t.sigBytes = 4 * (i.length + 1), this._process(); for (var s = this._hash, l = s.words, u = 0; u < 4; u++) { var c = l[u]; l[u] = 16711935 & (c << 8 | c >>> 24) | 4278255360 & (c << 24 | c >>> 8) } return s }, clone: function() { var t = o.clone.call(this); return t._hash = this._hash.clone(), t } }); function u(t, e, i, n, r, o, a) { var s = t + (e & i | ~e & n) + r + a; return (s << o | s >>> 32 - o) + e } function c(t, e, i, n, r, o, a) { var s = t + (e & n | i & ~n) + r + a; return (s << o | s >>> 32 - o) + e } function h(t, e, i, n, r, o, a) { var s = t + (e ^ i ^ n) + r + a; return (s << o | s >>> 32 - o) + e } function f(t, e, i, n, r, o, a) { var s = t + (i ^ (e | ~n)) + r + a; return (s << o | s >>> 32 - o) + e } i.MD5 = o._createHelper(l), i.HmacMD5 = o._createHmacHelper(l) }(Math), t.MD5 } )) }, 1132 : function(t, e, i) { (function(e, n) { t.exports = n(i("21bf")) } )(0, (function(t) { return function() { var e = t , i = e.lib , n = i.WordArray , r = e.enc; r.Base64 = { stringify: function(t) { var e = t.words , i = t.sigBytes , n = this._map; t.clamp(); for (var r = [], o = 0; o < i; o += 3) for (var a = e[o >>> 2] >>> 24 - o % 4 * 8 & 255, s = e[o + 1 >>> 2] >>> 24 - (o + 1) % 4 * 8 & 255, l = e[o + 2 >>> 2] >>> 24 - (o + 2) % 4 * 8 & 255, u = a << 16 | s << 8 | l, c = 0; c < 4 && o + .75 * c < i; c++) r.push(n.charAt(u >>> 6 * (3 - c) & 63)); var h = n.charAt(64); if (h) while (r.length % 4) r.push(h); return r.join("") }, parse: function(t) { var e = t.length , i = this._map , n = this._reverseMap; if (!n) { n = this._reverseMap = []; for (var r = 0; r < i.length; r++) n[i.charCodeAt(r)] = r } var a = i.charAt(64); if (a) { var s = t.indexOf(a); -1 !== s && (e = s) } return o(t, e, n) }, _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" }; function o(t, e, i) { for (var r = [], o = 0, a = 0; a < e; a++) if (a % 4) { var s = i[t.charCodeAt(a - 1)] << a % 4 * 2 , l = i[t.charCodeAt(a)] >>> 6 - a % 4 * 2 , u = s | l; r[o >>> 2] |= u << 24 - o % 4 * 8, o++ } return n.create(r, o) } }(), t.enc.Base64 } )) } }) function get_data(d){ var md5_data = _n("72fe")(JSON.stringify(d)); return _n(1132).stringify(md5_data); } console.log(get_data({"username":"13111111111","password":"123456","rand":"0420","ip":"106.7.59.28"}))
4.小米登录 思路:全扣