md5.js 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. /* eslint-disable */
  2. function r (e) {
  3. return E(l(b(e), e.length * n))
  4. }
  5. function i (e) {
  6. return S(l(b(e), e.length * n))
  7. }
  8. function s (e) {
  9. return w(l(b(e), e.length * n))
  10. }
  11. function o (e, t) {
  12. return E(m(e, t))
  13. }
  14. function u (e, t) {
  15. return S(m(e, t))
  16. }
  17. function a (e, t) {
  18. return w(m(e, t))
  19. }
  20. function f () {
  21. return r('abc') == '900150983cd24fb0d6963f7d28e17f72'
  22. }
  23. function l (e, t) {
  24. e[t >> 5] |= 128 << t % 32,
  25. e[(t + 64 >>> 9 << 4) + 14] = t
  26. var n = 1732584193;
  27. var r = -271733879;
  28. var i = -1732584194;
  29. var s = 271733878
  30. for (var o = 0; o < e.length; o += 16) {
  31. var u = n;
  32. var a = r;
  33. var f = i;
  34. var l = s
  35. n = h(n, r, i, s, e[o + 0], 7, -680876936),
  36. s = h(s, n, r, i, e[o + 1], 12, -389564586),
  37. i = h(i, s, n, r, e[o + 2], 17, 606105819),
  38. r = h(r, i, s, n, e[o + 3], 22, -1044525330),
  39. n = h(n, r, i, s, e[o + 4], 7, -176418897),
  40. s = h(s, n, r, i, e[o + 5], 12, 1200080426),
  41. i = h(i, s, n, r, e[o + 6], 17, -1473231341),
  42. r = h(r, i, s, n, e[o + 7], 22, -45705983),
  43. n = h(n, r, i, s, e[o + 8], 7, 1770035416),
  44. s = h(s, n, r, i, e[o + 9], 12, -1958414417),
  45. i = h(i, s, n, r, e[o + 10], 17, -42063),
  46. r = h(r, i, s, n, e[o + 11], 22, -1990404162),
  47. n = h(n, r, i, s, e[o + 12], 7, 1804603682),
  48. s = h(s, n, r, i, e[o + 13], 12, -40341101),
  49. i = h(i, s, n, r, e[o + 14], 17, -1502002290),
  50. r = h(r, i, s, n, e[o + 15], 22, 1236535329),
  51. n = p(n, r, i, s, e[o + 1], 5, -165796510),
  52. s = p(s, n, r, i, e[o + 6], 9, -1069501632),
  53. i = p(i, s, n, r, e[o + 11], 14, 643717713),
  54. r = p(r, i, s, n, e[o + 0], 20, -373897302),
  55. n = p(n, r, i, s, e[o + 5], 5, -701558691),
  56. s = p(s, n, r, i, e[o + 10], 9, 38016083),
  57. i = p(i, s, n, r, e[o + 15], 14, -660478335),
  58. r = p(r, i, s, n, e[o + 4], 20, -405537848),
  59. n = p(n, r, i, s, e[o + 9], 5, 568446438),
  60. s = p(s, n, r, i, e[o + 14], 9, -1019803690),
  61. i = p(i, s, n, r, e[o + 3], 14, -187363961),
  62. r = p(r, i, s, n, e[o + 8], 20, 1163531501),
  63. n = p(n, r, i, s, e[o + 13], 5, -1444681467),
  64. s = p(s, n, r, i, e[o + 2], 9, -51403784),
  65. i = p(i, s, n, r, e[o + 7], 14, 1735328473),
  66. r = p(r, i, s, n, e[o + 12], 20, -1926607734),
  67. n = d(n, r, i, s, e[o + 5], 4, -378558),
  68. s = d(s, n, r, i, e[o + 8], 11, -2022574463),
  69. i = d(i, s, n, r, e[o + 11], 16, 1839030562),
  70. r = d(r, i, s, n, e[o + 14], 23, -35309556),
  71. n = d(n, r, i, s, e[o + 1], 4, -1530992060),
  72. s = d(s, n, r, i, e[o + 4], 11, 1272893353),
  73. i = d(i, s, n, r, e[o + 7], 16, -155497632),
  74. r = d(r, i, s, n, e[o + 10], 23, -1094730640),
  75. n = d(n, r, i, s, e[o + 13], 4, 681279174),
  76. s = d(s, n, r, i, e[o + 0], 11, -358537222),
  77. i = d(i, s, n, r, e[o + 3], 16, -722521979),
  78. r = d(r, i, s, n, e[o + 6], 23, 76029189),
  79. n = d(n, r, i, s, e[o + 9], 4, -640364487),
  80. s = d(s, n, r, i, e[o + 12], 11, -421815835),
  81. i = d(i, s, n, r, e[o + 15], 16, 530742520),
  82. r = d(r, i, s, n, e[o + 2], 23, -995338651),
  83. n = v(n, r, i, s, e[o + 0], 6, -198630844),
  84. s = v(s, n, r, i, e[o + 7], 10, 1126891415),
  85. i = v(i, s, n, r, e[o + 14], 15, -1416354905),
  86. r = v(r, i, s, n, e[o + 5], 21, -57434055),
  87. n = v(n, r, i, s, e[o + 12], 6, 1700485571),
  88. s = v(s, n, r, i, e[o + 3], 10, -1894986606),
  89. i = v(i, s, n, r, e[o + 10], 15, -1051523),
  90. r = v(r, i, s, n, e[o + 1], 21, -2054922799),
  91. n = v(n, r, i, s, e[o + 8], 6, 1873313359),
  92. s = v(s, n, r, i, e[o + 15], 10, -30611744),
  93. i = v(i, s, n, r, e[o + 6], 15, -1560198380),
  94. r = v(r, i, s, n, e[o + 13], 21, 1309151649),
  95. n = v(n, r, i, s, e[o + 4], 6, -145523070),
  96. s = v(s, n, r, i, e[o + 11], 10, -1120210379),
  97. i = v(i, s, n, r, e[o + 2], 15, 718787259),
  98. r = v(r, i, s, n, e[o + 9], 21, -343485551),
  99. n = g(n, u),
  100. r = g(r, a),
  101. i = g(i, f),
  102. s = g(s, l)
  103. }
  104. return Array(n, r, i, s)
  105. }
  106. function c (e, t, n, r, i, s) {
  107. return g(y(g(g(t, e), g(r, s)), i), n)
  108. }
  109. function h (e, t, n, r, i, s, o) {
  110. return c(t & n | ~t & r, e, t, i, s, o)
  111. }
  112. function p (e, t, n, r, i, s, o) {
  113. return c(t & r | n & ~r, e, t, i, s, o)
  114. }
  115. function d (e, t, n, r, i, s, o) {
  116. return c(t ^ n ^ r, e, t, i, s, o)
  117. }
  118. function v (e, t, n, r, i, s, o) {
  119. return c(n ^ (t | ~r), e, t, i, s, o)
  120. }
  121. function m (e, t) {
  122. var r = b(e)
  123. r.length > 16 && (r = l(r, e.length * n))
  124. var i = Array(16);
  125. var s = Array(16)
  126. for (var o = 0; o < 16; o++) { i[o] = r[o] ^ 909522486,
  127. s[o] = r[o] ^ 1549556828}
  128. var u = l(i.concat(b(t)), 512 + t.length * n)
  129. return l(s.concat(u), 640)
  130. }
  131. function g (e, t) {
  132. var n = (e & 65535) + (t & 65535);
  133. var r = (e >> 16) + (t >> 16) + (n >> 16)
  134. return r << 16 | n & 65535
  135. }
  136. function y (e, t) {
  137. return e << t | e >>> 32 - t
  138. }
  139. function b (e) {
  140. var t = Array();
  141. var r = (1 << n) - 1
  142. for (var i = 0; i < e.length * n; i += n) { t[i >> 5] |= (e.charCodeAt(i / n) & r) << i % 32}
  143. return t
  144. }
  145. function w (e) {
  146. var t = '';
  147. var r = (1 << n) - 1
  148. for (var i = 0; i < e.length * 32; i += n) { t += String.fromCharCode(e[i >> 5] >>> i % 32 & r)}
  149. return t
  150. }
  151. function E (t) {
  152. var n = e ? '0123456789ABCDEF' : '0123456789abcdef';
  153. var r = ''
  154. for (var i = 0; i < t.length * 4; i++) { r += n.charAt(t[i >> 2] >> i % 4 * 8 + 4 & 15) + n.charAt(t[i >> 2] >> i % 4 * 8 & 15)}
  155. return r
  156. }
  157. function S (e) {
  158. var n = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
  159. var r = ''
  160. for (var i = 0; i < e.length * 4; i += 3) {
  161. var s = (e[i >> 2] >> 8 * (i % 4) & 255) << 16 | (e[i + 1 >> 2] >> 8 * ((i + 1) % 4) & 255) << 8 | e[i + 2 >> 2] >> 8 * ((i + 2) % 4) & 255
  162. for (var o = 0; o < 4; o++) { i * 8 + o * 6 > e.length * 32 ? r += t : r += n.charAt(s >> 6 * (3 - o) & 63) }
  163. }
  164. return r
  165. }
  166. function x (e) {
  167. function t (e, t) {
  168. return e << t | e >>> 32 - t
  169. }
  170. function n (e, t) {
  171. var n, r, i, s, o
  172. return i = e & 2147483648,
  173. s = t & 2147483648,
  174. n = e & 1073741824,
  175. r = t & 1073741824,
  176. o = (e & 1073741823) + (t & 1073741823),
  177. n & r ? o ^ 2147483648 ^ i ^ s : n | r ? o & 1073741824 ? o ^ 3221225472 ^ i ^ s : o ^ 1073741824 ^ i ^ s : o ^ i ^ s
  178. }
  179. function r (e, t, n) {
  180. return e & t | ~e & n
  181. }
  182. function i (e, t, n) {
  183. return e & n | t & ~n
  184. }
  185. function s (e, t, n) {
  186. return e ^ t ^ n
  187. }
  188. function o (e, t, n) {
  189. return t ^ (e | ~n)
  190. }
  191. function u (e, i, s, o, u, a, f) {
  192. return e = n(e, n(n(r(i, s, o), u), f)),
  193. n(t(e, a), i)
  194. }
  195. function a (e, r, s, o, u, a, f) {
  196. return e = n(e, n(n(i(r, s, o), u), f)),
  197. n(t(e, a), r)
  198. }
  199. function f (e, r, i, o, u, a, f) {
  200. return e = n(e, n(n(s(r, i, o), u), f)),
  201. n(t(e, a), r)
  202. }
  203. function l (e, r, i, s, u, a, f) {
  204. return e = n(e, n(n(o(r, i, s), u), f)),
  205. n(t(e, a), r)
  206. }
  207. function c (e) {
  208. var t; var n = e.length; var r = n + 8; var i = (r - r % 64) / 64; var s = (i + 1) * 16; var o = Array(s - 1); var u = 0; var a = 0
  209. while (a < n) { t = (a - a % 4) / 4,
  210. u = a % 4 * 8,
  211. o[t] = o[t] | e.charCodeAt(a) << u,
  212. a++}
  213. return t = (a - a % 4) / 4,
  214. u = a % 4 * 8,
  215. o[t] = o[t] | 128 << u,
  216. o[s - 2] = n << 3,
  217. o[s - 1] = n >>> 29,
  218. o
  219. }
  220. function h (e) {
  221. var t = ''; var n = ''; var r; var i
  222. for (i = 0; i <= 3; i++) { r = e >>> i * 8 & 255,
  223. n = '0' + r.toString(16),
  224. t += n.substr(n.length - 2, 2)}
  225. return t
  226. }
  227. function p (e) {
  228. e = e.replace(/\r\n/g, '\n')
  229. var t = ''
  230. for (var n = 0; n < e.length; n++) {
  231. var r = e.charCodeAt(n)
  232. r < 128 ? t += String.fromCharCode(r) : r > 127 && r < 2048 ? (t += String.fromCharCode(r >> 6 | 192),
  233. t += String.fromCharCode(r & 63 | 128)) : (t += String.fromCharCode(r >> 12 | 224),
  234. t += String.fromCharCode(r >> 6 & 63 | 128),
  235. t += String.fromCharCode(r & 63 | 128))
  236. }
  237. return t
  238. }
  239. var d = Array(); var v; var m; var g; var y; var b; var w; var E; var S; var x; var T = 7; var N = 12; var C = 17; var k = 22; var L = 5; var A = 9; var O = 14; var M = 20; var _ = 4; var D = 11; var P = 16; var H = 23; var B = 6; var j = 10; var F = 15; var I = 21
  240. e = p(e),
  241. d = c(e),
  242. w = 1732584193,
  243. E = 4023233417,
  244. S = 2562383102,
  245. x = 271733878
  246. for (v = 0; v < d.length; v += 16)
  247. {
  248. m = w,
  249. g = E,
  250. y = S,
  251. b = x,
  252. w = u(w, E, S, x, d[v + 0], T, 3614090360),
  253. x = u(x, w, E, S, d[v + 1], N, 3905402710),
  254. S = u(S, x, w, E, d[v + 2], C, 606105819),
  255. E = u(E, S, x, w, d[v + 3], k, 3250441966),
  256. w = u(w, E, S, x, d[v + 4], T, 4118548399),
  257. x = u(x, w, E, S, d[v + 5], N, 1200080426),
  258. S = u(S, x, w, E, d[v + 6], C, 2821735955),
  259. E = u(E, S, x, w, d[v + 7], k, 4249261313),
  260. w = u(w, E, S, x, d[v + 8], T, 1770035416),
  261. x = u(x, w, E, S, d[v + 9], N, 2336552879),
  262. S = u(S, x, w, E, d[v + 10], C, 4294925233),
  263. E = u(E, S, x, w, d[v + 11], k, 2304563134),
  264. w = u(w, E, S, x, d[v + 12], T, 1804603682),
  265. x = u(x, w, E, S, d[v + 13], N, 4254626195),
  266. S = u(S, x, w, E, d[v + 14], C, 2792965006),
  267. E = u(E, S, x, w, d[v + 15], k, 1236535329),
  268. w = a(w, E, S, x, d[v + 1], L, 4129170786),
  269. x = a(x, w, E, S, d[v + 6], A, 3225465664),
  270. S = a(S, x, w, E, d[v + 11], O, 643717713),
  271. E = a(E, S, x, w, d[v + 0], M, 3921069994),
  272. w = a(w, E, S, x, d[v + 5], L, 3593408605),
  273. x = a(x, w, E, S, d[v + 10], A, 38016083),
  274. S = a(S, x, w, E, d[v + 15], O, 3634488961),
  275. E = a(E, S, x, w, d[v + 4], M, 3889429448),
  276. w = a(w, E, S, x, d[v + 9], L, 568446438),
  277. x = a(x, w, E, S, d[v + 14], A, 3275163606),
  278. S = a(S, x, w, E, d[v + 3], O, 4107603335),
  279. E = a(E, S, x, w, d[v + 8], M, 1163531501),
  280. w = a(w, E, S, x, d[v + 13], L, 2850285829),
  281. x = a(x, w, E, S, d[v + 2], A, 4243563512),
  282. S = a(S, x, w, E, d[v + 7], O, 1735328473),
  283. E = a(E, S, x, w, d[v + 12], M, 2368359562),
  284. w = f(w, E, S, x, d[v + 5], _, 4294588738),
  285. x = f(x, w, E, S, d[v + 8], D, 2272392833),
  286. S = f(S, x, w, E, d[v + 11], P, 1839030562),
  287. E = f(E, S, x, w, d[v + 14], H, 4259657740),
  288. w = f(w, E, S, x, d[v + 1], _, 2763975236),
  289. x = f(x, w, E, S, d[v + 4], D, 1272893353),
  290. S = f(S, x, w, E, d[v + 7], P, 4139469664),
  291. E = f(E, S, x, w, d[v + 10], H, 3200236656),
  292. w = f(w, E, S, x, d[v + 13], _, 681279174),
  293. x = f(x, w, E, S, d[v + 0], D, 3936430074),
  294. S = f(S, x, w, E, d[v + 3], P, 3572445317),
  295. E = f(E, S, x, w, d[v + 6], H, 76029189),
  296. w = f(w, E, S, x, d[v + 9], _, 3654602809),
  297. x = f(x, w, E, S, d[v + 12], D, 3873151461),
  298. S = f(S, x, w, E, d[v + 15], P, 530742520),
  299. E = f(E, S, x, w, d[v + 2], H, 3299628645),
  300. w = l(w, E, S, x, d[v + 0], B, 4096336452),
  301. x = l(x, w, E, S, d[v + 7], j, 1126891415),
  302. S = l(S, x, w, E, d[v + 14], F, 2878612391),
  303. E = l(E, S, x, w, d[v + 5], I, 4237533241),
  304. w = l(w, E, S, x, d[v + 12], B, 1700485571),
  305. x = l(x, w, E, S, d[v + 3], j, 2399980690),
  306. S = l(S, x, w, E, d[v + 10], F, 4293915773),
  307. E = l(E, S, x, w, d[v + 1], I, 2240044497),
  308. w = l(w, E, S, x, d[v + 8], B, 1873313359),
  309. x = l(x, w, E, S, d[v + 15], j, 4264355552),
  310. S = l(S, x, w, E, d[v + 6], F, 2734768916),
  311. E = l(E, S, x, w, d[v + 13], I, 1309151649),
  312. w = l(w, E, S, x, d[v + 4], B, 4149444226),
  313. x = l(x, w, E, S, d[v + 11], j, 3174756917),
  314. S = l(S, x, w, E, d[v + 2], F, 718787259),
  315. E = l(E, S, x, w, d[v + 9], I, 3951481745),
  316. w = n(w, m),
  317. E = n(E, g),
  318. S = n(S, y),
  319. x = n(x, b)}
  320. var q = h(w) + h(E) + h(S) + h(x)
  321. return q.toLowerCase()
  322. }
  323. function T (e) {
  324. function t (e, t) {
  325. var n = e << t | e >>> 32 - t
  326. return n
  327. }
  328. function n (e) {
  329. var t = ''; var n; var r; var i
  330. for (n = 0; n <= 6; n += 2) { r = e >>> n * 4 + 4 & 15,
  331. i = e >>> n * 4 & 15,
  332. t += r.toString(16) + i.toString(16)}
  333. return t
  334. }
  335. function r (e) {
  336. var t = ''; var n; var r
  337. for (n = 7; n >= 0; n--)
  338. {
  339. r = e >>> n * 4 & 15,
  340. t += r.toString(16)}
  341. return t
  342. }
  343. function i (e) {
  344. e = e.replace(/\r\n/g, '\n')
  345. var t = ''
  346. for (var n = 0; n < e.length; n++) {
  347. var r = e.charCodeAt(n)
  348. r < 128 ? t += String.fromCharCode(r) : r > 127 && r < 2048 ? (t += String.fromCharCode(r >> 6 | 192),
  349. t += String.fromCharCode(r & 63 | 128)) : (t += String.fromCharCode(r >> 12 | 224),
  350. t += String.fromCharCode(r >> 6 & 63 | 128),
  351. t += String.fromCharCode(r & 63 | 128))
  352. }
  353. return t
  354. }
  355. var s; var o; var u; var a = new Array(80); var f = 1732584193; var l = 4023233417; var c = 2562383102; var h = 271733878; var p = 3285377520; var d; var v; var m; var g; var y; var b
  356. e = i(e)
  357. var w = e.length;
  358. var E = new Array()
  359. for (o = 0; o < w - 3; o += 4) { u = e.charCodeAt(o) << 24 | e.charCodeAt(o + 1) << 16 | e.charCodeAt(o + 2) << 8 | e.charCodeAt(o + 3),
  360. E.push(u)}
  361. switch (w % 4) {
  362. case 0:
  363. o = 2147483648
  364. break
  365. case 1:
  366. o = e.charCodeAt(w - 1) << 24 | 8388608
  367. break
  368. case 2:
  369. o = e.charCodeAt(w - 2) << 24 | e.charCodeAt(w - 1) << 16 | 32768
  370. break
  371. case 3:
  372. o = e.charCodeAt(w - 3) << 24 | e.charCodeAt(w - 2) << 16 | e.charCodeAt(w - 1) << 8 | 128
  373. }
  374. E.push(o)
  375. while (E.length % 16 != 14) { E.push(0)}
  376. E.push(w >>> 29),
  377. E.push(w << 3 & 4294967295)
  378. for (s = 0; s < E.length; s += 16) {
  379. for (o = 0; o < 16; o++) { a[o] = E[s + o]}
  380. for (o = 16; o <= 79; o++) { a[o] = t(a[o - 3] ^ a[o - 8] ^ a[o - 14] ^ a[o - 16], 1)}
  381. d = f,
  382. v = l,
  383. m = c,
  384. g = h,
  385. y = p
  386. for (o = 0; o <= 19; o++)
  387. {
  388. b = t(d, 5) + (v & m | ~v & g) + y + a[o] + 1518500249 & 4294967295,
  389. y = g,
  390. g = m,
  391. m = t(v, 30),
  392. v = d,
  393. d = b}
  394. for (o = 20; o <= 39; o++) { b = t(d, 5) + (v ^ m ^ g) + y + a[o] + 1859775393 & 4294967295,
  395. y = g,
  396. g = m,
  397. m = t(v, 30),
  398. v = d,
  399. d = b}
  400. for (o = 40; o <= 59; o++)
  401. {
  402. b = t(d, 5) + (v & m | v & g | m & g) + y + a[o] + 2400959708 & 4294967295,
  403. y = g,
  404. g = m,
  405. m = t(v, 30),
  406. v = d,
  407. d = b}
  408. for (o = 60; o <= 79; o++)
  409. {
  410. b = t(d, 5) + (v ^ m ^ g) + y + a[o] + 3395469782 & 4294967295,
  411. y = g,
  412. g = m,
  413. m = t(v, 30),
  414. v = d,
  415. d = b}
  416. f = f + d & 4294967295,
  417. l = l + v & 4294967295,
  418. c = c + m & 4294967295,
  419. h = h + g & 4294967295,
  420. p = p + y & 4294967295
  421. }
  422. var b = r(f) + r(l) + r(c) + r(h) + r(p)
  423. return b.toLowerCase()
  424. }
  425. function N (e) {
  426. var t = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; var n; var r; var i; var s; var o; var u
  427. i = e.length,
  428. r = 0,
  429. n = ''
  430. while (r < i) {
  431. s = e.charCodeAt(r++) & 255
  432. if (r == i) {
  433. n += t.charAt(s >> 2),
  434. n += t.charAt((s & 3) << 4),
  435. n += '=='
  436. break
  437. }
  438. o = e.charCodeAt(r++)
  439. if (r == i) {
  440. n += t.charAt(s >> 2),
  441. n += t.charAt((s & 3) << 4 | (o & 240) >> 4),
  442. n += t.charAt((o & 15) << 2),
  443. n += '='
  444. break
  445. }
  446. u = e.charCodeAt(r++),
  447. n += t.charAt(s >> 2),
  448. n += t.charAt((s & 3) << 4 | (o & 240) >> 4),
  449. n += t.charAt((o & 15) << 2 | (u & 192) >> 6),
  450. n += t.charAt(u & 63)
  451. }
  452. return n
  453. }
  454. function C (e) {
  455. var t = new Array(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1); var n; var r; var i; var s; var o; var u; var a
  456. u = e.length,
  457. o = 0,
  458. a = ''
  459. while (o < u) {
  460. do { n = t[e.charCodeAt(o++) & 255]}
  461. while (o < u && n == -1);if (n == -1) { break}
  462. do { r = t[e.charCodeAt(o++) & 255]}
  463. while (o < u && r == -1);if (r == -1) { break}
  464. a += String.fromCharCode(n << 2 | (r & 48) >> 4)
  465. do {
  466. i = e.charCodeAt(o++) & 255
  467. if (i == 61) { return a}
  468. i = t[i]
  469. } while (o < u && i == -1);if (i == -1) { break}
  470. a += String.fromCharCode((r & 15) << 4 | (i & 60) >> 2)
  471. do {
  472. s = e.charCodeAt(o++) & 255
  473. if (s == 61) { return a}
  474. s = t[s]
  475. } while (o < u && s == -1);if (s == -1) { break}
  476. a += String.fromCharCode((i & 3) << 6 | s)
  477. }
  478. return a
  479. }
  480. function k (e, t) {
  481. var n = ''
  482. for (var r = 0, i = e.length, s = t.length; r < i; r++) {
  483. if (r >= s) { break}
  484. n += String.fromCharCode(e.charCodeAt(r) ^ t.charCodeAt(r))
  485. }
  486. return n
  487. }
  488. var e = 0;
  489. var t = '';
  490. var n = 8
  491. const xor = k;
  492. const sha1 = T;
  493. const hex_md5 = r;
  494. const base64encode = N;
  495. const base64decode = n;
  496. export {
  497. xor,
  498. sha1,
  499. hex_md5,
  500. base64decode,
  501. base64encode
  502. }