开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 2106|回复: 13
收起左侧

[完成] post数据加密方法

 关闭 [复制链接]
结帖率:75% (6/8)
发表于 2021-4-20 18:14:28 | 显示全部楼层 |阅读模式   辽宁省抚顺市
60精币
网址:https://weixin.10044.cn/wechat/service/api/gatewayH5/QmcService/queryArea  (本人自己的流量卡 想批量充值和查询 正规用途)
提交数据:MAIm0DnMds0nERW0dzZXCRZgbT6O7ZkbSFCRbw5WC8hwtCDuK+RwwSR12JESycGgCAs/e/wKyeDLphQTJwtUDiarW+w7bcnt5/i35gXJbO+cR3AyAMbQJEvAixNttI/VlD044LVkZxOAB7B2pPv6g+VB0eOMeQEY+gv1KKH89Joq51/Ci/25glZUl5KYdstJhqsYHM2am3fDq7Dhc8FWo9/m8qx7Vj6IXYpIJkG3LRDYAf/RBToQB2Gk6L/F5NlJ3mwO+QHbxC6Oz+f47/tE4i52Z5t0wHVJSDN4w8nXu4K2LY3plCfVemLKrbHHKNABzPwGxyeAMoJFtXfhawy0zw==

求这个数据的加密方法,跪求!!

最佳答案

查看完整内容

调用getEncParam,参数就是手机号,提交的时候带上协议头
结帖率:80% (24/30)
发表于 2021-4-20 18:14:29 | 显示全部楼层   安徽省滁州市
调用getEncParam,参数就是手机号,提交的时候带上协议头
  1. window = {};
  2. navigator = {};
  3. var passport = passport || {};
  4. passport.lib = passport.lib || {}, passport.lib.RSAExport = {},
  5. function (t) {
  6. function e(t, e, i) {
  7. null != t && ("number" == typeof t ? this.fromNumber(t, e, i) : null == e && "string" != typeof t ? this.fromString(t, 256) : this.fromString(t, e))
  8. }

  9. function i() {
  10. return new e(null)
  11. }

  12. function r(t, e, i, r, s, n) {
  13. for (; --n >= 0;) {
  14. var o = e * this[t++] + i[r] + s;
  15. s = Math.floor(o / 67108864), i[r++] = 67108863 & o
  16. }
  17. return s
  18. }

  19. function s(t, e, i, r, s, n) {
  20. for (var o = 32767 & e, h = e >> 15; --n >= 0;) {
  21. var a = 32767 & this[t],
  22. u = this[t++] >> 15,
  23. c = h * a + u * o;
  24. a = o * a + ((32767 & c) << 15) + i[r] + (1073741823 & s), s = (a >>> 30) + (c >>> 15) + h * u + (s >>> 30), i[r++] = 1073741823 & a
  25. }
  26. return s
  27. }

  28. function n(t, e, i, r, s, n) {
  29. for (var o = 16383 & e, h = e >> 14; --n >= 0;) {
  30. var a = 16383 & this[t],
  31. u = this[t++] >> 14,
  32. c = h * a + u * o;
  33. a = o * a + ((16383 & c) << 14) + i[r] + s, s = (a >> 28) + (c >> 14) + h * u, i[r++] = 268435455 & a
  34. }
  35. return s
  36. }

  37. function o(t) {
  38. return Ki.charAt(t)
  39. }

  40. function h(t, e) {
  41. var i = Ui[t.charCodeAt(e)];
  42. return null == i ? -1 : i
  43. }

  44. function a(t) {
  45. for (var e = this.t - 1; e >= 0; --e) t[e] = this[e];
  46. t.t = this.t, t.s = this.s
  47. }

  48. function u(t) {
  49. this.t = 1, this.s = 0 > t ? -1 : 0, t > 0 ? this[0] = t : -1 > t ? this[0] = t + DV : this.t = 0
  50. }

  51. function c(t) {
  52. var e = i();
  53. return e.fromInt(t), e
  54. }

  55. function f(t, i) {
  56. var r;
  57. if (16 == i) r = 4;
  58. else if (8 == i) r = 3;
  59. else if (256 == i) r = 8;
  60. else if (2 == i) r = 1;
  61. else if (32 == i) r = 5;
  62. else {
  63. if (4 != i) return void this.fromRadix(t, i);
  64. r = 2
  65. }
  66. this.t = 0, this.s = 0;
  67. for (var s = t.length, n = !1, o = 0; --s >= 0;) {
  68. var a = 8 == r ? 255 & t[s] : h(t, s);
  69. 0 > a ? "-" == t.charAt(s) && (n = !0) : (n = !1, 0 == o ? this[this.t++] = a : o + r > this.DB ? (this[this.t - 1] |= (a & (1 << this.DB - o) - 1) << o, this[this.t++] = a >> this.DB - o) : this[this.t - 1] |= a << o, o += r, o >= this.DB && (o -= this.DB))
  70. }
  71. 8 == r && 0 != (128 & t[0]) && (this.s = -1, o > 0 && (this[this.t - 1] |= (1 << this.DB - o) - 1 << o)), this.clamp(), n && e.ZERO.subTo(this, this)
  72. }

  73. function p() {
  74. for (var t = this.s & this.DM; this.t > 0 && this[this.t - 1] == t;)--this.t
  75. }

  76. function l(t) {
  77. if (this.s < 0) return "-" + this.negate().toString(t);
  78. var e;
  79. if (16 == t) e = 4;
  80. else if (8 == t) e = 3;
  81. else if (2 == t) e = 1;
  82. else if (32 == t) e = 5;
  83. else {
  84. if (4 != t) return this.toRadix(t);
  85. e = 2
  86. }
  87. var i, r = (1 << e) - 1,
  88. s = !1,
  89. n = "",
  90. h = this.t,
  91. a = this.DB - h * this.DB % e;
  92. if (h-- > 0)
  93. for (a < this.DB && (i = this[h] >> a) > 0 && (s = !0, n = o(i)); h >= 0;) e > a ? (i = (this[h] & (1 << a) - 1) << e - a, i |= this[--h] >> (a += this.DB - e)) : (i = this[h] >> (a -= e) & r, 0 >= a && (a += this.DB, --h)), i > 0 && (s = !0), s && (n += o(i));
  94. return s ? n : "0"
  95. }

  96. function d() {
  97. var t = i();
  98. return e.ZERO.subTo(this, t), t
  99. }

  100. function g() {
  101. return this.s < 0 ? this.negate() : this
  102. }

  103. function m(t) {
  104. var e = this.s - t.s;
  105. if (0 != e) return e;
  106. var i = this.t;
  107. if (e = i - t.t, 0 != e) return this.s < 0 ? -e : e;
  108. for (; --i >= 0;)
  109. if (0 != (e = this[i] - t[i])) return e;
  110. return 0
  111. }

  112. function y(t) {
  113. var e, i = 1;
  114. 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
  115. }

  116. function b() {
  117. return this.t <= 0 ? 0 : this.DB * (this.t - 1) + y(this[this.t - 1] ^ this.s & this.DM)
  118. }

  119. function T(t, e) {
  120. var i;
  121. for (i = this.t - 1; i >= 0; --i) e[i + t] = this[i];
  122. for (i = t - 1; i >= 0; --i) e[i] = 0;
  123. e.t = this.t + t, e.s = this.s
  124. }

  125. function S(t, e) {
  126. for (var i = t; i < this.t; ++i) e[i - t] = this[i];
  127. e.t = Math.max(this.t - t, 0), e.s = this.s
  128. }

  129. function R(t, e) {
  130. var i, r = t % this.DB,
  131. s = this.DB - r,
  132. n = (1 << s) - 1,
  133. o = Math.floor(t / this.DB),
  134. h = this.s << r & this.DM;
  135. for (i = this.t - 1; i >= 0; --i) e[i + o + 1] = this[i] >> s | h, h = (this[i] & n) << r;
  136. for (i = o - 1; i >= 0; --i) e[i] = 0;
  137. e[o] = h, e.t = this.t + o + 1, e.s = this.s, e.clamp()
  138. }

  139. function E(t, e) {
  140. e.s = this.s;
  141. var i = Math.floor(t / this.DB);
  142. if (i >= this.t) return void(e.t = 0);
  143. var r = t % this.DB,
  144. s = this.DB - r,
  145. n = (1 << r) - 1;
  146. e[0] = this[i] >> r;
  147. for (var o = i + 1; o < this.t; ++o) e[o - i - 1] |= (this[o] & n) << s, e[o - i] = this[o] >> r;
  148. r > 0 && (e[this.t - i - 1] |= (this.s & n) << s), e.t = this.t - i, e.clamp()
  149. }

  150. function D(t, e) {
  151. for (var i = 0, r = 0, s = Math.min(t.t, this.t); s > i;) r += this[i] - t[i], e[i++] = r & this.DM, r >>= this.DB;
  152. if (t.t < this.t) {
  153. for (r -= t.s; i < this.t;) r += this[i], e[i++] = r & this.DM, r >>= this.DB;
  154. r += this.s
  155. } else {
  156. for (r += this.s; i < t.t;) r -= t[i], e[i++] = r & this.DM, r >>= this.DB;
  157. r -= t.s
  158. }
  159. e.s = 0 > r ? -1 : 0, -1 > r ? e[i++] = this.DV + r : r > 0 && (e[i++] = r), e.t = i, e.clamp()
  160. }

  161. function x(t, i) {
  162. var r = this.abs(),
  163. s = t.abs(),
  164. n = r.t;
  165. for (i.t = n + s.t; --n >= 0;) i[n] = 0;
  166. for (n = 0; n < s.t; ++n) i[n + r.t] = r.am(0, s[n], i, n, 0, r.t);
  167. i.s = 0, i.clamp(), this.s != t.s && e.ZERO.subTo(i, i)
  168. }

  169. function w(t) {
  170. for (var e = this.abs(), i = t.t = 2 * e.t; --i >= 0;) t[i] = 0;
  171. for (i = 0; i < e.t - 1; ++i) {
  172. var r = e.am(i, e[i], t, 2 * i, 0, 1);
  173. (t[i + e.t] += e.am(i + 1, 2 * e[i], t, 2 * i + 1, r, e.t - i - 1)) >= e.DV && (t[i + e.t] -= e.DV, t[i + e.t + 1] = 1)
  174. }
  175. t.t > 0 && (t[t.t - 1] += e.am(i, e[i], t, 2 * i, 0, 1)), t.s = 0, t.clamp()
  176. }

  177. function A(t, r, s) {
  178. var n = t.abs();
  179. if (!(n.t <= 0)) {
  180. var o = this.abs();
  181. if (o.t < n.t) return null != r && r.fromInt(0), void(null != s && this.copyTo(s));
  182. null == s && (s = i());
  183. var h = i(),
  184. a = this.s,
  185. u = t.s,
  186. c = this.DB - y(n[n.t - 1]);
  187. c > 0 ? (n.lShiftTo(c, h), o.lShiftTo(c, s)) : (n.copyTo(h), o.copyTo(s));
  188. var f = h.t,
  189. p = h[f - 1];
  190. if (0 != p) {
  191. var l = p * (1 << this.F1) + (f > 1 ? h[f - 2] >> this.F2 : 0),
  192. d = this.FV / l,
  193. g = (1 << this.F1) / l,
  194. m = 1 << this.F2,
  195. v = s.t,
  196. b = v - f,
  197. T = null == r ? i() : r;
  198. for (h.dlShiftTo(b, T), s.compareTo(T) >= 0 && (s[s.t++] = 1, s.subTo(T, s)), e.ONE.dlShiftTo(f, T), T.subTo(h, h); h.t < f;) h[h.t++] = 0;
  199. for (; --b >= 0;) {
  200. var S = s[--v] == p ? this.DM : Math.floor(s[v] * d + (s[v - 1] + m) * g);
  201. if ((s[v] += h.am(0, S, s, b, 0, f)) < S)
  202. for (h.dlShiftTo(b, T), s.subTo(T, s); s[v] < --S;) s.subTo(T, s)
  203. }
  204. null != r && (s.drShiftTo(f, r), a != u && e.ZERO.subTo(r, r)), s.t = f, s.clamp(), c > 0 && s.rShiftTo(c, s), 0 > a && e.ZERO.subTo(s, s)
  205. }
  206. }
  207. }

  208. function B(t) {
  209. var r = i();
  210. return this.abs().divRemTo(t, null, r), this.s < 0 && r.compareTo(e.ZERO) > 0 && t.subTo(r, r), r
  211. }

  212. function K(t) {
  213. this.m = t
  214. }

  215. function U(t) {
  216. return t.s < 0 || t.compareTo(this.m) >= 0 ? t.mod(this.m) : t
  217. }

  218. function O(t) {
  219. return t
  220. }

  221. function V(t) {
  222. t.divRemTo(this.m, null, t)
  223. }

  224. function N(t, e, i) {
  225. t.multiplyTo(e, i), this.reduce(i)
  226. }

  227. function J(t, e) {
  228. t.squareTo(e), this.reduce(e)
  229. }

  230. function I() {
  231. if (this.t < 1) return 0;
  232. var t = this[0];
  233. if (0 == (1 & t)) return 0;
  234. var e = 3 & t;
  235. 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
  236. }

  237. function P(t) {
  238. 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
  239. }

  240. function M(t) {
  241. var r = i();
  242. return t.abs().dlShiftTo(this.m.t, r), r.divRemTo(this.m, null, r), t.s < 0 && r.compareTo(e.ZERO) > 0 && this.m.subTo(r, r), r
  243. }

  244. function L(t) {
  245. var e = i();
  246. return t.copyTo(e), this.reduce(e), e
  247. }

  248. function q(t) {
  249. for (; t.t <= this.mt2;) t[t.t++] = 0;
  250. for (var e = 0; e < this.m.t; ++e) {
  251. var i = 32767 & t[e],
  252. r = i * this.mpl + ((i * this.mph + (t[e] >> 15) * this.mpl & this.um) << 15) & t.DM;
  253. for (i = e + this.m.t, t[i] += this.m.am(0, r, t, e, 0, this.m.t); t[i] >= t.DV;) t[i] -= t.DV, t[++i]++
  254. }
  255. t.clamp(), t.drShiftTo(this.m.t, t), t.compareTo(this.m) >= 0 && t.subTo(this.m, t)
  256. }

  257. function H(t, e) {
  258. t.squareTo(e), this.reduce(e)
  259. }

  260. function C(t, e, i) {
  261. t.multiplyTo(e, i), this.reduce(i)
  262. }

  263. function j() {
  264. return 0 == (this.t > 0 ? 1 & this[0] : this.s)
  265. }

  266. function k(t, r) {
  267. if (t > 4294967295 || 1 > t) return e.ONE;
  268. var s = i(),
  269. n = i(),
  270. o = r.convert(this),
  271. h = y(t) - 1;
  272. for (o.copyTo(s); --h >= 0;)
  273. if (r.sqrTo(s, n), (t & 1 << h) > 0) r.mulTo(n, o, s);
  274. else {
  275. var a = s;
  276. s = n, n = a
  277. }
  278. return r.revert(s)
  279. }

  280. function F(t, e) {
  281. var i;
  282. return i = 256 > t || e.isEven() ? new K(e) : new P(e), this.exp(t, i)
  283. }

  284. function _() {
  285. var t = i();
  286. return this.copyTo(t), t
  287. }

  288. function z() {
  289. if (this.s < 0) {
  290. if (1 == this.t) return this[0] - this.DV;
  291. if (0 == this.t) return -1
  292. } else {
  293. if (1 == this.t) return this[0];
  294. if (0 == this.t) return 0
  295. }
  296. return (this[1] & (1 << 32 - this.DB) - 1) << this.DB | this[0]
  297. }

  298. function Z() {
  299. return 0 == this.t ? this.s : this[0] << 24 >> 24
  300. }

  301. function G() {
  302. return 0 == this.t ? this.s : this[0] << 16 >> 16
  303. }

  304. function $(t) {
  305. return Math.floor(Math.LN2 * this.DB / Math.log(t))
  306. }

  307. function Y() {
  308. return this.s < 0 ? -1 : this.t <= 0 || 1 == this.t && this[0] <= 0 ? 0 : 1
  309. }

  310. function W(t) {
  311. if (null == t && (t = 10), 0 == this.signum() || 2 > t || t > 36) return "0";
  312. var e = this.chunkSize(t),
  313. r = Math.pow(t, e),
  314. s = c(r),
  315. n = i(),
  316. o = i(),
  317. h = "";
  318. for (this.divRemTo(s, n, o); n.signum() > 0;) h = (r + o.intValue()).toString(t).substr(1) + h, n.divRemTo(s, n, o);
  319. return o.intValue().toString(t) + h
  320. }

  321. function Q(t, i) {
  322. this.fromInt(0), null == i && (i = 10);
  323. for (var r = this.chunkSize(i), s = Math.pow(i, r), n = !1, o = 0, a = 0, u = 0; u < t.length; ++u) {
  324. var c = h(t, u);
  325. 0 > c ? "-" == t.charAt(u) && 0 == this.signum() && (n = !0) : (a = i * a + c, ++o >= r && (this.dMultiply(s), this.dAddOffset(a, 0), o = 0, a = 0))
  326. }
  327. o > 0 && (this.dMultiply(Math.pow(i, o)), this.dAddOffset(a, 0)), n && e.ZERO.subTo(this, this)
  328. }

  329. function X(t, i, r) {
  330. if ("number" == typeof i)
  331. if (2 > t) this.fromInt(1);
  332. else
  333. for (this.fromNumber(t, r), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1), he, 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);
  334. else {
  335. var s = new Array,
  336. n = 7 & t;
  337. s.length = (t >> 3) + 1, i.nextBytes(s), n > 0 ? s[0] &= (1 << n) - 1 : s[0] = 0, this.fromString(s, 256)
  338. }
  339. }

  340. function te() {
  341. var t = this.t,
  342. e = new Array;
  343. e[0] = this.s;
  344. var i, r = this.DB - t * this.DB % 8,
  345. s = 0;
  346. if (t-- > 0)
  347. for (r < this.DB && (i = this[t] >> r) != (this.s & this.DM) >> r && (e[s++] = i | this.s << this.DB - r); t >= 0;) 8 > r ? (i = (this[t] & (1 << r) - 1) << 8 - r, i |= this[--t] >> (r += this.DB - 8)) : (i = this[t] >> (r -= 8) & 255, 0 >= r && (r += this.DB, --t)), 0 != (128 & i) && (i |= -256), 0 == s && (128 & this.s) != (128 & i) && ++s, (s > 0 || i != this.s) && (e[s++] = i);
  348. return e
  349. }

  350. function ee(t) {
  351. return 0 == this.compareTo(t)
  352. }

  353. function ie(t) {
  354. return this.compareTo(t) < 0 ? this : t
  355. }

  356. function re(t) {
  357. return this.compareTo(t) > 0 ? this : t
  358. }

  359. function se(t, e, i) {
  360. var r, s, n = Math.min(t.t, this.t);
  361. for (r = 0; n > r; ++r) i[r] = e(this[r], t[r]);
  362. if (t.t < this.t) {
  363. for (s = t.s & this.DM, r = n; r < this.t; ++r) i[r] = e(this[r], s);
  364. i.t = this.t
  365. } else {
  366. for (s = this.s & this.DM, r = n; r < t.t; ++r) i[r] = e(s, t[r]);
  367. i.t = t.t
  368. }
  369. i.s = e(this.s, t.s), i.clamp()
  370. }

  371. function ne(t, e) {
  372. return t & e
  373. }

  374. function oe(t) {
  375. var e = i();
  376. return this.bitwiseTo(t, ne, e), e
  377. }

  378. function he(t, e) {
  379. return t | e
  380. }

  381. function ae(t) {
  382. var e = i();
  383. return this.bitwiseTo(t, he, e), e
  384. }

  385. function ue(t, e) {
  386. return t ^ e
  387. }

  388. function ce(t) {
  389. var e = i();
  390. return this.bitwiseTo(t, ue, e), e
  391. }

  392. function fe(t, e) {
  393. return t & ~e
  394. }

  395. function pe(t) {
  396. var e = i();
  397. return this.bitwiseTo(t, fe, e), e
  398. }

  399. function le() {
  400. for (var t = i(), e = 0; e < this.t; ++e) t[e] = this.DM & ~this[e];
  401. return t.t = this.t, t.s = ~this.s, t
  402. }

  403. function de(t) {
  404. var e = i();
  405. return 0 > t ? this.rShiftTo(-t, e) : this.lShiftTo(t, e), e
  406. }

  407. function ge(t) {
  408. var e = i();
  409. return 0 > t ? this.lShiftTo(-t, e) : this.rShiftTo(t, e), e
  410. }

  411. function me(t) {
  412. if (0 == t) return -1;
  413. var e = 0;
  414. 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
  415. }

  416. function ye() {
  417. for (var t = 0; t < this.t; ++t)
  418. if (0 != this[t]) return t * this.DB + me(this[t]);
  419. return this.s < 0 ? this.t * this.DB : -1
  420. }

  421. function ve(t) {
  422. for (var e = 0; 0 != t;) t &= t - 1, ++e;
  423. return e
  424. }

  425. function be() {
  426. for (var t = 0, e = this.s & this.DM, i = 0; i < this.t; ++i) t += ve(this[i] ^ e);
  427. return t
  428. }

  429. function Te(t) {
  430. var e = Math.floor(t / this.DB);
  431. return e >= this.t ? 0 != this.s : 0 != (this[e] & 1 << t % this.DB)
  432. }

  433. function Se(t, i) {
  434. var r = e.ONE.shiftLeft(t);
  435. return this.bitwiseTo(r, i, r), r
  436. }

  437. function Re(t) {
  438. return this.changeBit(t, he)
  439. }

  440. function Ee(t) {
  441. return this.changeBit(t, fe)
  442. }

  443. function De(t) {
  444. return this.changeBit(t, ue)
  445. }

  446. function xe(t, e) {
  447. for (var i = 0, r = 0, s = Math.min(t.t, this.t); s > i;) r += this[i] + t[i], e[i++] = r & this.DM, r >>= this.DB;
  448. if (t.t < this.t) {
  449. for (r += t.s; i < this.t;) r += this[i], e[i++] = r & this.DM, r >>= this.DB;
  450. r += this.s
  451. } else {
  452. for (r += this.s; i < t.t;) r += t[i], e[i++] = r & this.DM, r >>= this.DB;
  453. r += t.s
  454. }
  455. e.s = 0 > r ? -1 : 0, r > 0 ? e[i++] = r : -1 > r && (e[i++] = this.DV + r), e.t = i, e.clamp()
  456. }

  457. function we(t) {
  458. var e = i();
  459. return this.addTo(t, e), e
  460. }

  461. function Ae(t) {
  462. var e = i();
  463. return this.subTo(t, e), e
  464. }

  465. function Be(t) {
  466. var e = i();
  467. return this.multiplyTo(t, e), e
  468. }

  469. function Ke() {
  470. var t = i();
  471. return this.squareTo(t), t
  472. }

  473. function Ue(t) {
  474. var e = i();
  475. return this.divRemTo(t, e, null), e
  476. }

  477. function Oe(t) {
  478. var e = i();
  479. return this.divRemTo(t, null, e), e
  480. }

  481. function Ve(t) {
  482. var e = i(),
  483. r = i();
  484. return this.divRemTo(t, e, r), new Array(e, r)
  485. }

  486. function Ne(t) {
  487. this[this.t] = this.am(0, t - 1, this, 0, 0, this.t), ++this.t, this.clamp()
  488. }

  489. function Je(t, e) {
  490. if (0 != t) {
  491. for (; this.t <= e;) this[this.t++] = 0;
  492. for (this[e] += t; this[e] >= this.DV;) this[e] -= this.DV, ++e >= this.t && (this[this.t++] = 0), ++this[e]
  493. }
  494. }

  495. function Ie() {}

  496. function Pe(t) {
  497. return t
  498. }

  499. function Me(t, e, i) {
  500. t.multiplyTo(e, i)
  501. }

  502. function Le(t, e) {
  503. t.squareTo(e)
  504. }

  505. function qe(t) {
  506. return this.exp(t, new Ie)
  507. }

  508. function He(t, e, i) {
  509. var r = Math.min(this.t + t.t, e);
  510. for (i.s = 0, i.t = r; r > 0;) i[--r] = 0;
  511. var s;
  512. for (s = i.t - this.t; s > r; ++r) i[r + this.t] = this.am(0, t[r], i, r, 0, this.t);
  513. for (s = Math.min(t.t, e); s > r; ++r) this.am(0, t[r], i, r, 0, e - r);
  514. i.clamp()
  515. }

  516. function Ce(t, e, i) {
  517. --e;
  518. var r = i.t = this.t + t.t - e;
  519. for (i.s = 0; --r >= 0;) i[r] = 0;
  520. for (r = Math.max(e - this.t, 0); r < t.t; ++r) i[this.t + r - e] = this.am(e - r, t[r], i, 0, 0, this.t + r - e);
  521. i.clamp(), i.drShiftTo(1, i)
  522. }

  523. function je(t) {
  524. this.r2 = i(), this.q3 = i(), e.ONE.dlShiftTo(2 * t.t, this.r2), this.mu = this.r2.divide(t), this.m = t
  525. }

  526. function ke(t) {
  527. if (t.s < 0 || t.t > 2 * this.m.t) return t.mod(this.m);
  528. if (t.compareTo(this.m) < 0) return t;
  529. var e = i();
  530. return t.copyTo(e), this.reduce(e), e
  531. }

  532. function Fe(t) {
  533. return t
  534. }

  535. function _e(t) {
  536. 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);
  537. for (t.subTo(this.r2, t); t.compareTo(this.m) >= 0;) t.subTo(this.m, t)
  538. }

  539. function ze(t, e) {
  540. t.squareTo(e), this.reduce(e)
  541. }

  542. function Ze(t, e, i) {
  543. t.multiplyTo(e, i), this.reduce(i)
  544. }

  545. function Ge(t, e) {
  546. var r, s, n = t.bitLength(),
  547. o = c(1);
  548. if (0 >= n) return o;
  549. r = 18 > n ? 1 : 48 > n ? 3 : 144 > n ? 4 : 768 > n ? 5 : 6, s = 8 > n ? new K(e) : e.isEven() ? new je(e) : new P(e);
  550. var h = new Array,
  551. a = 3,
  552. u = r - 1,
  553. f = (1 << r) - 1;
  554. if (h[1] = s.convert(this), r > 1) {
  555. var p = i();
  556. for (s.sqrTo(h[1], p); f >= a;) h[a] = i(), s.mulTo(p, h[a - 2], h[a]), a += 2
  557. }
  558. var l, d, g = t.t - 1,
  559. m = !0,
  560. v = i();
  561. for (n = y(t[g]) - 1; g >= 0;) {
  562. for (n >= u ? l = t[g] >> n - u & f : (l = (t[g] & (1 << n + 1) - 1) << u - n, g > 0 && (l |= t[g - 1] >> this.DB + n - u)), a = r; 0 == (1 & l);) l >>= 1, --a;
  563. if ((n -= a) < 0 && (n += this.DB, --g), m) h[l].copyTo(o), m = !1;
  564. else {
  565. for (; a > 1;) s.sqrTo(o, v), s.sqrTo(v, o), a -= 2;
  566. a > 0 ? s.sqrTo(o, v) : (d = o, o = v, v = d), s.mulTo(v, h[l], o)
  567. }
  568. for (; g >= 0 && 0 == (t[g] & 1 << n);) s.sqrTo(o, v), d = o, o = v, v = d, --n < 0 && (n = this.DB - 1, --g)
  569. }
  570. return s.revert(o)
  571. }

  572. function $e(t) {
  573. var e = this.s < 0 ? this.negate() : this.clone(),
  574. i = t.s < 0 ? t.negate() : t.clone();
  575. if (e.compareTo(i) < 0) {
  576. var r = e;
  577. e = i, i = r
  578. }
  579. var s = e.getLowestSetBit(),
  580. n = i.getLowestSetBit();
  581. if (0 > n) return e;
  582. for (n > s && (n = s), n > 0 && (e.rShiftTo(n, e), i.rShiftTo(n, i)); e.signum() > 0;)(s = e.getLowestSetBit()) > 0 && e.rShiftTo(s, e), (s = i.getLowestSetBit()) > 0 && i.rShiftTo(s, i), e.compareTo(i) >= 0 ? (e.subTo(i, e), e.rShiftTo(1, e)) : (i.subTo(e, i), i.rShiftTo(1, i));
  583. return n > 0 && i.lShiftTo(n, i), i
  584. }

  585. function Ye(t) {
  586. if (0 >= t) return 0;
  587. var e = this.DV % t,
  588. i = this.s < 0 ? t - 1 : 0;
  589. if (this.t > 0)
  590. if (0 == e) i = this[0] % t;
  591. else
  592. for (var r = this.t - 1; r >= 0; --r) i = (e * i + this[r]) % t;
  593. return i
  594. }

  595. function We(t) {
  596. var i = t.isEven();
  597. if (this.isEven() && i || 0 == t.signum()) return e.ZERO;
  598. for (var r = t.clone(), s = this.clone(), n = c(1), o = c(0), h = c(0), a = c(1); 0 != r.signum();) {
  599. for (; r.isEven();) r.rShiftTo(1, r), i ? (n.isEven() && o.isEven() || (n.addTo(this, n), o.subTo(t, o)), n.rShiftTo(1, n)) : o.isEven() || o.subTo(t, o), o.rShiftTo(1, o);
  600. for (; s.isEven();) s.rShiftTo(1, s), i ? (h.isEven() && a.isEven() || (h.addTo(this, h), a.subTo(t, a)), h.rShiftTo(1, h)) : a.isEven() || a.subTo(t, a), a.rShiftTo(1, a);
  601. r.compareTo(s) >= 0 ? (r.subTo(s, r), i && n.subTo(h, n), o.subTo(a, o)) : (s.subTo(r, s), i && h.subTo(n, h), a.subTo(o, a))
  602. }
  603. return 0 != s.compareTo(e.ONE) ? e.ZERO : a.compareTo(t) >= 0 ? a.subtract(t) : a.signum() < 0 ? (a.addTo(t, a), a.signum() < 0 ? a.add(t) : a) : a
  604. }

  605. function Qe(t) {
  606. var e, i = this.abs();
  607. if (1 == i.t && i[0] <= Oi[Oi.length - 1]) {
  608. for (e = 0; e < Oi.length; ++e)
  609. if (i[0] == Oi[e]) return !0;
  610. return !1
  611. }
  612. if (i.isEven()) return !1;
  613. for (e = 1; e < Oi.length;) {
  614. for (var r = Oi[e], s = e + 1; s < Oi.length && Vi > r;) r *= Oi[s++];
  615. for (r = i.modInt(r); s > e;)
  616. if (r % Oi[e++] == 0) return !1
  617. }
  618. return i.millerRabin(t)
  619. }

  620. function Xe(t) {
  621. var r = this.subtract(e.ONE),
  622. s = r.getLowestSetBit();
  623. if (0 >= s) return !1;
  624. var n = r.shiftRight(s);
  625. t = t + 1 >> 1, t > Oi.length && (t = Oi.length);
  626. for (var o = i(), h = 0; t > h; ++h) {
  627. o.fromInt(Oi[Math.floor(Math.random() * Oi.length)]);
  628. var a = o.modPow(n, this);
  629. if (0 != a.compareTo(e.ONE) && 0 != a.compareTo(r)) {
  630. for (var u = 1; u++ < s && 0 != a.compareTo(r);)
  631. if (a = a.modPowInt(2, this), 0 == a.compareTo(e.ONE)) return !1;
  632. if (0 != a.compareTo(r)) return !1
  633. }
  634. }
  635. return !0
  636. }

  637. function ti() {
  638. this.i = 0, this.j = 0, this.S = new Array
  639. }

  640. function ei(t) {
  641. var e, i, r;
  642. for (e = 0; 256 > e; ++e) this.S[e] = e;
  643. for (i = 0, e = 0; 256 > e; ++e) i = i + this.S[e] + t[e % t.length] & 255, r = this.S[e], this.S[e] = this.S[i], this.S[i] = r;
  644. this.i = 0, this.j = 0
  645. }

  646. function ii() {
  647. var t;
  648. 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]
  649. }

  650. function ri() {
  651. return new ti
  652. }

  653. function si(t) {
  654. Ji[Ii++] ^= 255 & t, Ji[Ii++] ^= t >> 8 & 255, Ji[Ii++] ^= t >> 16 & 255, Ji[Ii++] ^= t >> 24 & 255, Ii >= Pi && (Ii -= Pi)
  655. }

  656. function ni() {
  657. si((new Date).getTime())
  658. }

  659. function oi() {
  660. if (null == Ni) {
  661. for (ni(), Ni = ri(), Ni.init(Ji), Ii = 0; Ii < Ji.length; ++Ii) Ji[Ii] = 0;
  662. Ii = 0
  663. }
  664. return Ni.next()
  665. }

  666. function hi(t) {
  667. var e;
  668. for (e = 0; e < t.length; ++e) t[e] = oi()
  669. }

  670. function ai() {}

  671. function ui(t, i) {
  672. return new e(t, i)
  673. }

  674. function ci(t, i) {
  675. if (i < t.length + 11) return console.error("Message too long for RSA"), null;
  676. for (var r = new Array, s = t.length - 1; s >= 0 && i > 0;) {
  677. var n = t.charCodeAt(s--);
  678. 128 > n ? r[--i] = n : n > 127 && 2048 > n ? (r[--i] = 63 & n | 128, r[--i] = n >> 6 | 192) : (r[--i] = 63 & n | 128, r[--i] = n >> 6 & 63 | 128, r[--i] = n >> 12 | 224)
  679. }
  680. r[--i] = 0;
  681. for (var o = new ai, h = new Array; i > 2;) {
  682. for (h[0] = 0; 0 == h[0];) o.nextBytes(h);
  683. r[--i] = h[0]
  684. }
  685. return r[--i] = 2, r[--i] = 0, new e(r)
  686. }

  687. function fi() {
  688. this.n = null, this.e = 0, this.d = null, this.p = null, this.q = null, this.dmp1 = null, this.dmq1 = null, this.coeff = null
  689. }

  690. function pi(t, e) {
  691. null != t && null != e && t.length > 0 && e.length > 0 ? (this.n = ui(t, 16), this.e = parseInt(e, 16)) : console.error("Invalid RSA public key")
  692. }

  693. function li(t) {
  694. return t.modPowInt(this.e, this.n)
  695. }

  696. function di(t) {
  697. var e = ci(t, this.n.bitLength() + 7 >> 3);
  698. if (null == e) return null;
  699. var i = this.doPublic(e);
  700. if (null == i) return null;
  701. var r = i.toString(16);
  702. return 0 == (1 & r.length) ? r : "0" + r
  703. }

  704. function gi(t, e) {
  705. for (var i = t.toByteArray(), r = 0; r < i.length && 0 == i[r];)++r;
  706. if (i.length - r != e - 1 || 2 != i[r]) return null;
  707. for (++r; 0 != i[r];)
  708. if (++r >= i.length) return null;
  709. for (var s = ""; ++r < i.length;) {
  710. var n = 255 & i[r];
  711. 128 > n ? s += String.fromCharCode(n) : n > 191 && 224 > n ? (s += String.fromCharCode((31 & n) << 6 | 63 & i[r + 1]), ++r) : (s += String.fromCharCode((15 & n) << 12 | (63 & i[r + 1]) << 6 | 63 & i[r + 2]), r += 2)
  712. }
  713. return s
  714. }

  715. function mi(t, e, i) {
  716. null != t && null != e && t.length > 0 && e.length > 0 ? (this.n = ui(t, 16), this.e = parseInt(e, 16), this.d = ui(i, 16)) : console.error("Invalid RSA private key")
  717. }

  718. function yi(t, e, i, r, s, n, o, h) {
  719. null != t && null != e && t.length > 0 && e.length > 0 ? (this.n = ui(t, 16), this.e = parseInt(e, 16), this.d = ui(i, 16), this.p = ui(r, 16), this.q = ui(s, 16), this.dmp1 = ui(n, 16), this.dmq1 = ui(o, 16), this.coeff = ui(h, 16)) : console.error("Invalid RSA private key")
  720. }

  721. function vi(t, i) {
  722. var r = new ai,
  723. s = t >> 1;
  724. this.e = parseInt(i, 16);
  725. for (var n = new e(i, 16);;) {
  726. for (; this.p = new e(t - s, 1, r), 0 != this.p.subtract(e.ONE).gcd(n).compareTo(e.ONE) || !this.p.isProbablePrime(10););
  727. for (; this.q = new e(s, 1, r), 0 != this.q.subtract(e.ONE).gcd(n).compareTo(e.ONE) || !this.q.isProbablePrime(10););
  728. if (this.p.compareTo(this.q) <= 0) {
  729. var o = this.p;
  730. this.p = this.q, this.q = o
  731. }
  732. var h = this.p.subtract(e.ONE),
  733. a = this.q.subtract(e.ONE),
  734. u = h.multiply(a);
  735. if (0 == u.gcd(n).compareTo(e.ONE)) {
  736. this.n = this.p.multiply(this.q), this.d = n.modInverse(u), this.dmp1 = this.d.mod(h), this.dmq1 = this.d.mod(a), this.coeff = this.q.modInverse(this.p);
  737. break
  738. }
  739. }
  740. }

  741. function bi(t) {
  742. if (null == this.p || null == this.q) return t.modPow(this.d, this.n);
  743. 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);
  744. return e.subtract(i).multiply(this.coeff).mod(this.p).multiply(this.q).add(i)
  745. }

  746. function Ti(t) {
  747. var e = ui(t, 16),
  748. i = this.doPrivate(e);
  749. return null == i ? null : gi(i, this.n.bitLength() + 7 >> 3)
  750. }

  751. function Si(t) {
  752. var e, i, r = "";
  753. for (e = 0; e + 3 <= t.length; e += 3) i = parseInt(t.substring(e, e + 3), 16), r += qi.charAt(i >> 6) + qi.charAt(63 & i);
  754. for (e + 1 == t.length ? (i = parseInt(t.substring(e, e + 1), 16), r += qi.charAt(i << 2)) : e + 2 == t.length && (i = parseInt(t.substring(e, e + 2), 16), r += qi.charAt(i >> 2) + qi.charAt((3 & i) << 4));
  755. (3 & r.length) > 0;) r += Hi;
  756. return r
  757. }

  758. function Ri(t) {
  759. var e, i, r = "",
  760. s = 0;
  761. for (e = 0; e < t.length && t.charAt(e) != Hi; ++e) v = qi.indexOf(t.charAt(e)), 0 > v || (0 == s ? (r += o(v >> 2), i = 3 & v, s = 1) : 1 == s ? (r += o(i << 2 | v >> 4), i = 15 & v, s = 2) : 2 == s ? (r += o(i), r += o(v >> 2), i = 3 & v, s = 3) : (r += o(i << 2 | v >> 4), r += o(15 & v), s = 0));
  762. return 1 == s && (r += o(i << 2)), r
  763. }
  764. var Ei, Di = 0xdeadbeefcafe,
  765. xi = 15715070 == (16777215 & Di);
  766. xi && "Microsoft Internet Explorer" == navigator.appName ? (e.prototype.am = s, Ei = 30) : xi && "Netscape" != navigator.appName ? (e.prototype.am = r, Ei = 26) : (e.prototype.am = n, Ei = 28), e.prototype.DB = Ei, e.prototype.DM = (1 << Ei) - 1, e.prototype.DV = 1 << Ei;
  767. var wi = 52;
  768. e.prototype.FV = Math.pow(2, wi), e.prototype.F1 = wi - Ei, e.prototype.F2 = 2 * Ei - wi;
  769. var Ai, Bi, Ki = "0123456789abcdefghijklmnopqrstuvwxyz",
  770. Ui = new Array;
  771. for (Ai = "0".charCodeAt(0), Bi = 0; 9 >= Bi; ++Bi) Ui[Ai++] = Bi;
  772. for (Ai = "a".charCodeAt(0), Bi = 10; 36 > Bi; ++Bi) Ui[Ai++] = Bi;
  773. for (Ai = "A".charCodeAt(0), Bi = 10; 36 > Bi; ++Bi) Ui[Ai++] = Bi;
  774. K.prototype.convert = U, K.prototype.revert = O, K.prototype.reduce = V, K.prototype.mulTo = N, K.prototype.sqrTo = J, P.prototype.convert = M, P.prototype.revert = L, P.prototype.reduce = q, P.prototype.mulTo = C, P.prototype.sqrTo = H, e.prototype.copyTo = a, e.prototype.fromInt = u, e.prototype.fromString = f, e.prototype.clamp = p, e.prototype.dlShiftTo = T, e.prototype.drShiftTo = S, e.prototype.lShiftTo = R, e.prototype.rShiftTo = E, e.prototype.subTo = D, e.prototype.multiplyTo = x, e.prototype.squareTo = w, e.prototype.divRemTo = A, e.prototype.invDigit = I, e.prototype.isEven = j, e.prototype.exp = k, e.prototype.toString = l, e.prototype.negate = d, e.prototype.abs = g, e.prototype.compareTo = m, e.prototype.bitLength = b, e.prototype.mod = B, e.prototype.modPowInt = F, e.ZERO = c(0), e.ONE = c(1), Ie.prototype.convert = Pe, Ie.prototype.revert = Pe, Ie.prototype.mulTo = Me, Ie.prototype.sqrTo = Le, je.prototype.convert = ke, je.prototype.revert = Fe, je.prototype.reduce = _e, je.prototype.mulTo = Ze, je.prototype.sqrTo = ze;
  775. var Oi = [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],
  776. Vi = (1 << 26) / Oi[Oi.length - 1];
  777. e.prototype.chunkSize = $, e.prototype.toRadix = W, e.prototype.fromRadix = Q, e.prototype.fromNumber = X, e.prototype.bitwiseTo = se, e.prototype.changeBit = Se, e.prototype.addTo = xe, e.prototype.dMultiply = Ne, e.prototype.dAddOffset = Je, e.prototype.multiplyLowerTo = He, e.prototype.multiplyUpperTo = Ce, e.prototype.modInt = Ye, e.prototype.millerRabin = Xe, e.prototype.clone = _, e.prototype.intValue = z, e.prototype.byteValue = Z, e.prototype.shortValue = G, e.prototype.signum = Y, e.prototype.toByteArray = te, e.prototype.equals = ee, e.prototype.min = ie, e.prototype.max = re, e.prototype.and = oe, e.prototype.or = ae, e.prototype.xor = ce, e.prototype.andNot = pe, e.prototype.not = le, e.prototype.shiftLeft = de, e.prototype.shiftRight = ge, e.prototype.getLowestSetBit = ye, e.prototype.bitCount = be, e.prototype.testBit = Te, e.prototype.setBit = Re, e.prototype.clearBit = Ee, e.prototype.flipBit = De, e.prototype.add = we, e.prototype.subtract = Ae, e.prototype.multiply = Be, e.prototype.divide = Ue, e.prototype.remainder = Oe, e.prototype.divideAndRemainder = Ve, e.prototype.modPow = Ge, e.prototype.modInverse = We, e.prototype.pow = qe, e.prototype.gcd = $e, e.prototype.isProbablePrime = Qe, e.prototype.square = Ke, ti.prototype.init = ei, ti.prototype.next = ii;
  778. var Ni, Ji, Ii, Pi = 256;
  779. if (null == Ji) {
  780. Ji = new Array, Ii = 0;
  781. var Mi;
  782. if ("Netscape" == navigator.appName && navigator.appVersion < "5" && window.crypto) {
  783. var Li = window.crypto.random(32);
  784. for (Mi = 0; Mi < Li.length; ++Mi) Ji[Ii++] = 255 & Li.charCodeAt(Mi)
  785. }
  786. for (; Pi > Ii;) Mi = Math.floor(65536 * Math.random()), Ji[Ii++] = Mi >>> 8, Ji[Ii++] = 255 & Mi;
  787. Ii = 0, ni()
  788. }
  789. ai.prototype.nextBytes = hi, fi.prototype.doPublic = li, fi.prototype.setPublic = pi, fi.prototype.encrypt = di, fi.prototype.doPrivate = bi, fi.prototype.setPrivate = mi, fi.prototype.setPrivateEx = yi, fi.prototype.generate = vi, fi.prototype.decrypt = Ti,
  790. function () {
  791. var t = function (t, r, s) {
  792. var n = new ai,
  793. o = t >> 1;
  794. this.e = parseInt(r, 16);
  795. var h = new e(r, 16),
  796. a = this,
  797. u = function () {
  798. var r = function () {
  799. if (a.p.compareTo(a.q) <= 0) {
  800. var t = a.p;
  801. a.p = a.q, a.q = t
  802. }
  803. var i = a.p.subtract(e.ONE),
  804. r = a.q.subtract(e.ONE),
  805. n = i.multiply(r);
  806. 0 == n.gcd(h).compareTo(e.ONE) ? (a.n = a.p.multiply(a.q), a.d = h.modInverse(n), a.dmp1 = a.d.mod(i), a.dmq1 = a.d.mod(r), a.coeff = a.q.modInverse(a.p), setTimeout(function () {
  807. s()
  808. }, 0)) : setTimeout(u, 0)
  809. },
  810. c = function () {
  811. a.q = i(), a.q.fromNumberAsync(o, 1, n, function () {
  812. a.q.subtract(e.ONE).gcda(h, function (t) {
  813. 0 == t.compareTo(e.ONE) && a.q.isProbablePrime(10) ? setTimeout(r, 0) : setTimeout(c, 0)
  814. })
  815. })
  816. },
  817. f = function () {
  818. a.p = i(), a.p.fromNumberAsync(t - o, 1, n, function () {
  819. a.p.subtract(e.ONE).gcda(h, function (t) {
  820. 0 == t.compareTo(e.ONE) && a.p.isProbablePrime(10) ? setTimeout(c, 0) : setTimeout(f, 0)
  821. })
  822. })
  823. };
  824. setTimeout(f, 0)
  825. };
  826. setTimeout(u, 0)
  827. };
  828. fi.prototype.generateAsync = t;
  829. var r = function (t, e) {
  830. var i = this.s < 0 ? this.negate() : this.clone(),
  831. r = t.s < 0 ? t.negate() : t.clone();
  832. if (i.compareTo(r) < 0) {
  833. var s = i;
  834. i = r, r = s
  835. }
  836. var n = i.getLowestSetBit(),
  837. o = r.getLowestSetBit();
  838. if (0 > o) return void e(i);
  839. o > n && (o = n), o > 0 && (i.rShiftTo(o, i), r.rShiftTo(o, r));
  840. var h = function () {
  841. (n = i.getLowestSetBit()) > 0 && i.rShiftTo(n, i), (n = r.getLowestSetBit()) > 0 && r.rShiftTo(n, r), i.compareTo(r) >= 0 ? (i.subTo(r, i), i.rShiftTo(1, i)) : (r.subTo(i, r), r.rShiftTo(1, r)), i.signum() > 0 ? setTimeout(h, 0) : (o > 0 && r.lShiftTo(o, r), setTimeout(function () {
  842. e(r)
  843. }, 0))
  844. };
  845. setTimeout(h, 10)
  846. };
  847. e.prototype.gcda = r;
  848. var s = function (t, i, r, s) {
  849. if ("number" == typeof i)
  850. if (2 > t) this.fromInt(1);
  851. else {
  852. this.fromNumber(t, r), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1), he, this), this.isEven() && this.dAddOffset(1, 0);
  853. var n = this,
  854. o = function () {
  855. n.dAddOffset(2, 0), n.bitLength() > t && n.subTo(e.ONE.shiftLeft(t - 1), n), n.isProbablePrime(i) ? setTimeout(function () {
  856. s()
  857. }, 0) : setTimeout(o, 0)
  858. };
  859. setTimeout(o, 0)
  860. } else {
  861. var h = new Array,
  862. a = 7 & t;
  863. h.length = (t >> 3) + 1, i.nextBytes(h), a > 0 ? h[0] &= (1 << a) - 1 : h[0] = 0, this.fromString(h, 256)
  864. }
  865. };
  866. e.prototype.fromNumberAsync = s
  867. }();
  868. var qi = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
  869. Hi = "=",
  870. Ci = Ci || {};
  871. Ci.env = Ci.env || {};
  872. var ji = Ci,
  873. ki = Object.prototype,
  874. Fi = "[object Function]",
  875. _i = ["toString", "valueOf"];
  876. Ci.env.parseUA = function (t) {
  877. var e, i = function (t) {
  878. var e = 0;
  879. return parseFloat(t.replace(/\./g, function () {
  880. return 1 == e++ ? "" : "."
  881. }))
  882. },
  883. r = navigator,
  884. s = {
  885. ie: 0,
  886. opera: 0,
  887. gecko: 0,
  888. webkit: 0,
  889. chrome: 0,
  890. mobile: null,
  891. air: 0,
  892. ipad: 0,
  893. iphone: 0,
  894. ipod: 0,
  895. ios: null,
  896. android: 0,
  897. webos: 0,
  898. caja: r && r.cajaVersion,
  899. secure: !1,
  900. os: null
  901. },
  902. n = t || navigator && navigator.userAgent,
  903. o = window && window.location,
  904. h = o && o.href;
  905. return s.secure = h && 0 === h.toLowerCase().indexOf("https"), n && (/windows|win32/i.test(n) ? s.os = "windows" : /macintosh/i.test(n) ? s.os = "macintosh" : /rhino/i.test(n) && (s.os = "rhino"), /KHTML/.test(n) && (s.webkit = 1), e = n.match(/AppleWebKit\/([^\s]*)/), e && e[1] && (s.webkit = i(e[1]), / Mobile\//.test(n) ? (s.mobile = "Apple", e = n.match(/OS ([^\s]*)/), e && e[1] && (e = i(e[1].replace("_", "."))), s.ios = e, s.ipad = s.ipod = s.iphone = 0, e = n.match(/iPad|iPod|iPhone/), e && e[0] && (s[e[0].toLowerCase()] = s.ios)) : (e = n.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/), e && (s.mobile = e[0]), /webOS/.test(n) && (s.mobile = "WebOS", e = n.match(/webOS\/([^\s]*);/), e && e[1] && (s.webos = i(e[1]))), / Android/.test(n) && (s.mobile = "Android", e = n.match(/Android ([^\s]*);/), e && e[1] && (s.android = i(e[1])))), e = n.match(/Chrome\/([^\s]*)/), e && e[1] ? s.chrome = i(e[1]) : (e = n.match(/AdobeAIR\/([^\s]*)/), e && (s.air = e[0]))), s.webkit || (e = n.match(/Opera[\s\/]([^\s]*)/), e && e[1] ? (s.opera = i(e[1]), e = n.match(/Version\/([^\s]*)/), e && e[1] && (s.opera = i(e[1])), e = n.match(/Opera Mini[^;]*/), e && (s.mobile = e[0])) : (e = n.match(/MSIE\s([^;]*)/), e && e[1] ? s.ie = i(e[1]) : (e = n.match(/Gecko\/([^\s]*)/), e && (s.gecko = 1, e = n.match(/rv:([^\s\)]*)/), e && e[1] && (s.gecko = i(e[1]))))))), s
  906. }, Ci.env.ua = Ci.env.parseUA(), Ci.isFunction = function (t) {
  907. return "function" == typeof t || ki.toString.apply(t) === Fi
  908. }, Ci._IEEnumFix = Ci.env.ua.ie ? function (t, e) {
  909. var i, r, s;
  910. for (i = 0; i < _i.length; i += 1) r = _i[i], s = e[r], ji.isFunction(s) && s != ki[r] && (t[r] = s)
  911. } : function () {}, Ci.extend = function (t, e, i) {
  912. if (!e || !t) throw new Error("extend failed, please check that all dependencies are included.");
  913. var r, s = function () {};
  914. if (s.prototype = e.prototype, t.prototype = new s, t.prototype.constructor = t, t.superclass = e.prototype, e.prototype.constructor == ki.constructor && (e.prototype.constructor = e), i) {
  915. for (r in i) ji.hasOwnProperty(i, r) && (t.prototype[r] = i[r]);
  916. ji._IEEnumFix(t.prototype, i)
  917. }
  918. }, "undefined" != typeof KJUR && KJUR || (KJUR = {}), "undefined" != typeof KJUR.asn1 && KJUR.asn1 || (KJUR.asn1 = {}), KJUR.asn1.ASN1Util = new function () {
  919. this.integerToByteHex = function (t) {
  920. var e = t.toString(16);
  921. return e.length % 2 == 1 && (e = "0" + e), e
  922. }, this.bigIntToMinTwosComplementsHex = function (t) {
  923. var i = t.toString(16);
  924. if ("-" != i.substr(0, 1)) i.length % 2 == 1 ? i = "0" + i : i.match(/^[0-7]/) || (i = "00" + i);
  925. else {
  926. var r = i.substr(1),
  927. s = r.length;
  928. s % 2 == 1 ? s += 1 : i.match(/^[0-7]/) || (s += 2);
  929. for (var n = "", o = 0; s > o; o++) n += "f";
  930. var h = new e(n, 16),
  931. a = h.xor(t).add(e.ONE);
  932. i = a.toString(16).replace(/^-/, "")
  933. }
  934. return i
  935. }, this.getPEMStringFromHex = function (t, e) {
  936. var i = CryptoJS.enc.Hex.parse(t),
  937. r = CryptoJS.enc.Base64.stringify(i),
  938. s = r.replace(/(.{64})/g, "$1\r\n");
  939. return s = s.replace(/\r\n$/, ""), "-----BEGIN " + e + "-----\r\n" + s + "\r\n-----END " + e + "-----\r\n"
  940. }
  941. }, KJUR.asn1.ASN1Object = function () {
  942. var t = "";
  943. this.getLengthHexFromValue = function () {
  944. if ("undefined" == typeof this.hV || null == this.hV) throw "this.hV is null or undefined.";
  945. if (this.hV.length % 2 == 1) throw "value hex must be even length: n=" + t.length + ",v=" + this.hV;
  946. var e = this.hV.length / 2,
  947. i = e.toString(16);
  948. if (i.length % 2 == 1 && (i = "0" + i), 128 > e) return i;
  949. var r = i.length / 2;
  950. if (r > 15) throw "ASN.1 length too long to represent by 8x: n = " + e.toString(16);
  951. var s = 128 + r;
  952. return s.toString(16) + i
  953. }, this.getEncodedHex = function () {
  954. 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
  955. }, this.getValueHex = function () {
  956. return this.getEncodedHex(), this.hV
  957. }, this.getFreshValueHex = function () {
  958. return ""
  959. }
  960. }, KJUR.asn1.DERAbstractString = function (t) {
  961. KJUR.asn1.DERAbstractString.superclass.constructor.call(this);
  962. this.getString = function () {
  963. return this.s
  964. }, this.setString = function (t) {
  965. this.hTLV = null, this.isModified = !0, this.s = t, this.hV = stohex(this.s)
  966. }, this.setStringHex = function (t) {
  967. this.hTLV = null, this.isModified = !0, this.s = null, this.hV = t
  968. }, this.getFreshValueHex = function () {
  969. return this.hV
  970. }, "undefined" != typeof t && ("undefined" != typeof t.str ? this.setString(t.str) : "undefined" != typeof t.hex && this.setStringHex(t.hex))
  971. }, Ci.extend(KJUR.asn1.DERAbstractString, KJUR.asn1.ASN1Object), KJUR.asn1.DERAbstractTime = function () {
  972. KJUR.asn1.DERAbstractTime.superclass.constructor.call(this);
  973. this.localDateToUTC = function (t) {
  974. utc = t.getTime() + 6e4 * t.getTimezoneOffset();
  975. var e = new Date(utc);
  976. return e
  977. }, this.formatDate = function (t, e) {
  978. var i = this.zeroPadding,
  979. r = this.localDateToUTC(t),
  980. s = String(r.getFullYear());
  981. "utc" == e && (s = s.substr(2, 2));
  982. var n = i(String(r.getMonth() + 1), 2),
  983. o = i(String(r.getDate()), 2),
  984. h = i(String(r.getHours()), 2),
  985. a = i(String(r.getMinutes()), 2),
  986. u = i(String(r.getSeconds()), 2);
  987. return s + n + o + h + a + u + "Z"
  988. }, this.zeroPadding = function (t, e) {
  989. return t.length >= e ? t : new Array(e - t.length + 1).join("0") + t
  990. }, this.getString = function () {
  991. return this.s
  992. }, this.setString = function (t) {
  993. this.hTLV = null, this.isModified = !0, this.s = t, this.hV = stohex(this.s)
  994. }, this.setByDateValue = function (t, e, i, r, s, n) {
  995. var o = new Date(Date.UTC(t, e - 1, i, r, s, n, 0));
  996. this.setByDate(o)
  997. }, this.getFreshValueHex = function () {
  998. return this.hV
  999. }
  1000. }, Ci.extend(KJUR.asn1.DERAbstractTime, KJUR.asn1.ASN1Object), KJUR.asn1.DERAbstractStructured = function (t) {
  1001. KJUR.asn1.DERAbstractString.superclass.constructor.call(this);
  1002. this.setByASN1ObjectArray = function (t) {
  1003. this.hTLV = null, this.isModified = !0, this.asn1Array = t
  1004. }, this.appendASN1Object = function (t) {
  1005. this.hTLV = null, this.isModified = !0, this.asn1Array.push(t)
  1006. }, this.asn1Array = new Array, "undefined" != typeof t && "undefined" != typeof t.array && (this.asn1Array = t.array)
  1007. }, Ci.extend(KJUR.asn1.DERAbstractStructured, KJUR.asn1.ASN1Object), KJUR.asn1.DERBoolean = function () {
  1008. KJUR.asn1.DERBoolean.superclass.constructor.call(this), this.hT = "01", this.hTLV = "0101ff"
  1009. }, Ci.extend(KJUR.asn1.DERBoolean, KJUR.asn1.ASN1Object), KJUR.asn1.DERInteger = function (t) {
  1010. KJUR.asn1.DERInteger.superclass.constructor.call(this), this.hT = "02", this.setByBigInteger = function (t) {
  1011. this.hTLV = null, this.isModified = !0, this.hV = KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)
  1012. }, this.setByInteger = function (t) {
  1013. var i = new e(String(t), 10);
  1014. this.setByBigInteger(i)
  1015. }, this.setValueHex = function (t) {
  1016. this.hV = t
  1017. }, this.getFreshValueHex = function () {
  1018. return this.hV
  1019. }, "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))
  1020. }, Ci.extend(KJUR.asn1.DERInteger, KJUR.asn1.ASN1Object), KJUR.asn1.DERBitString = function (t) {
  1021. KJUR.asn1.DERBitString.superclass.constructor.call(this), this.hT = "03", this.setHexValueIncludingUnusedBits = function (t) {
  1022. this.hTLV = null, this.isModified = !0, this.hV = t
  1023. }, this.setUnusedBitsAndHexValue = function (t, e) {
  1024. if (0 > t || t > 7) throw "unused bits shall be from 0 to 7: u = " + t;
  1025. var i = "0" + t;
  1026. this.hTLV = null, this.isModified = !0, this.hV = i + e
  1027. }, this.setByBinaryString = function (t) {
  1028. t = t.replace(/0+$/, "");
  1029. var e = 8 - t.length % 8;
  1030. 8 == e && (e = 0);
  1031. for (var i = 0; e >= i; i++) t += "0";
  1032. for (var r = "", i = 0; i < t.length - 1; i += 8) {
  1033. var s = t.substr(i, 8),
  1034. n = parseInt(s, 2).toString(16);
  1035. 1 == n.length && (n = "0" + n), r += n
  1036. }
  1037. this.hTLV = null, this.isModified = !0, this.hV = "0" + e + r
  1038. }, this.setByBooleanArray = function (t) {
  1039. for (var e = "", i = 0; i < t.length; i++) e += 1 == t[i] ? "1" : "0";
  1040. this.setByBinaryString(e)
  1041. }, this.newFalseArray = function (t) {
  1042. for (var e = new Array(t), i = 0; t > i; i++) e[i] = !1;
  1043. return e
  1044. }, this.getFreshValueHex = function () {
  1045. return this.hV
  1046. }, "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))
  1047. }, Ci.extend(KJUR.asn1.DERBitString, KJUR.asn1.ASN1Object), KJUR.asn1.DEROctetString = function (t) {
  1048. KJUR.asn1.DEROctetString.superclass.constructor.call(this, t), this.hT = "04"
  1049. }, Ci.extend(KJUR.asn1.DEROctetString, KJUR.asn1.DERAbstractString), KJUR.asn1.DERNull = function () {
  1050. KJUR.asn1.DERNull.superclass.constructor.call(this), this.hT = "05", this.hTLV = "0500"
  1051. }, Ci.extend(KJUR.asn1.DERNull, KJUR.asn1.ASN1Object), KJUR.asn1.DERObjectIdentifier = function (t) {
  1052. var i = function (t) {
  1053. var e = t.toString(16);
  1054. return 1 == e.length && (e = "0" + e), e
  1055. },
  1056. r = function (t) {
  1057. var r = "",
  1058. s = new e(t, 10),
  1059. n = s.toString(2),
  1060. o = 7 - n.length % 7;
  1061. 7 == o && (o = 0);
  1062. for (var h = "", a = 0; o > a; a++) h += "0";
  1063. n = h + n;
  1064. for (var a = 0; a < n.length - 1; a += 7) {
  1065. var u = n.substr(a, 7);
  1066. a != n.length - 7 && (u = "1" + u), r += i(parseInt(u, 2))
  1067. }
  1068. return r
  1069. };
  1070. KJUR.asn1.DERObjectIdentifier.superclass.constructor.call(this), this.hT = "06", this.setValueHex = function (t) {
  1071. this.hTLV = null, this.isModified = !0, this.s = null, this.hV = t
  1072. }, this.setValueOidString = function (t) {
  1073. if (!t.match(/^[0-9.]+$/)) throw "malformed oid string: " + t;
  1074. var e = "",
  1075. s = t.split("."),
  1076. n = 40 * parseInt(s[0]) + parseInt(s[1]);
  1077. e += i(n), s.splice(0, 2);
  1078. for (var o = 0; o < s.length; o++) e += r(s[o]);
  1079. this.hTLV = null, this.isModified = !0, this.s = null, this.hV = e
  1080. }, this.setValueName = function (t) {
  1081. if ("undefined" == typeof KJUR.asn1.x509.OID.name2oidList[t]) throw "DERObjectIdentifier oidName undefined: " + t;
  1082. var e = KJUR.asn1.x509.OID.name2oidList[t];
  1083. this.setValueOidString(e)
  1084. }, this.getFreshValueHex = function () {
  1085. return this.hV
  1086. }, "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))
  1087. }, Ci.extend(KJUR.asn1.DERObjectIdentifier, KJUR.asn1.ASN1Object), KJUR.asn1.DERUTF8String = function (t) {
  1088. KJUR.asn1.DERUTF8String.superclass.constructor.call(this, t), this.hT = "0c"
  1089. }, Ci.extend(KJUR.asn1.DERUTF8String, KJUR.asn1.DERAbstractString), KJUR.asn1.DERNumericString = function (t) {
  1090. KJUR.asn1.DERNumericString.superclass.constructor.call(this, t), this.hT = "12"
  1091. }, Ci.extend(KJUR.asn1.DERNumericString, KJUR.asn1.DERAbstractString), KJUR.asn1.DERPrintableString = function (t) {
  1092. KJUR.asn1.DERPrintableString.superclass.constructor.call(this, t), this.hT = "13"
  1093. }, Ci.extend(KJUR.asn1.DERPrintableString, KJUR.asn1.DERAbstractString), KJUR.asn1.DERTeletexString = function (t) {
  1094. KJUR.asn1.DERTeletexString.superclass.constructor.call(this, t), this.hT = "14"
  1095. }, Ci.extend(KJUR.asn1.DERTeletexString, KJUR.asn1.DERAbstractString), KJUR.asn1.DERIA5String = function (t) {
  1096. KJUR.asn1.DERIA5String.superclass.constructor.call(this, t), this.hT = "16"
  1097. }, Ci.extend(KJUR.asn1.DERIA5String, KJUR.asn1.DERAbstractString), KJUR.asn1.DERUTCTime = function (t) {
  1098. KJUR.asn1.DERUTCTime.superclass.constructor.call(this, t), this.hT = "17", this.setByDate = function (t) {
  1099. this.hTLV = null, this.isModified = !0, this.date = t, this.s = this.formatDate(this.date, "utc"), this.hV = stohex(this.s)
  1100. }, "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))
  1101. }, Ci.extend(KJUR.asn1.DERUTCTime, KJUR.asn1.DERAbstractTime), KJUR.asn1.DERGeneralizedTime = function (t) {
  1102. KJUR.asn1.DERGeneralizedTime.superclass.constructor.call(this, t), this.hT = "18", this.setByDate = function (t) {
  1103. this.hTLV = null, this.isModified = !0, this.date = t, this.s = this.formatDate(this.date, "gen"), this.hV = stohex(this.s)
  1104. }, "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))
  1105. }, Ci.extend(KJUR.asn1.DERGeneralizedTime, KJUR.asn1.DERAbstractTime), KJUR.asn1.DERSequence = function (t) {
  1106. KJUR.asn1.DERSequence.superclass.constructor.call(this, t), this.hT = "30", this.getFreshValueHex = function () {
  1107. for (var t = "", e = 0; e < this.asn1Array.length; e++) {
  1108. var i = this.asn1Array[e];
  1109. t += i.getEncodedHex()
  1110. }
  1111. return this.hV = t, this.hV
  1112. }
  1113. }, Ci.extend(KJUR.asn1.DERSequence, KJUR.asn1.DERAbstractStructured), KJUR.asn1.DERSet = function (t) {
  1114. KJUR.asn1.DERSet.superclass.constructor.call(this, t), this.hT = "31", this.getFreshValueHex = function () {
  1115. for (var t = new Array, e = 0; e < this.asn1Array.length; e++) {
  1116. var i = this.asn1Array[e];
  1117. t.push(i.getEncodedHex())
  1118. }
  1119. return t.sort(), this.hV = t.join(""), this.hV
  1120. }
  1121. }, Ci.extend(KJUR.asn1.DERSet, KJUR.asn1.DERAbstractStructured), KJUR.asn1.DERTaggedObject = function (t) {
  1122. KJUR.asn1.DERTaggedObject.superclass.constructor.call(this), this.hT = "a0", this.hV = "", this.isExplicit = !0, this.asn1Object = null, this.setASN1Object = function (t, e, i) {
  1123. 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)
  1124. }, this.getFreshValueHex = function () {
  1125. return this.hV
  1126. }, "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)))
  1127. }, Ci.extend(KJUR.asn1.DERTaggedObject, KJUR.asn1.ASN1Object),
  1128. function (t) {
  1129. "use strict";
  1130. var e, i = {};
  1131. i.decode = function (i) {
  1132. var r;
  1133. if (e === t) {
  1134. var s = "0123456789ABCDEF",
  1135. n = " \f\n\r ?\u2028\u2029";
  1136. for (e = [], r = 0; 16 > r; ++r) e[s.charAt(r)] = r;
  1137. for (s = s.toLowerCase(), r = 10; 16 > r; ++r) e[s.charAt(r)] = r;
  1138. for (r = 0; r < n.length; ++r) e[n.charAt(r)] = -1
  1139. }
  1140. var o = [],
  1141. h = 0,
  1142. a = 0;
  1143. for (r = 0; r < i.length; ++r) {
  1144. var u = i.charAt(r);
  1145. if ("=" == u) break;
  1146. if (u = e[u], -1 != u) {
  1147. if (u === t) throw "Illegal character at offset " + r;
  1148. h |= u, ++a >= 2 ? (o[o.length] = h, h = 0, a = 0) : h <<= 4
  1149. }
  1150. }
  1151. if (a) throw "Hex encoding incomplete: 4 bits missing";
  1152. return o
  1153. }, Hex = window.Hex = i
  1154. }(),
  1155. function (t) {
  1156. "use strict";
  1157. var e, i = {};
  1158. i.decode = function (i) {
  1159. var r;
  1160. if (e === t) {
  1161. var s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
  1162. n = "= \f\n\r ?\u2028\u2029";
  1163. for (e = [], r = 0; 64 > r; ++r) e[s.charAt(r)] = r;
  1164. for (r = 0; r < n.length; ++r) e[n.charAt(r)] = -1
  1165. }
  1166. var o = [],
  1167. h = 0,
  1168. a = 0;
  1169. for (r = 0; r < i.length; ++r) {
  1170. var u = i.charAt(r);
  1171. if ("=" == u) break;
  1172. if (u = e[u], -1 != u) {
  1173. if (u === t) throw "Illegal character at offset " + r;
  1174. h |= u, ++a >= 4 ? (o[o.length] = h >> 16, o[o.length] = h >> 8 & 255, o[o.length] = 255 & h, h = 0, a = 0) : h <<= 6
  1175. }
  1176. }
  1177. switch (a) {
  1178. case 1:
  1179. throw "Base64 encoding incomplete: at least 2 bits missing";
  1180. case 2:
  1181. o[o.length] = h >> 10;
  1182. break;
  1183. case 3:
  1184. o[o.length] = h >> 16, o[o.length] = h >> 8 & 255
  1185. }
  1186. return o
  1187. }, i.re = /-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/, i.unarmor = function (t) {
  1188. var e = i.re.exec(t);
  1189. if (e)
  1190. if (e[1]) t = e[1];
  1191. else {
  1192. if (!e[2]) throw "RegExp out of sync";
  1193. t = e[2]
  1194. }
  1195. return i.decode(t)
  1196. }, Base64 = window.Base64 = i
  1197. }(),
  1198. function (t) {
  1199. "use strict";

  1200. function e(t, i) {
  1201. t instanceof e ? (this.enc = t.enc, this.pos = t.pos) : (this.enc = t, this.pos = i)
  1202. }

  1203. function i(t, e, i, r, s) {
  1204. this.stream = t, this.header = e, this.length = i, this.tag = r, this.sub = s
  1205. }
  1206. var r = 100,
  1207. n = {
  1208. tag: function (t, e) {
  1209. var i = document.createElement(t);
  1210. return i.className = e, i
  1211. }, text: function (t) {
  1212. return document.createTextNode(t)
  1213. }
  1214. };
  1215. e.prototype.get = function (e) {
  1216. if (e === t && (e = this.pos++), e >= this.enc.length) throw "Requesting byte offset " + e + " on a stream of length " + this.enc.length;
  1217. return this.enc[e]
  1218. }, e.prototype.hexDigits = "0123456789ABCDEF", e.prototype.hexByte = function (t) {
  1219. return this.hexDigits.charAt(t >> 4 & 15) + this.hexDigits.charAt(15 & t)
  1220. }, e.prototype.hexDump = function (t, e, i) {
  1221. for (var r = "", s = t; e > s; ++s)
  1222. if (r += this.hexByte(this.get(s)), i !== !0) switch (15 & s) {
  1223. case 7:
  1224. r += " ";
  1225. break;
  1226. case 15:
  1227. r += "\n";
  1228. break;
  1229. default:
  1230. r += " "
  1231. }
  1232. return r
  1233. }, e.prototype.parseStringISO = function (t, e) {
  1234. for (var i = "", r = t; e > r; ++r) i += String.fromCharCode(this.get(r));
  1235. return i
  1236. }, e.prototype.parseStringUTF = function (t, e) {
  1237. for (var i = "", r = t; e > r;) {
  1238. var s = this.get(r++);
  1239. i += String.fromCharCode(128 > s ? s : s > 191 && 224 > s ? (31 & s) << 6 | 63 & this.get(r++) : (15 & s) << 12 | (63 & this.get(r++)) << 6 | 63 & this.get(r++))
  1240. }
  1241. return i
  1242. }, e.prototype.parseStringBMP = function (t, e) {
  1243. for (var i = "", r = t; e > r; r += 2) {
  1244. var s = this.get(r),
  1245. n = this.get(r + 1);
  1246. i += String.fromCharCode((s << 8) + n)
  1247. }
  1248. return i
  1249. }, 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) {
  1250. var i = this.parseStringISO(t, e),
  1251. r = this.reTime.exec(i);
  1252. return r ? (i = r[1] + "-" + r[2] + "-" + r[3] + " " + r[4], r[5] && (i += ":" + r[5], r[6] && (i += ":" + r[6], r[7] && (i += "." + r[7]))), r[8] && (i += " UTC", "Z" != r[8] && (i += r[8], r[9] && (i += ":" + r[9]))), i) : "Unrecognized time: " + i
  1253. }, e.prototype.parseInteger = function (t, e) {
  1254. var i = e - t;
  1255. if (i > 4) {
  1256. i <<= 3;
  1257. var r = this.get(t);
  1258. if (0 === r) i -= 8;
  1259. else
  1260. for (; 128 > r;) r <<= 1, --i;
  1261. return "(" + i + " bit)"
  1262. }
  1263. for (var s = 0, n = t; e > n; ++n) s = s << 8 | this.get(n);
  1264. return s
  1265. }, e.prototype.parseBitString = function (t, e) {
  1266. var i = this.get(t),
  1267. r = (e - t - 1 << 3) - i,
  1268. s = "(" + r + " bit)";
  1269. if (20 >= r) {
  1270. var n = i;
  1271. s += " ";
  1272. for (var o = e - 1; o > t; --o) {
  1273. for (var h = this.get(o), a = n; 8 > a; ++a) s += h >> a & 1 ? "1" : "0";
  1274. n = 0
  1275. }
  1276. }
  1277. return s
  1278. }, e.prototype.parseOctetString = function (t, e) {
  1279. var i = e - t,
  1280. n = "(" + i + " byte) ";
  1281. i > r && (e = t + r);
  1282. for (var o = t; e > o; ++o) n += this.hexByte(this.get(o));
  1283. return i > r && (n += s), n
  1284. }, e.prototype.parseOID = function (t, e) {
  1285. for (var i = "", r = 0, s = 0, n = t; e > n; ++n) {
  1286. var o = this.get(n);
  1287. if (r = r << 7 | 127 & o, s += 7, !(128 & o)) {
  1288. if ("" === i) {
  1289. var h = 80 > r ? 40 > r ? 0 : 1 : 2;
  1290. i = h + "." + (r - 40 * h)
  1291. } else i += "." + (s >= 31 ? "bigint" : r);
  1292. r = s = 0
  1293. }
  1294. }
  1295. return i
  1296. }, i.prototype.typeName = function () {
  1297. if (this.tag === t) return "unknown";
  1298. var e = this.tag >> 6,
  1299. i = (this.tag >> 5 & 1, 31 & this.tag);
  1300. switch (e) {
  1301. case 0:
  1302. switch (i) {
  1303. case 0:
  1304. return "EOC";
  1305. case 1:
  1306. return "BOOLEAN";
  1307. case 2:
  1308. return "INTEGER";
  1309. case 3:
  1310. return "BIT_STRING";
  1311. case 4:
  1312. return "OCTET_STRING";
  1313. case 5:
  1314. return "NULL";
  1315. case 6:
  1316. return "OBJECT_IDENTIFIER";
  1317. case 7:
  1318. return "ObjectDescriptor";
  1319. case 8:
  1320. return "EXTERNAL";
  1321. case 9:
  1322. return "REAL";
  1323. case 10:
  1324. return "ENUMERATED";
  1325. case 11:
  1326. return "EMBEDDED_PDV";
  1327. case 12:
  1328. return "UTF8String";
  1329. case 16:
  1330. return "SEQUENCE";
  1331. case 17:
  1332. return "SET";
  1333. case 18:
  1334. return "NumericString";
  1335. case 19:
  1336. return "PrintableString";
  1337. case 20:
  1338. return "TeletexString";
  1339. case 21:
  1340. return "VideotexString";
  1341. case 22:
  1342. return "IA5String";
  1343. case 23:
  1344. return "UTCTime";
  1345. case 24:
  1346. return "GeneralizedTime";
  1347. case 25:
  1348. return "GraphicString";
  1349. case 26:
  1350. return "VisibleString";
  1351. case 27:
  1352. return "GeneralString";
  1353. case 28:
  1354. return "UniversalString";
  1355. case 30:
  1356. return "BMPString";
  1357. default:
  1358. return "Universal_" + i.toString(16)
  1359. }
  1360. case 1:
  1361. return "Application_" + i.toString(16);
  1362. case 2:
  1363. return "[" + i + "]";
  1364. case 3:
  1365. return "Private_" + i.toString(16)
  1366. }
  1367. }, i.prototype.reSeemsASCII = /^[ -~]+$/, i.prototype.content = function () {
  1368. if (this.tag === t) return null;
  1369. var e = this.tag >> 6,
  1370. i = 31 & this.tag,
  1371. n = this.posContent(),
  1372. o = Math.abs(this.length);
  1373. if (0 !== e) {
  1374. if (null !== this.sub) return "(" + this.sub.length + " elem)";
  1375. var h = this.stream.parseStringISO(n, n + Math.min(o, r));
  1376. return this.reSeemsASCII.test(h) ? h.substring(0, 2 * r) + (h.length > 2 * r ? s : "") : this.stream.parseOctetString(n, n + o)
  1377. }
  1378. switch (i) {
  1379. case 1:
  1380. return 0 === this.stream.get(n) ? "false" : "true";
  1381. case 2:
  1382. return this.stream.parseInteger(n, n + o);
  1383. case 3:
  1384. return this.sub ? "(" + this.sub.length + " elem)" : this.stream.parseBitString(n, n + o);
  1385. case 4:
  1386. return this.sub ? "(" + this.sub.length + " elem)" : this.stream.parseOctetString(n, n + o);
  1387. case 6:
  1388. return this.stream.parseOID(n, n + o);
  1389. case 16:
  1390. case 17:
  1391. return "(" + this.sub.length + " elem)";
  1392. case 12:
  1393. return this.stream.parseStringUTF(n, n + o);
  1394. case 18:
  1395. case 19:
  1396. case 20:
  1397. case 21:
  1398. case 22:
  1399. case 26:
  1400. return this.stream.parseStringISO(n, n + o);
  1401. case 30:
  1402. return this.stream.parseStringBMP(n, n + o);
  1403. case 23:
  1404. case 24:
  1405. return this.stream.parseTime(n, n + o)
  1406. }
  1407. return null
  1408. }, i.prototype.toString = function () {
  1409. return this.typeName() + "@" + this.stream.pos + "[header:" + this.header + ",length:" + this.length + ",sub:" + (null === this.sub ? "null" : this.sub.length) + "]"
  1410. }, i.prototype.print = function (e) {
  1411. if (e === t && (e = ""), document.writeln(e + this), null !== this.sub) {
  1412. e += " ";
  1413. for (var i = 0, r = this.sub.length; r > i; ++i) this.sub[i].print(e)
  1414. }
  1415. }, i.prototype.toPrettyString = function (e) {
  1416. e === t && (e = "");
  1417. var i = e + this.typeName() + " @" + this.stream.pos;
  1418. 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) {
  1419. e += " ";
  1420. for (var r = 0, s = this.sub.length; s > r; ++r) i += this.sub[r].toPrettyString(e)
  1421. }
  1422. return i
  1423. }, i.prototype.toDOM = function () {
  1424. var t = n.tag("div", "node");
  1425. t.asn1 = this;
  1426. var e = n.tag("div", "head"),
  1427. i = this.typeName().replace(/_/g, " ");
  1428. e.innerHTML = i;
  1429. var r = this.content();
  1430. if (null !== r) {
  1431. r = String(r).replace(/</g, "<");
  1432. var s = n.tag("span", "preview");
  1433. s.appendChild(n.text(r)), e.appendChild(s)
  1434. }
  1435. t.appendChild(e), this.node = t, this.head = e;
  1436. var o = n.tag("div", "value");
  1437. 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 !== r && (i += "<br/>Value:<br/><b>" + r + "</b>", "object" == typeof oids && 6 == this.tag)) {
  1438. var h = oids[r];
  1439. h && (h.d && (i += "<br/>" + h.d), h.c && (i += "<br/>" + h.c), h.w && (i += "<br/>(warning!)"))
  1440. }
  1441. o.innerHTML = i, t.appendChild(o);
  1442. var a = n.tag("div", "sub");
  1443. if (null !== this.sub)
  1444. for (var u = 0, c = this.sub.length; c > u; ++u) a.appendChild(this.sub[u].toDOM());
  1445. return t.appendChild(a), e.onclick = function () {
  1446. t.className = "node collapsed" == t.className ? "node" : "node collapsed"
  1447. }, t
  1448. }, i.prototype.posStart = function () {
  1449. return this.stream.pos
  1450. }, i.prototype.posContent = function () {
  1451. return this.stream.pos + this.header
  1452. }, i.prototype.posEnd = function () {
  1453. return this.stream.pos + this.header + Math.abs(this.length)
  1454. }, i.prototype.fakeHover = function (t) {
  1455. this.node.className += " hover", t && (this.head.className += " hover")
  1456. }, i.prototype.fakeOut = function (t) {
  1457. var e = / ?hover/;
  1458. this.node.className = this.node.className.replace(e, ""), t && (this.head.className = this.head.className.replace(e, ""))
  1459. }, i.prototype.toHexDOM_sub = function (t, e, i, r, s) {
  1460. if (!(r >= s)) {
  1461. var o = n.tag("span", e);
  1462. o.appendChild(n.text(i.hexDump(r, s))), t.appendChild(o)
  1463. }
  1464. }, i.prototype.toHexDOM = function (e) {
  1465. var i = n.tag("span", "hex");
  1466. if (e === t && (e = i), this.head.hexNode = i, this.head.onmouseover = function () {
  1467. this.hexNode.className = "hexCurrent"
  1468. }, this.head.onmouseout = function () {
  1469. this.hexNode.className = "hex"
  1470. }, i.asn1 = this, i.onmouseover = function () {
  1471. var t = !e.selected;
  1472. t && (e.selected = this.asn1, this.className = "hexCurrent"), this.asn1.fakeHover(t)
  1473. }, i.onmouseout = function () {
  1474. var t = e.selected == this.asn1;
  1475. this.asn1.fakeOut(t), t && (e.selected = null, this.className = "hex")
  1476. }, 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(n.text(this.stream.hexDump(this.posContent(), this.posEnd())));
  1477. else if (this.sub.length > 0) {
  1478. var r = this.sub[0],
  1479. s = this.sub[this.sub.length - 1];
  1480. this.toHexDOM_sub(i, "intro", this.stream, this.posContent(), r.posStart());
  1481. for (var o = 0, h = this.sub.length; h > o; ++o) i.appendChild(this.sub[o].toHexDOM(e));
  1482. this.toHexDOM_sub(i, "outro", this.stream, s.posEnd(), this.posEnd())
  1483. }
  1484. return i
  1485. }, i.prototype.toHexString = function () {
  1486. return this.stream.hexDump(this.posStart(), this.posEnd(), !0)
  1487. }, i.decodeLength = function (t) {
  1488. var e = t.get(),
  1489. i = 127 & e;
  1490. if (i == e) return i;
  1491. if (i > 3) throw "Length over 24 bits not supported at position " + (t.pos - 1);
  1492. if (0 === i) return -1;
  1493. e = 0;
  1494. for (var r = 0; i > r; ++r) e = e << 8 | t.get();
  1495. return e
  1496. }, i.hasContent = function (t, r, s) {
  1497. if (32 & t) return !0;
  1498. if (3 > t || t > 4) return !1;
  1499. var n = new e(s);
  1500. 3 == t && n.get();
  1501. var o = n.get();
  1502. if (o >> 6 & 1) return !1;
  1503. try {
  1504. var h = i.decodeLength(n);
  1505. return n.pos - s.pos + h == r
  1506. } catch (a) {
  1507. return !1
  1508. }
  1509. }, i.decode = function (t) {
  1510. t instanceof e || (t = new e(t, 0));
  1511. var r = new e(t),
  1512. s = t.get(),
  1513. n = i.decodeLength(t),
  1514. o = t.pos - r.pos,
  1515. h = null;
  1516. if (i.hasContent(s, n, t)) {
  1517. var a = t.pos;
  1518. if (3 == s && t.get(), h = [], n >= 0) {
  1519. for (var u = a + n; t.pos < u;) h[h.length] = i.decode(t);
  1520. if (t.pos != u) throw "Content size is not correct for container starting at offset " + a
  1521. } else try {
  1522. for (;;) {
  1523. var c = i.decode(t);
  1524. if (0 === c.tag) break;
  1525. h[h.length] = c
  1526. }
  1527. n = a - t.pos
  1528. } catch (f) {
  1529. throw "Exception while decoding undefined length content: " + f
  1530. }
  1531. } else t.pos += n;
  1532. return new i(r, o, n, s, h)
  1533. }, i.test = function () {
  1534. for (var t = [{
  1535. value: [39],
  1536. expected: 39
  1537. }, {
  1538. value: [129, 201],
  1539. expected: 201
  1540. }, {
  1541. value: [131, 254, 220, 186],
  1542. expected: 16702650
  1543. }], r = 0, s = t.length; s > r; ++r) {
  1544. var n = new e(t[r].value, 0),
  1545. o = i.decodeLength(n);
  1546. o != t[r].expected && document.write("In test[" + r + "] expected " + t[r].expected + " got " + o + "\n")
  1547. }
  1548. }, ASN1 = window.ASN1 = i
  1549. }(), ASN1 = window.ASN1
  1550. ASN1.prototype.getHexStringValue = function () {
  1551. var t = this.toHexString(),
  1552. e = 2 * this.header,
  1553. i = 2 * this.length;
  1554. return t.substr(e, i)
  1555. }, fi.prototype.parseKey = function (t) {
  1556. try {
  1557. var e = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,
  1558. i = e.test(t) ? Hex.decode(t) : Base64.unarmor(t),
  1559. r = ASN1.decode(i);
  1560. if (9 === r.sub.length) {
  1561. var s = r.sub[1].getHexStringValue();
  1562. this.n = ui(s, 16);
  1563. var n = r.sub[2].getHexStringValue();
  1564. this.e = parseInt(n, 16);
  1565. var o = r.sub[3].getHexStringValue();
  1566. this.d = ui(o, 16);
  1567. var h = r.sub[4].getHexStringValue();
  1568. this.p = ui(h, 16);
  1569. var a = r.sub[5].getHexStringValue();
  1570. this.q = ui(a, 16);
  1571. var u = r.sub[6].getHexStringValue();
  1572. this.dmp1 = ui(u, 16);
  1573. var c = r.sub[7].getHexStringValue();
  1574. this.dmq1 = ui(c, 16);
  1575. var f = r.sub[8].getHexStringValue();
  1576. this.coeff = ui(f, 16)
  1577. } else {
  1578. if (2 !== r.sub.length) return !1;
  1579. var p = r.sub[1],
  1580. l = p.sub[0],
  1581. s = l.sub[0].getHexStringValue();
  1582. this.n = ui(s, 16);
  1583. var n = l.sub[1].getHexStringValue();
  1584. this.e = parseInt(n, 16)
  1585. }
  1586. return !0
  1587. } catch (d) {
  1588. return !1
  1589. }
  1590. }, fi.prototype.getPrivateBaseKey = function () {
  1591. var t = {
  1592. array: [new KJUR.asn1.DERInteger({
  1593. "int": 0
  1594. }), new KJUR.asn1.DERInteger({
  1595. bigint: this.n
  1596. }), new KJUR.asn1.DERInteger({
  1597. "int": this.e
  1598. }), new KJUR.asn1.DERInteger({
  1599. bigint: this.d
  1600. }), new KJUR.asn1.DERInteger({
  1601. bigint: this.p
  1602. }), new KJUR.asn1.DERInteger({
  1603. bigint: this.q
  1604. }), new KJUR.asn1.DERInteger({
  1605. bigint: this.dmp1
  1606. }), new KJUR.asn1.DERInteger({
  1607. bigint: this.dmq1
  1608. }), new KJUR.asn1.DERInteger({
  1609. bigint: this.coeff
  1610. })]
  1611. },
  1612. e = new KJUR.asn1.DERSequence(t);
  1613. return e.getEncodedHex()
  1614. }, fi.prototype.getPrivateBaseKeyB64 = function () {
  1615. return Si(this.getPrivateBaseKey())
  1616. }, fi.prototype.getPublicBaseKey = function () {
  1617. var t = {
  1618. array: [new KJUR.asn1.DERObjectIdentifier({
  1619. oid: "1.2.840.113549.1.1.1"
  1620. }), new KJUR.asn1.DERNull]
  1621. },
  1622. e = new KJUR.asn1.DERSequence(t);
  1623. t = {
  1624. array: [new KJUR.asn1.DERInteger({
  1625. bigint: this.n
  1626. }), new KJUR.asn1.DERInteger({
  1627. "int": this.e
  1628. })]
  1629. };
  1630. var i = new KJUR.asn1.DERSequence(t);
  1631. t = {
  1632. hex: "00" + i.getEncodedHex()
  1633. };
  1634. var r = new KJUR.asn1.DERBitString(t);
  1635. t = {
  1636. array: [e, r]
  1637. };
  1638. var s = new KJUR.asn1.DERSequence(t);
  1639. return s.getEncodedHex()
  1640. }, fi.prototype.getPublicBaseKeyB64 = function () {
  1641. return Si(this.getPublicBaseKey())
  1642. }, fi.prototype.wordwrap = function (t, e) {
  1643. if (e = e || 64, !t) return t;
  1644. var i = "(.{1," + e + "})( +|$\n?)|(.{1," + e + "})";
  1645. return t.match(RegExp(i, "g")).join("\n")
  1646. }, fi.prototype.getPrivateKey = function () {
  1647. var t = "-----BEGIN RSA PRIVATE KEY-----\n";
  1648. return t += this.wordwrap(this.getPrivateBaseKeyB64()) + "\n", t += "-----END RSA PRIVATE KEY-----"
  1649. }, fi.prototype.getPublicKey = function () {
  1650. var t = "-----BEGIN PUBLIC KEY-----\n";
  1651. return t += this.wordwrap(this.getPublicBaseKeyB64()) + "\n", t += "-----END PUBLIC KEY-----"
  1652. }, fi.prototype.hasPublicKeyProperty = function (t) {
  1653. return t = t || {}, t.hasOwnProperty("n") && t.hasOwnProperty("e")
  1654. }, fi.prototype.hasPrivateKeyProperty = function (t) {
  1655. 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")
  1656. }, fi.prototype.parsePropertiesFrom = function (t) {
  1657. 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)
  1658. };
  1659. var zi = function (t) {
  1660. fi.call(this), t && ("string" == typeof t ? this.parseKey(t) : (this.hasPrivateKeyProperty(t) || this.hasPublicKeyProperty(t)) && this.parsePropertiesFrom(t))
  1661. };
  1662. zi.prototype = new fi, zi.prototype.constructor = zi;
  1663. var Zi = function (t) {
  1664. t = t || {}, this.default_key_size = parseInt(t.default_key_size, 10) || 1024, this.default_public_exponent = t.default_public_exponent || "010001", this.log = t.log || !1, this.key = null
  1665. };
  1666. Zi.prototype.setKey = function (t) {
  1667. this.log && this.key && console.warn("A key was already set, overriding existing."), this.key = new zi(t)
  1668. }, Zi.prototype.setPrivateKey = function (t) {
  1669. this.setKey(t)
  1670. }, Zi.prototype.setPublicKey = function (t) {
  1671. this.setKey(t)
  1672. }, Zi.prototype.decrypt = function (t) {
  1673. try {
  1674. return this.getKey().decrypt(Ri(t))
  1675. } catch (e) {
  1676. return !1
  1677. }
  1678. }, Zi.prototype.encrypt = function (t) {
  1679. try {
  1680. return Si(this.getKey().encrypt(t))
  1681. } catch (e) {
  1682. return !1
  1683. }
  1684. }, Zi.prototype.getKey = function (t) {
  1685. if (!this.key) {
  1686. if (this.key = new zi, t && "[object Function]" === {}.toString.call(t)) return void this.key.generateAsync(this.default_key_size, this.default_public_exponent, t);
  1687. this.key.generate(this.default_key_size, this.default_public_exponent)
  1688. }
  1689. return this.key
  1690. }, Zi.prototype.getPrivateKey = function () {
  1691. return this.getKey().getPrivateKey()
  1692. }, Zi.prototype.getPrivateKeyB64 = function () {
  1693. return this.getKey().getPrivateBaseKeyB64()
  1694. }, Zi.prototype.getPublicKey = function () {
  1695. return this.getKey().getPublicKey()
  1696. }, Zi.prototype.getPublicKeyB64 = function () {
  1697. return this.getKey().getPublicBaseKeyB64()
  1698. }, t.JSEncrypt = Zi
  1699. }(passport.lib.RSAExport), passport.lib.RSA = passport.lib.RSAExport.JSEncrypt;

  1700. function getEncParam(phone) {
  1701. var e = new passport.lib.RSA();
  1702. e.setPublicKey("-----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvPcyDxC9rfwvDxbuurZcYLaHPqMeQYZa6zhpKJDVQcftzHzCCL6u3creyHp+ZlByTxKZCpNSIpPf4XQoDxfgw62CGkVYrxxFqfCdxWDjnmY2Kio8txvsmmddgZeWomylRvaCSx2dTPdL+BzX+sbU5F6jNklmIV5H6o94X0hvTgVqPRvOUxX/+feaEvgcjqyqL5rX3ZrJfYllxiu5bqKZ6uWvAvcEMnJmQHcyHWN8kc8tP+IM6SEMrlu6Sl82xtvY9HNKjltVe6WnDPROwwKOYfzsq5iNB6J2XXT2w9Ykn9BjPxzgF+KqGqbbejLKwZ3EYz5Km5ftQbCEFNKGrxvZkwIDAQAB-----END PUBLIC KEY-----");
  1703. var t = "%7B%22type%22%3A%222%22%2C%22rechargeNum%22%3A%22" + phone + "%22%7D";
  1704. for (var n = t.replace(/[\u0391-\uFFE5]/g, "aa").length, i = 0, r = 118, o = new Array; i <= n;) o.push(e.encrypt(t.substring(i, r))), i = r, r += 117;
  1705. return o.join(",")
  1706. }
复制代码


回复

使用道具 举报

结帖率:80% (24/30)
发表于 2021-4-20 20:01:08 | 显示全部楼层   安徽省滁州市
访问不了啊
回复

使用道具 举报

结帖率:95% (19/20)

签到天数: 19 天

发表于 2021-4-20 20:29:27 | 显示全部楼层   河南省商丘市
定制吧
回复

使用道具 举报

结帖率:100% (11/11)

签到天数: 13 天

发表于 2021-4-20 20:32:38 | 显示全部楼层   浙江省嘉兴市
光发一个POST包有什么用  盲猜吗?
回复

使用道具 举报

结帖率:25% (1/4)

签到天数: 15 天

发表于 2021-4-20 21:05:14 | 显示全部楼层   河南省焦作市
有偿  可以联系我
回复

使用道具 举报

结帖率:75% (6/8)
 楼主| 发表于 2021-4-20 21:26:24 | 显示全部楼层   辽宁省抚顺市

网站 https://weixin.10044.cn/weixinstatic/weixin/#/qmcRecharge  充流量,输入号码后会验证这个号码能不能充,测试号码 17174931558
回复

使用道具 举报

结帖率:80% (24/30)
发表于 2021-4-20 22:18:07 | 显示全部楼层   安徽省滁州市
发的js太长要审核好久,直接给你文件吧,调用getEncParam,参数就是手机号,提交的时候记得带上协议头

1.txt

52.31 KB, 下载次数: 5, 下载积分: 精币 -1 枚

回复

使用道具 举报

结帖率:80% (24/30)
发表于 2021-4-20 22:19:26 | 显示全部楼层   安徽省滁州市
好长时间了回复都没通过审核,加我Q发你吧
回复

使用道具 举报

结帖率:100% (11/11)

签到天数: 13 天

发表于 2021-4-20 22:38:56 | 显示全部楼层   浙江省嘉兴市
{"type":"1","rechargeNum":"17174931558"}
JSON→URL加密→RSA加密  
公钥
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvPcyDxC9rfwvDxbuurZc
YLaHPqMeQYZa6zhpKJDVQcftzHzCCL6u3creyHp+ZlByTxKZCpNSIpPf4XQoDxfg
w62CGkVYrxxFqfCdxWDjnmY2Kio8txvsmmddgZeWomylRvaCSx2dTPdL+BzX+sbU
5F6jNklmIV5H6o94X0hvTgVqPRvOUxX/+feaEvgcjqyqL5rX3ZrJfYllxiu5bqKZ
6uWvAvcEMnJmQHcyHWN8kc8tP+IM6SEMrlu6Sl82xtvY9HNKjltVe6WnDPROwwKO
Yfzsq5iNB6J2XXT2w9Ykn9BjPxzgF+KqGqbbejLKwZ3EYz5Km5ftQbCEFNKGrxvZ
kwIDAQAB
-----END PUBLIC KEY-----

测试2组
orRDZ1JlM4mIHzUTC4L0MgANtZ2Kph4Bj9B0StXc1HLPRx//9IzJAxDuD/WuiXBS8OAHFTcJ5JK6Jo2RD7Iq+8YRNn1xdoWjLQzNgba28dDdON3aBPaLoav8CBPXm9eTB8QliEjb5zVImEubzLr7odrCSsLXBYBfH6OkNe9YFEkoKLY5ABfAn8aWHsY46puVbzduy5ILRcrHLUgGPKvAPk0ogifufTX2Hv5cWNADQuRYJS95I7+gax4zT0aw2hjKwMQO8AhDLcwBPg/VzYEiVNIM+W8WKYQx4lOj5g1ckv51o+eVOtLNq/cMShUyIe4Qc7buoDvFIYB+hB3xs6Wy/w==

GnFI1AQD4RW+eKhxJtv4eOXRBujvtfYQXCmPVLHeucnebGwSZWETCa2mHXQXhd+DXDTWiD9XgsuS+sI3V4MmuHJ52txNbIv/IfASUvNn5wUAB+BoPSgDYGLXB/K8kNd/sOyA+ziJWUnzUu+zzwiIXYAmby5iUrMhw3RkG0sf0YrIuLaGUluF8y63snABB63qbo5ZbDnHVaC7zLbjk2fpURk2R9NAMfJIM6Eaie4QP3AV0pgP0RJjRbfgXra8xDEKz+jiXXMeHjo4x+uo8DcVi8oUJfhaJV+47odmec+ijcJIHNXRN/gQCNWlal9mTmd69kch4KyHoNW8IA62cXlcPg==

评分

参与人数 1好评 +1 精币 +2 收起 理由
guyunhe + 1 + 2 感谢分享,很给力!~

查看全部评分

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:wp@125.la
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表