From 878042aaabc7ff040d64858a311d1e0fbebd819f Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: Thu, 5 Mar 2020 16:00:03 +0800 Subject: [PATCH 01/59] Create aqi.py --- .../aqi.py" | 102 ++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 "347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円aqi/aqi.py" diff --git "a/347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円aqi/aqi.py" "b/347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円aqi/aqi.py" new file mode 100644 index 0000000..64fd729 --- /dev/null +++ "b/347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円aqi/aqi.py" @@ -0,0 +1,102 @@ +# https://www.aqistudy.cn/historydata/daydata.php?city=%E5%8C%97%E4%BA%AC&month=201312 空气质量历史数据 + +import requests, execjs, json, re + + +session = requests.Session() +headers = { + 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36', +} + + +def fetch(url, method, data=None): + if method == 'GET': + try: + res = session.get(url, headers=headers) + if res.status_code == 200: + return res.text + else: + print('获取网页源代码失败!', res.status_code) + return None + except Exception as e: + print('获取网页源代码失败!', e) + return None + + if method == 'POST': + try: + res = session.post(url, headers=headers, data=data) + if res.status_code == 200: + return res.text + else: + print('获取网页源代码失败!', res.status_code) + return None + except Exception as e: + print('获取网页源代码失败!', e) + return None + + +def get_encrypt_url(city, month): + # 获取网页加密链接,用于获取eval代码 + url = 'https://www.aqistudy.cn/historydata/daydata.php?city=%s&month=%s' % (city, month) + header = headers + res = fetch(url, 'GET') + if res: + pattern = re.compile(r'', re.S) + result = re.findall(pattern, res)[0] + result = 'https://www.aqistudy.cn/historydata/' + result + # print(result) + return result + + +def get_js_code(eval_str): + # 将eval代码还原成正常js代码 + js = eval_str.replace("eval", "function get_js() {return ") + ";}" + ctx = execjs.compile(js) + return ctx.eval('get_js()') + + +def get_param(city, month, js_code): + # 匹配出获取加密参数的函数名、post参数名,并生成加密参数 + # 返回form data + + # 匹配函数名 + pattern = re.compile(r'{var param=(.*?)\(method,object\);') + get_param_func = re.findall(pattern, js_code)[0] + + # 匹配参数名 + pattern = re.compile(r',data:{(.*?):param}') + param_name = re.findall(pattern, js_code)[0] + + # 构造传参并执行js + obj = { + "city": city, + "month": month + } + js = f'{get_param_func}("GETDAYDATA", {obj})' + param = {param_name: ctx.eval(js)} + return param + + +def get_data(data, js_code): + # 匹配出解密函数名并调用,将post请求的密文解密成json格式 + pattern = re.compile(r'function\(data\){data=(.*?)\(data\);') + get_data_func = re.findall(pattern, js_code)[0] + return json.loads(ctx.call(get_data_func, data)) + + +encrypt_url = get_encrypt_url('北京', "201312") +eval_str = fetch(encrypt_url, 'GET') +js_code = get_js_code(eval_str) +with open('111.js', 'r', encoding='utf8') as f: + ctx = execjs.compile(f.read() + '\n' + js_code) + +param = get_param('北京', "201312", js_code) +print('post参数:', param) + +url = 'https://www.aqistudy.cn/historydata/api/historyapi.php' +res = fetch(url, 'POST', data=param) +print('返回的密文:', res) +print('解密:', get_data(res, js_code)) + + + From 0bac5c0d8c5abcc5f603b010ec0c55222534cd9e Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: Thu, 5 Mar 2020 16:01:24 +0800 Subject: [PATCH 02/59] Create aqi.py --- .../aqi.py" | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git "a/347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円aqi/aqi.py" "b/347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円aqi/aqi.py" index 64fd729..720d479 100644 --- "a/347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円aqi/aqi.py" +++ "b/347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円aqi/aqi.py" @@ -87,16 +87,13 @@ def get_data(data, js_code): encrypt_url = get_encrypt_url('北京', "201312") eval_str = fetch(encrypt_url, 'GET') js_code = get_js_code(eval_str) -with open('111.js', 'r', encoding='utf8') as f: +with open('aqi.js', 'r', encoding='utf8') as f: ctx = execjs.compile(f.read() + '\n' + js_code) param = get_param('北京', "201312", js_code) -print('post参数:', param) +print('post参数:', param) url = 'https://www.aqistudy.cn/historydata/api/historyapi.php' res = fetch(url, 'POST', data=param) print('返回的密文:', res) print('解密:', get_data(res, js_code)) - - - From a99dc58a9479349ac344649d9663498679d3639e Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: Thu, 5 Mar 2020 16:02:01 +0800 Subject: [PATCH 03/59] Create aqi.js --- .../aqi.js" | 1811 +++++++++++++++++ 1 file changed, 1811 insertions(+) create mode 100644 "347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円aqi/aqi.js" diff --git "a/347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円aqi/aqi.js" "b/347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円aqi/aqi.js" new file mode 100644 index 0000000..bc0c4a3 --- /dev/null +++ "b/347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円aqi/aqi.js" @@ -0,0 +1,1811 @@ +function Base64() { + _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", + this.encode = function(a) { + var c, d, e, f, g, h, i, b = "", j = 0; + for (a = _utf8_encode(a); j < a.length; ) + c = a.charCodeAt(j++), + d = a.charCodeAt(j++), + e = a.charCodeAt(j++), + f = c>> 2, + g = (3 & c) << 4 | d>> 4, + h = (15 & d) << 2 | e>> 6, + i = 63 & e, + isNaN(d) ? h = i = 64 : isNaN(e) && (i = 64), + b = b + _keyStr.charAt(f) + _keyStr.charAt(g) + _keyStr.charAt(h) + _keyStr.charAt(i); + return b + } + , + this.decode = function(a) { + var c, d, e, f, g, h, i, b = "", j = 0; + for (a = a.replace(/[^A-Za-z0-9\+\/\=]/g, ""); j < a.length; ) + f = _keyStr.indexOf(a.charAt(j++)), + g = _keyStr.indexOf(a.charAt(j++)), + h = _keyStr.indexOf(a.charAt(j++)), + i = _keyStr.indexOf(a.charAt(j++)), + c = f << 2 | g>> 4, + d = (15 & g) << 4 | h>> 2, + e = (3 & h) << 6 | i, + b += String.fromCharCode(c), + 64 != h && (b += String.fromCharCode(d)), + 64 != i && (b += String.fromCharCode(e)); + return b = _utf8_decode(b) + } + , + _utf8_encode = function(a) { + var b, c, d; + for (a = a.replace(/\r\n/g, "\n"), + b = "", + c = 0; c < a.length; c++) + d = a.charCodeAt(c), + 128> d ? b += String.fromCharCode(d) : d> 127 && 2048> d ? (b += String.fromCharCode(192 | d>> 6), + b += String.fromCharCode(128 | 63 & d)) : (b += String.fromCharCode(224 | d>> 12), + b += String.fromCharCode(128 | 63 & d>> 6), + b += String.fromCharCode(128 | 63 & d)); + return b + } + , + _utf8_decode = function(a) { + for (var b = "", c = 0, d = c1 = c2 = 0; c < a.length; ) + d = a.charCodeAt(c), + 128> d ? (b += String.fromCharCode(d), + c++) : d> 191 && 224> d ? (c2 = a.charCodeAt(c + 1), + b += String.fromCharCode((31 & d) << 6 | 63 & c2), + c += 2) : (c2 = a.charCodeAt(c + 1), + c3 = a.charCodeAt(c + 2), + b += String.fromCharCode((15 & d) << 12 | (63 & c2) << 6 | 63 & c3), + c += 3); + return b + } +} +function hex_md5(a) { + return binl2hex(core_md5(str2binl(a), a.length * chrsz)) +} +function b64_md5(a) { + return binl2b64(core_md5(str2binl(a), a.length * chrsz)) +} +function str_md5(a) { + return binl2str(core_md5(str2binl(a), a.length * chrsz)) +} +function hex_hmac_md5(a, b) { + return binl2hex(core_hmac_md5(a, b)) +} +function b64_hmac_md5(a, b) { + return binl2b64(core_hmac_md5(a, b)) +} +function str_hmac_md5(a, b) { + return binl2str(core_hmac_md5(a, b)) +} +function md5_vm_test() { + return "900150983cd24fb0d6963f7d28e17f72" == hex_md5("abc") +} +function core_md5(a, b) { + var c, d, e, f, g, h, i, j, k; + for (a[b>> 5] |= 128 << b % 32, + a[(b + 64>>> 9 << 4) + 14] = b, + c = 1732584193, + d = -271733879, + e = -1732584194, + f = 271733878, + g = 0; g < a.length; g += 16) + h = c, + i = d, + j = e, + k = f, + c = md5_ff(c, d, e, f, a[g + 0], 7, -680876936), + f = md5_ff(f, c, d, e, a[g + 1], 12, -389564586), + e = md5_ff(e, f, c, d, a[g + 2], 17, 606105819), + d = md5_ff(d, e, f, c, a[g + 3], 22, -1044525330), + c = md5_ff(c, d, e, f, a[g + 4], 7, -176418897), + f = md5_ff(f, c, d, e, a[g + 5], 12, 1200080426), + e = md5_ff(e, f, c, d, a[g + 6], 17, -1473231341), + d = md5_ff(d, e, f, c, a[g + 7], 22, -45705983), + c = md5_ff(c, d, e, f, a[g + 8], 7, 1770035416), + f = md5_ff(f, c, d, e, a[g + 9], 12, -1958414417), + e = md5_ff(e, f, c, d, a[g + 10], 17, -42063), + d = md5_ff(d, e, f, c, a[g + 11], 22, -1990404162), + c = md5_ff(c, d, e, f, a[g + 12], 7, 1804603682), + f = md5_ff(f, c, d, e, a[g + 13], 12, -40341101), + e = md5_ff(e, f, c, d, a[g + 14], 17, -1502002290), + d = md5_ff(d, e, f, c, a[g + 15], 22, 1236535329), + c = md5_gg(c, d, e, f, a[g + 1], 5, -165796510), + f = md5_gg(f, c, d, e, a[g + 6], 9, -1069501632), + e = md5_gg(e, f, c, d, a[g + 11], 14, 643717713), + d = md5_gg(d, e, f, c, a[g + 0], 20, -373897302), + c = md5_gg(c, d, e, f, a[g + 5], 5, -701558691), + f = md5_gg(f, c, d, e, a[g + 10], 9, 38016083), + e = md5_gg(e, f, c, d, a[g + 15], 14, -660478335), + d = md5_gg(d, e, f, c, a[g + 4], 20, -405537848), + c = md5_gg(c, d, e, f, a[g + 9], 5, 568446438), + f = md5_gg(f, c, d, e, a[g + 14], 9, -1019803690), + e = md5_gg(e, f, c, d, a[g + 3], 14, -187363961), + d = md5_gg(d, e, f, c, a[g + 8], 20, 1163531501), + c = md5_gg(c, d, e, f, a[g + 13], 5, -1444681467), + f = md5_gg(f, c, d, e, a[g + 2], 9, -51403784), + e = md5_gg(e, f, c, d, a[g + 7], 14, 1735328473), + d = md5_gg(d, e, f, c, a[g + 12], 20, -1926607734), + c = md5_hh(c, d, e, f, a[g + 5], 4, -378558), + f = md5_hh(f, c, d, e, a[g + 8], 11, -2022574463), + e = md5_hh(e, f, c, d, a[g + 11], 16, 1839030562), + d = md5_hh(d, e, f, c, a[g + 14], 23, -35309556), + c = md5_hh(c, d, e, f, a[g + 1], 4, -1530992060), + f = md5_hh(f, c, d, e, a[g + 4], 11, 1272893353), + e = md5_hh(e, f, c, d, a[g + 7], 16, -155497632), + d = md5_hh(d, e, f, c, a[g + 10], 23, -1094730640), + c = md5_hh(c, d, e, f, a[g + 13], 4, 681279174), + f = md5_hh(f, c, d, e, a[g + 0], 11, -358537222), + e = md5_hh(e, f, c, d, a[g + 3], 16, -722521979), + d = md5_hh(d, e, f, c, a[g + 6], 23, 76029189), + c = md5_hh(c, d, e, f, a[g + 9], 4, -640364487), + f = md5_hh(f, c, d, e, a[g + 12], 11, -421815835), + e = md5_hh(e, f, c, d, a[g + 15], 16, 530742520), + d = md5_hh(d, e, f, c, a[g + 2], 23, -995338651), + c = md5_ii(c, d, e, f, a[g + 0], 6, -198630844), + f = md5_ii(f, c, d, e, a[g + 7], 10, 1126891415), + e = md5_ii(e, f, c, d, a[g + 14], 15, -1416354905), + d = md5_ii(d, e, f, c, a[g + 5], 21, -57434055), + c = md5_ii(c, d, e, f, a[g + 12], 6, 1700485571), + f = md5_ii(f, c, d, e, a[g + 3], 10, -1894986606), + e = md5_ii(e, f, c, d, a[g + 10], 15, -1051523), + d = md5_ii(d, e, f, c, a[g + 1], 21, -2054922799), + c = md5_ii(c, d, e, f, a[g + 8], 6, 1873313359), + f = md5_ii(f, c, d, e, a[g + 15], 10, -30611744), + e = md5_ii(e, f, c, d, a[g + 6], 15, -1560198380), + d = md5_ii(d, e, f, c, a[g + 13], 21, 1309151649), + c = md5_ii(c, d, e, f, a[g + 4], 6, -145523070), + f = md5_ii(f, c, d, e, a[g + 11], 10, -1120210379), + e = md5_ii(e, f, c, d, a[g + 2], 15, 718787259), + d = md5_ii(d, e, f, c, a[g + 9], 21, -343485551), + c = safe_add(c, h), + d = safe_add(d, i), + e = safe_add(e, j), + f = safe_add(f, k); + return Array(c, d, e, f) +} +function md5_cmn(a, b, c, d, e, f) { + return safe_add(bit_rol(safe_add(safe_add(b, a), safe_add(d, f)), e), c) +} +function md5_ff(a, b, c, d, e, f, g) { + return md5_cmn(b & c | ~b & d, a, b, e, f, g) +} +function md5_gg(a, b, c, d, e, f, g) { + return md5_cmn(b & d | c & ~d, a, b, e, f, g) +} +function md5_hh(a, b, c, d, e, f, g) { + return md5_cmn(b ^ c ^ d, a, b, e, f, g) +} +function md5_ii(a, b, c, d, e, f, g) { + return md5_cmn(c ^ (b | ~d), a, b, e, f, g) +} +function core_hmac_md5(a, b) { + var d, e, f, g, c = str2binl(a); + for (c.length> 16 && (c = core_md5(c, a.length * chrsz)), + d = Array(16), + e = Array(16), + f = 0; 16> f; f++) + d[f] = 909522486 ^ c[f], + e[f] = 1549556828 ^ c[f]; + return g = core_md5(d.concat(str2binl(b)), 512 + b.length * chrsz), + core_md5(e.concat(g), 640) +} +function safe_add(a, b) { + var c = (65535 & a) + (65535 & b) + , d = (a>> 16) + (b>> 16) + (c>> 16); + return d << 16 | 65535 & c +} +function bit_rol(a, b) { + return a << b | a>>> 32 - b +} +function str2binl(a) { + var d, b = Array(), c = (1 << chrsz) - 1; + for (d = 0; d < a.length * chrsz; d += chrsz) + b[d>> 5] |= (a.charCodeAt(d / chrsz) & c) << d % 32; + return b +} +function binl2str(a) { + var d, b = "", c = (1 << chrsz) - 1; + for (d = 0; d < 32 * a.length; d += chrsz) + b += String.fromCharCode(a[d>> 5]>>> d % 32 & c); + return b +} +function binl2hex(a) { + var d, b = hexcase ? "0123456789ABCDEF" : "0123456789abcdef", c = ""; + for (d = 0; d < 4 * a.length; d++) + c += b.charAt(15 & a[d>> 2]>> 8 * (d % 4) + 4) + b.charAt(15 & a[d>> 2]>> 8 * (d % 4)); + return c +} +function binl2b64(a) { + var d, e, f, b = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", c = ""; + for (d = 0; d < 4 * a.length; d += 3) + for (e = (255 & a[d>> 2]>> 8 * (d % 4)) << 16 | (255 & a[d + 1>> 2]>> 8 * ((d + 1) % 4)) << 8 | 255 & a[d + 2>> 2]>> 8 * ((d + 2) % 4), + f = 0; 4> f; f++) + c += 8 * d + 6 * f> 32 * a.length ? b64pad : b.charAt(63 & e>> 6 * (3 - f)); + return c +} +function encode_param(a) { + var b = new Base64; + return b.encode(a) +} +function encode_secret() { + var b, a = appId; + for (b = 0; b < arguments.length; b++) + a += arguments[b]; + return a = a.replace(/\s/g, ""), + hex_md5(a) +} +function decode_result(a) { + var b = new Base64; + return b.decode(b.decode(b.decode(a))) +} +var hexcase = 0 + , b64pad = "" + , chrsz = 8 + , appId = "b73a4aaa989f54997ef7b9c42b6b4b29"; +var hexcase = 0; +var b64pad = ""; +function hex_md5(s) { + return rstr2hex(rstr_md5(str2rstr_utf8(s))) +} +function b64_md5(s) { + return rstr2b64(rstr_md5(str2rstr_utf8(s))) +} +function any_md5(s, e) { + return rstr2any(rstr_md5(str2rstr_utf8(s)), e) +} +function hex_hmac_md5(k, d) { + return rstr2hex(rstr_hmac_md5(str2rstr_utf8(k), str2rstr_utf8(d))) +} +function b64_hmac_md5(k, d) { + return rstr2b64(rstr_hmac_md5(str2rstr_utf8(k), str2rstr_utf8(d))) +} +function any_hmac_md5(k, d, e) { + return rstr2any(rstr_hmac_md5(str2rstr_utf8(k), str2rstr_utf8(d)), e) +} +function md5_vm_test() { + return hex_md5("abc").toLowerCase() == "900150983cd24fb0d6963f7d28e17f72" +} +function rstr_md5(s) { + return binl2rstr(binl_md5(rstr2binl(s), s.length * 8)) +} +function rstr_hmac_md5(key, data) { + var bkey = rstr2binl(key); + if (bkey.length> 16) + bkey = binl_md5(bkey, key.length * 8); + var ipad = Array(16) + , opad = Array(16); + for (var i = 0; i < 16; i++) { + ipad[i] = bkey[i] ^ 0x36363636; + opad[i] = bkey[i] ^ 0x5C5C5C5C + } + var hash = binl_md5(ipad.concat(rstr2binl(data)), 512 + data.length * 8); + return binl2rstr(binl_md5(opad.concat(hash), 512 + 128)) +} +function rstr2hex(input) { + try { + hexcase + } catch (e) { + hexcase = 0 + } + var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef"; + var output = ""; + var x; + for (var i = 0; i < input.length; i++) { + x = input.charCodeAt(i); + output += hex_tab.charAt((x>>> 4) & 0x0F) + hex_tab.charAt(x & 0x0F) + } + return output +} +function rstr2b64(input) { + try { + b64pad + } catch (e) { + b64pad = '' + } + var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + var output = ""; + var len = input.length; + for (var i = 0; i < len; i += 3) { + var triplet = (input.charCodeAt(i) << 16) | (i + 1 < len ? input.charCodeAt(i + 1) << 8 : 0) | (i + 2 < len ? input.charCodeAt(i + 2) : 0); + for (var j = 0; j < 4; j++) { + if (i * 8 + j * 6> input.length * 8) + output += b64pad; + else + output += tab.charAt((triplet>>> 6 * (3 - j)) & 0x3F) + } + } + return output +} +function rstr2any(input, encoding) { + var divisor = encoding.length; + var i, j, q, x, quotient; + var dividend = Array(Math.ceil(input.length / 2)); + for (i = 0; i < dividend.length; i++) { + dividend[i] = (input.charCodeAt(i * 2) << 8) | input.charCodeAt(i * 2 + 1) + } + var full_length = Math.ceil(input.length * 8 / (Math.log(encoding.length) / Math.log(2))); + var remainders = Array(full_length); + for (j = 0; j < full_length; j++) { + quotient = Array(); + x = 0; + for (i = 0; i < dividend.length; i++) { + x = (x << 16) + dividend[i]; + q = Math.floor(x / divisor); + x -= q * divisor; + if (quotient.length> 0 || q> 0) + quotient[quotient.length] = q + } + remainders[j] = x; + dividend = quotient + } + var output = ""; + for (i = remainders.length - 1; i>= 0; i--) + output += encoding.charAt(remainders[i]); + return output +} +function str2rstr_utf8(input) { + var output = ""; + var i = -1; + var x, y; + while (++i < input.length) { + x = input.charCodeAt(i); + y = i + 1 < input.length ? input.charCodeAt(i + 1) : 0; + if (0xD800 <= x && x <= 0xDBFF && 0xDC00 <= y && y <= 0xDFFF) { + x = 0x10000 + ((x & 0x03FF) << 10) + (y & 0x03FF); + i++ + } + if (x <= 0x7F) + output += String.fromCharCode(x); + else if (x <= 0x7FF) + output += String.fromCharCode(0xC0 | ((x>>> 6) & 0x1F), 0x80 | (x & 0x3F)); + else if (x <= 0xFFFF) + output += String.fromCharCode(0xE0 | ((x>>> 12) & 0x0F), 0x80 | ((x>>> 6) & 0x3F), 0x80 | (x & 0x3F)); + else if (x <= 0x1FFFFF) + output += String.fromCharCode(0xF0 | ((x>>> 18) & 0x07), 0x80 | ((x>>> 12) & 0x3F), 0x80 | ((x>>> 6) & 0x3F), 0x80 | (x & 0x3F)) + } + return output +} +function str2rstr_utf16le(input) { + var output = ""; + for (var i = 0; i < input.length; i++) + output += String.fromCharCode(input.charCodeAt(i) & 0xFF, (input.charCodeAt(i)>>> 8) & 0xFF); + return output +} +function str2rstr_utf16be(input) { + var output = ""; + for (var i = 0; i < input.length; i++) + output += String.fromCharCode((input.charCodeAt(i)>>> 8) & 0xFF, input.charCodeAt(i) & 0xFF); + return output +} +function rstr2binl(input) { + var output = Array(input.length>> 2); + for (var i = 0; i < output.length; i++) + output[i] = 0; + for (var i = 0; i < input.length * 8; i += 8) + output[i>> 5] |= (input.charCodeAt(i / 8) & 0xFF) << (i % 32); + return output +} +function binl2rstr(input) { + var output = ""; + for (var i = 0; i < input.length * 32; i += 8) + output += String.fromCharCode((input[i>> 5]>>> (i % 32)) & 0xFF); + return output +} +function binl_md5(x, len) { + x[len>> 5] |= 0x80 << ((len) % 32); + x[(((len + 64)>>> 9) << 4) + 14] = len; + var a = 1732584193; + var b = -271733879; + var c = -1732584194; + var d = 271733878; + for (var i = 0; i < x.length; i += 16) { + var olda = a; + var oldb = b; + var oldc = c; + var oldd = d; + a = md5_ff(a, b, c, d, x[i + 0], 7, -680876936); + d = md5_ff(d, a, b, c, x[i + 1], 12, -389564586); + c = md5_ff(c, d, a, b, x[i + 2], 17, 606105819); + b = md5_ff(b, c, d, a, x[i + 3], 22, -1044525330); + a = md5_ff(a, b, c, d, x[i + 4], 7, -176418897); + d = md5_ff(d, a, b, c, x[i + 5], 12, 1200080426); + c = md5_ff(c, d, a, b, x[i + 6], 17, -1473231341); + b = md5_ff(b, c, d, a, x[i + 7], 22, -45705983); + a = md5_ff(a, b, c, d, x[i + 8], 7, 1770035416); + d = md5_ff(d, a, b, c, x[i + 9], 12, -1958414417); + c = md5_ff(c, d, a, b, x[i + 10], 17, -42063); + b = md5_ff(b, c, d, a, x[i + 11], 22, -1990404162); + a = md5_ff(a, b, c, d, x[i + 12], 7, 1804603682); + d = md5_ff(d, a, b, c, x[i + 13], 12, -40341101); + c = md5_ff(c, d, a, b, x[i + 14], 17, -1502002290); + b = md5_ff(b, c, d, a, x[i + 15], 22, 1236535329); + a = md5_gg(a, b, c, d, x[i + 1], 5, -165796510); + d = md5_gg(d, a, b, c, x[i + 6], 9, -1069501632); + c = md5_gg(c, d, a, b, x[i + 11], 14, 643717713); + b = md5_gg(b, c, d, a, x[i + 0], 20, -373897302); + a = md5_gg(a, b, c, d, x[i + 5], 5, -701558691); + d = md5_gg(d, a, b, c, x[i + 10], 9, 38016083); + c = md5_gg(c, d, a, b, x[i + 15], 14, -660478335); + b = md5_gg(b, c, d, a, x[i + 4], 20, -405537848); + a = md5_gg(a, b, c, d, x[i + 9], 5, 568446438); + d = md5_gg(d, a, b, c, x[i + 14], 9, -1019803690); + c = md5_gg(c, d, a, b, x[i + 3], 14, -187363961); + b = md5_gg(b, c, d, a, x[i + 8], 20, 1163531501); + a = md5_gg(a, b, c, d, x[i + 13], 5, -1444681467); + d = md5_gg(d, a, b, c, x[i + 2], 9, -51403784); + c = md5_gg(c, d, a, b, x[i + 7], 14, 1735328473); + b = md5_gg(b, c, d, a, x[i + 12], 20, -1926607734); + a = md5_hh(a, b, c, d, x[i + 5], 4, -378558); + d = md5_hh(d, a, b, c, x[i + 8], 11, -2022574463); + c = md5_hh(c, d, a, b, x[i + 11], 16, 1839030562); + b = md5_hh(b, c, d, a, x[i + 14], 23, -35309556); + a = md5_hh(a, b, c, d, x[i + 1], 4, -1530992060); + d = md5_hh(d, a, b, c, x[i + 4], 11, 1272893353); + c = md5_hh(c, d, a, b, x[i + 7], 16, -155497632); + b = md5_hh(b, c, d, a, x[i + 10], 23, -1094730640); + a = md5_hh(a, b, c, d, x[i + 13], 4, 681279174); + d = md5_hh(d, a, b, c, x[i + 0], 11, -358537222); + c = md5_hh(c, d, a, b, x[i + 3], 16, -722521979); + b = md5_hh(b, c, d, a, x[i + 6], 23, 76029189); + a = md5_hh(a, b, c, d, x[i + 9], 4, -640364487); + d = md5_hh(d, a, b, c, x[i + 12], 11, -421815835); + c = md5_hh(c, d, a, b, x[i + 15], 16, 530742520); + b = md5_hh(b, c, d, a, x[i + 2], 23, -995338651); + a = md5_ii(a, b, c, d, x[i + 0], 6, -198630844); + d = md5_ii(d, a, b, c, x[i + 7], 10, 1126891415); + c = md5_ii(c, d, a, b, x[i + 14], 15, -1416354905); + b = md5_ii(b, c, d, a, x[i + 5], 21, -57434055); + a = md5_ii(a, b, c, d, x[i + 12], 6, 1700485571); + d = md5_ii(d, a, b, c, x[i + 3], 10, -1894986606); + c = md5_ii(c, d, a, b, x[i + 10], 15, -1051523); + b = md5_ii(b, c, d, a, x[i + 1], 21, -2054922799); + a = md5_ii(a, b, c, d, x[i + 8], 6, 1873313359); + d = md5_ii(d, a, b, c, x[i + 15], 10, -30611744); + c = md5_ii(c, d, a, b, x[i + 6], 15, -1560198380); + b = md5_ii(b, c, d, a, x[i + 13], 21, 1309151649); + a = md5_ii(a, b, c, d, x[i + 4], 6, -145523070); + d = md5_ii(d, a, b, c, x[i + 11], 10, -1120210379); + c = md5_ii(c, d, a, b, x[i + 2], 15, 718787259); + b = md5_ii(b, c, d, a, x[i + 9], 21, -343485551); + a = safe_add(a, olda); + b = safe_add(b, oldb); + c = safe_add(c, oldc); + d = safe_add(d, oldd) + } + return Array(a, b, c, d) +} +function md5_cmn(q, a, b, x, s, t) { + return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b) +} +function md5_ff(a, b, c, d, x, s, t) { + return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t) +} +function md5_gg(a, b, c, d, x, s, t) { + return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t) +} +function md5_hh(a, b, c, d, x, s, t) { + return md5_cmn(b ^ c ^ d, a, b, x, s, t) +} +function md5_ii(a, b, c, d, x, s, t) { + return md5_cmn(c ^ (b | (~d)), a, b, x, s, t) +} +function safe_add(x, y) { + var lsw = (x & 0xFFFF) + (y & 0xFFFF); + var msw = (x>> 16) + (y>> 16) + (lsw>> 16); + return (msw << 16) | (lsw & 0xFFFF) +} +function bit_rol(num, cnt) { + return (num << cnt) | (num>>> (32 - cnt)) +} +var CryptoJS = CryptoJS || function(h, r) { + var k = {} + , l = k.lib = {} + , n = function() {} + , f = l.Base = { + extend: function(a) { + n.prototype = this; + var b = new n; + a && b.mixIn(a); + b.hasOwnProperty("init") || (b.init = function() { + b.$super.init.apply(this, arguments) + } + ); + b.init.prototype = b; + b.$super = this; + return b + }, + create: function() { + var a = this.extend(); + a.init.apply(a, arguments); + return a + }, + init: function() {}, + mixIn: function(a) { + for (var b in a) + a.hasOwnProperty(b) && (this[b] = a[b]); + a.hasOwnProperty("toString") && (this.toString = a.toString) + }, + clone: function() { + return this.init.prototype.extend(this) + } + } + , j = l.WordArray = f.extend({ + init: function(a, b) { + a = this.words = a || []; + this.sigBytes = b != r ? b : 4 * a.length + }, + toString: function(a) { + return (a || s).stringify(this) + }, + concat: function(a) { + var b = this.words + , d = a.words + , c = this.sigBytes; + a = a.sigBytes; + this.clamp(); + if (c % 4) + for (var e = 0; e < a; e++) + b[c + e>>> 2] |= (d[e>>> 2]>>> 24 - 8 * (e % 4) & 255) << 24 - 8 * ((c + e) % 4); + else if (65535 < d.length) + for (e = 0; e < a; e += 4) + b[c + e>>> 2] = d[e>>> 2]; + else + b.push.apply(b, d); + this.sigBytes += a; + return this + }, + clamp: function() { + var a = this.words + , b = this.sigBytes; + a[b>>> 2] &= 4294967295 << 32 - 8 * (b % 4); + a.length = h.ceil(b / 4) + }, + clone: function() { + var a = f.clone.call(this); + a.words = this.words.slice(0); + return a + }, + random: function(a) { + for (var b = [], d = 0; d < a; d += 4) + b.push(4294967296 * h.random() | 0); + return new j.init(b,a) + } + }) + , m = k.enc = {} + , s = m.Hex = { + stringify: function(a) { + var b = a.words; + a = a.sigBytes; + for (var d = [], c = 0; c < a; c++) { + var e = b[c>>> 2]>>> 24 - 8 * (c % 4) & 255; + d.push((e>>> 4).toString(16)); + d.push((e & 15).toString(16)) + } + return d.join("") + }, + parse: function(a) { + for (var b = a.length, d = [], c = 0; c < b; c += 2) + d[c>>> 3] |= parseInt(a.substr(c, 2), 16) << 24 - 4 * (c % 8); + return new j.init(d,b / 2) + } + } + , p = m.Latin1 = { + stringify: function(a) { + var b = a.words; + a = a.sigBytes; + for (var d = [], c = 0; c < a; c++) + d.push(String.fromCharCode(b[c>>> 2]>>> 24 - 8 * (c % 4) & 255)); + return d.join("") + }, + parse: function(a) { + for (var b = a.length, d = [], c = 0; c < b; c++) + d[c>>> 2] |= (a.charCodeAt(c) & 255) << 24 - 8 * (c % 4); + return new j.init(d,b) + } + } + , t = m.Utf8 = { + stringify: function(a) { + try { + return decodeURIComponent(escape(p.stringify(a))) + } catch (b) { + throw Error("Malformed UTF-8 data") + } + }, + parse: function(a) { + return p.parse(unescape(encodeURIComponent(a))) + } + } + , q = l.BufferedBlockAlgorithm = f.extend({ + reset: function() { + this._data = new j.init; + this._nDataBytes = 0 + }, + _append: function(a) { + "string" == typeof a && (a = t.parse(a)); + this._data.concat(a); + this._nDataBytes += a.sigBytes + }, + _process: function(a) { + var b = this._data + , d = b.words + , c = b.sigBytes + , e = this.blockSize + , f = c / (4 * e) + , f = a ? h.ceil(f) : h.max((f | 0) - this._minBufferSize, 0); + a = f * e; + c = h.min(4 * a, c); + if (a) { + for (var g = 0; g < a; g += e) + this._doProcessBlock(d, g); + g = d.splice(0, a); + b.sigBytes -= c + } + return new j.init(g,c) + }, + clone: function() { + var a = f.clone.call(this); + a._data = this._data.clone(); + return a + }, + _minBufferSize: 0 + }); + l.Hasher = q.extend({ + cfg: f.extend(), + init: function(a) { + this.cfg = this.cfg.extend(a); + this.reset() + }, + reset: function() { + q.reset.call(this); + this._doReset() + }, + update: function(a) { + this._append(a); + this._process(); + return this + }, + finalize: function(a) { + a && this._append(a); + return this._doFinalize() + }, + blockSize: 16, + _createHelper: function(a) { + return function(b, d) { + return (new a.init(d)).finalize(b) + } + }, + _createHmacHelper: function(a) { + return function(b, d) { + return (new u.HMAC.init(a,d)).finalize(b) + } + } + }); + var u = k.algo = {}; + return k +}(Math); +(function() { + var h = CryptoJS + , j = h.lib.WordArray; + h.enc.Base64 = { + stringify: function(b) { + var e = b.words + , f = b.sigBytes + , c = this._map; + b.clamp(); + b = []; + for (var a = 0; a < f; a += 3) + for (var d = (e[a>>> 2]>>> 24 - 8 * (a % 4) & 255) << 16 | (e[a + 1>>> 2]>>> 24 - 8 * ((a + 1) % 4) & 255) << 8 | e[a + 2>>> 2]>>> 24 - 8 * ((a + 2) % 4) & 255, g = 0; 4> g && a + 0.75 * g < f; g++) + b.push(c.charAt(d>>> 6 * (3 - g) & 63)); + if (e = c.charAt(64)) + for (; b.length % 4; ) + b.push(e); + return b.join("") + }, + parse: function(b) { + var e = b.length + , f = this._map + , c = f.charAt(64); + c && (c = b.indexOf(c), + -1 != c && (e = c)); + for (var c = [], a = 0, d = 0; d < e; d++) + if (d % 4) { + var g = f.indexOf(b.charAt(d - 1)) << 2 * (d % 4) + , h = f.indexOf(b.charAt(d))>>> 6 - 2 * (d % 4); + c[a>>> 2] |= (g | h) << 24 - 8 * (a % 4); + a++ + } + return j.create(c, a) + }, + _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" + } +} +)(); +CryptoJS.lib.Cipher || function(u) { + var g = CryptoJS + , f = g.lib + , k = f.Base + , l = f.WordArray + , q = f.BufferedBlockAlgorithm + , r = g.enc.Base64 + , v = g.algo.EvpKDF + , n = f.Cipher = q.extend({ + cfg: k.extend(), + createEncryptor: function(a, b) { + return this.create(this._ENC_XFORM_MODE, a, b) + }, + createDecryptor: function(a, b) { + return this.create(this._DEC_XFORM_MODE, a, b) + }, + init: function(a, b, c) { + this.cfg = this.cfg.extend(c); + this._xformMode = a; + this._key = b; + this.reset() + }, + reset: function() { + q.reset.call(this); + this._doReset() + }, + process: function(a) { + this._append(a); + return this._process() + }, + finalize: function(a) { + a && this._append(a); + return this._doFinalize() + }, + keySize: 4, + ivSize: 4, + _ENC_XFORM_MODE: 1, + _DEC_XFORM_MODE: 2, + _createHelper: function(a) { + return { + encrypt: function(b, c, d) { + return ("string" == typeof c ? s : j).encrypt(a, b, c, d) + }, + decrypt: function(b, c, d) { + return ("string" == typeof c ? s : j).decrypt(a, b, c, d) + } + } + } + }); + f.StreamCipher = n.extend({ + _doFinalize: function() { + return this._process(!0) + }, + blockSize: 1 + }); + var m = g.mode = {} + , t = function(a, b, c) { + var d = this._iv; + d ? this._iv = u : d = this._prevBlock; + for (var e = 0; e < c; e++) + a[b + e] ^= d[e] + } + , h = (f.BlockCipherMode = k.extend({ + createEncryptor: function(a, b) { + return this.Encryptor.create(a, b) + }, + createDecryptor: function(a, b) { + return this.Decryptor.create(a, b) + }, + init: function(a, b) { + this._cipher = a; + this._iv = b + } + })).extend(); + h.Encryptor = h.extend({ + processBlock: function(a, b) { + var c = this._cipher + , d = c.blockSize; + t.call(this, a, b, d); + c.encryptBlock(a, b); + this._prevBlock = a.slice(b, b + d) + } + }); + h.Decryptor = h.extend({ + processBlock: function(a, b) { + var c = this._cipher + , d = c.blockSize + , e = a.slice(b, b + d); + c.decryptBlock(a, b); + t.call(this, a, b, d); + this._prevBlock = e + } + }); + m = m.CBC = h; + h = (g.pad = {}).Pkcs7 = { + pad: function(a, b) { + for (var c = 4 * b, c = c - a.sigBytes % c, d = c << 24 | c << 16 | c << 8 | c, e = [], f = 0; f < c; f += 4) + e.push(d); + c = l.create(e, c); + a.concat(c) + }, + unpad: function(a) { + a.sigBytes -= a.words[a.sigBytes - 1>>> 2] & 255 + } + }; + f.BlockCipher = n.extend({ + cfg: n.cfg.extend({ + mode: m, + padding: h + }), + reset: function() { + n.reset.call(this); + var a = this.cfg + , b = a.iv + , a = a.mode; + if (this._xformMode == this._ENC_XFORM_MODE) + var c = a.createEncryptor; + else + c = a.createDecryptor, + this._minBufferSize = 1; + this._mode = c.call(a, this, b && b.words) + }, + _doProcessBlock: function(a, b) { + this._mode.processBlock(a, b) + }, + _doFinalize: function() { + var a = this.cfg.padding; + if (this._xformMode == this._ENC_XFORM_MODE) { + a.pad(this._data, this.blockSize); + var b = this._process(!0) + } else + b = this._process(!0), + a.unpad(b); + return b + }, + blockSize: 4 + }); + var p = f.CipherParams = k.extend({ + init: function(a) { + this.mixIn(a) + }, + toString: function(a) { + return (a || this.formatter).stringify(this) + } + }) + , m = (g.format = {}).OpenSSL = { + stringify: function(a) { + var b = a.ciphertext; + a = a.salt; + return (a ? l.create([1398893684, 1701076831]).concat(a).concat(b) : b).toString(r) + }, + parse: function(a) { + a = r.parse(a); + var b = a.words; + if (1398893684 == b[0] && 1701076831 == b[1]) { + var c = l.create(b.slice(2, 4)); + b.splice(0, 4); + a.sigBytes -= 16 + } + return p.create({ + ciphertext: a, + salt: c + }) + } + } + , j = f.SerializableCipher = k.extend({ + cfg: k.extend({ + format: m + }), + encrypt: function(a, b, c, d) { + d = this.cfg.extend(d); + var e = a.createEncryptor(c, d); + b = e.finalize(b); + e = e.cfg; + return p.create({ + ciphertext: b, + key: c, + iv: e.iv, + algorithm: a, + mode: e.mode, + padding: e.padding, + blockSize: a.blockSize, + formatter: d.format + }) + }, + decrypt: function(a, b, c, d) { + d = this.cfg.extend(d); + b = this._parse(b, d.format); + return a.createDecryptor(c, d).finalize(b.ciphertext) + }, + _parse: function(a, b) { + return "string" == typeof a ? b.parse(a, this) : a + } + }) + , g = (g.kdf = {}).OpenSSL = { + execute: function(a, b, c, d) { + d || (d = l.random(8)); + a = v.create({ + keySize: b + c + }).compute(a, d); + c = l.create(a.words.slice(b), 4 * c); + a.sigBytes = 4 * b; + return p.create({ + key: a, + iv: c, + salt: d + }) + } + } + , s = f.PasswordBasedCipher = j.extend({ + cfg: j.cfg.extend({ + kdf: g + }), + encrypt: function(a, b, c, d) { + d = this.cfg.extend(d); + c = d.kdf.execute(c, a.keySize, a.ivSize); + d.iv = c.iv; + a = j.encrypt.call(this, a, b, c.key, d); + a.mixIn(c); + return a + }, + decrypt: function(a, b, c, d) { + d = this.cfg.extend(d); + b = this._parse(b, d.format); + c = d.kdf.execute(c, a.keySize, a.ivSize, b.salt); + d.iv = c.iv; + return j.decrypt.call(this, a, b, c.key, d) + } + }) +}(); +CryptoJS.mode.ECB = function() { + var a = CryptoJS.lib.BlockCipherMode.extend(); + a.Encryptor = a.extend({ + processBlock: function(a, b) { + this._cipher.encryptBlock(a, b) + } + }); + a.Decryptor = a.extend({ + processBlock: function(a, b) { + this._cipher.decryptBlock(a, b) + } + }); + return a +}(); +(function(E) { + function h(a, f, g, j, p, h, k) { + a = a + (f & g | ~f & j) + p + k; + return (a << h | a>>> 32 - h) + f + } + function k(a, f, g, j, p, h, k) { + a = a + (f & j | g & ~j) + p + k; + return (a << h | a>>> 32 - h) + f + } + function l(a, f, g, j, h, k, l) { + a = a + (f ^ g ^ j) + h + l; + return (a << k | a>>> 32 - k) + f + } + function n(a, f, g, j, h, k, l) { + a = a + (g ^ (f | ~j)) + h + l; + return (a << k | a>>> 32 - k) + f + } + for (var r = CryptoJS, q = r.lib, F = q.WordArray, s = q.Hasher, q = r.algo, a = [], t = 0; 64> t; t++) + a[t] = 4294967296 * E.abs(E.sin(t + 1)) | 0; + q = q.MD5 = s.extend({ + _doReset: function() { + this._hash = new F.init([1732584193, 4023233417, 2562383102, 271733878]) + }, + _doProcessBlock: function(m, f) { + for (var g = 0; 16> g; g++) { + var j = f + g + , p = m[j]; + m[j] = (p << 8 | p>>> 24) & 16711935 | (p << 24 | p>>> 8) & 4278255360 + } + var g = this._hash.words + , j = m[f + 0] + , p = m[f + 1] + , q = m[f + 2] + , r = m[f + 3] + , s = m[f + 4] + , t = m[f + 5] + , u = m[f + 6] + , v = m[f + 7] + , w = m[f + 8] + , x = m[f + 9] + , y = m[f + 10] + , z = m[f + 11] + , A = m[f + 12] + , B = m[f + 13] + , C = m[f + 14] + , D = m[f + 15] + , b = g[0] + , c = g[1] + , d = g[2] + , e = g[3] + , b = h(b, c, d, e, j, 7, a[0]) + , e = h(e, b, c, d, p, 12, a[1]) + , d = h(d, e, b, c, q, 17, a[2]) + , c = h(c, d, e, b, r, 22, a[3]) + , b = h(b, c, d, e, s, 7, a[4]) + , e = h(e, b, c, d, t, 12, a[5]) + , d = h(d, e, b, c, u, 17, a[6]) + , c = h(c, d, e, b, v, 22, a[7]) + , b = h(b, c, d, e, w, 7, a[8]) + , e = h(e, b, c, d, x, 12, a[9]) + , d = h(d, e, b, c, y, 17, a[10]) + , c = h(c, d, e, b, z, 22, a[11]) + , b = h(b, c, d, e, A, 7, a[12]) + , e = h(e, b, c, d, B, 12, a[13]) + , d = h(d, e, b, c, C, 17, a[14]) + , c = h(c, d, e, b, D, 22, a[15]) + , b = k(b, c, d, e, p, 5, a[16]) + , e = k(e, b, c, d, u, 9, a[17]) + , d = k(d, e, b, c, z, 14, a[18]) + , c = k(c, d, e, b, j, 20, a[19]) + , b = k(b, c, d, e, t, 5, a[20]) + , e = k(e, b, c, d, y, 9, a[21]) + , d = k(d, e, b, c, D, 14, a[22]) + , c = k(c, d, e, b, s, 20, a[23]) + , b = k(b, c, d, e, x, 5, a[24]) + , e = k(e, b, c, d, C, 9, a[25]) + , d = k(d, e, b, c, r, 14, a[26]) + , c = k(c, d, e, b, w, 20, a[27]) + , b = k(b, c, d, e, B, 5, a[28]) + , e = k(e, b, c, d, q, 9, a[29]) + , d = k(d, e, b, c, v, 14, a[30]) + , c = k(c, d, e, b, A, 20, a[31]) + , b = l(b, c, d, e, t, 4, a[32]) + , e = l(e, b, c, d, w, 11, a[33]) + , d = l(d, e, b, c, z, 16, a[34]) + , c = l(c, d, e, b, C, 23, a[35]) + , b = l(b, c, d, e, p, 4, a[36]) + , e = l(e, b, c, d, s, 11, a[37]) + , d = l(d, e, b, c, v, 16, a[38]) + , c = l(c, d, e, b, y, 23, a[39]) + , b = l(b, c, d, e, B, 4, a[40]) + , e = l(e, b, c, d, j, 11, a[41]) + , d = l(d, e, b, c, r, 16, a[42]) + , c = l(c, d, e, b, u, 23, a[43]) + , b = l(b, c, d, e, x, 4, a[44]) + , e = l(e, b, c, d, A, 11, a[45]) + , d = l(d, e, b, c, D, 16, a[46]) + , c = l(c, d, e, b, q, 23, a[47]) + , b = n(b, c, d, e, j, 6, a[48]) + , e = n(e, b, c, d, v, 10, a[49]) + , d = n(d, e, b, c, C, 15, a[50]) + , c = n(c, d, e, b, t, 21, a[51]) + , b = n(b, c, d, e, A, 6, a[52]) + , e = n(e, b, c, d, r, 10, a[53]) + , d = n(d, e, b, c, y, 15, a[54]) + , c = n(c, d, e, b, p, 21, a[55]) + , b = n(b, c, d, e, w, 6, a[56]) + , e = n(e, b, c, d, D, 10, a[57]) + , d = n(d, e, b, c, u, 15, a[58]) + , c = n(c, d, e, b, B, 21, a[59]) + , b = n(b, c, d, e, s, 6, a[60]) + , e = n(e, b, c, d, z, 10, a[61]) + , d = n(d, e, b, c, q, 15, a[62]) + , c = n(c, d, e, b, x, 21, a[63]); + g[0] = g[0] + b | 0; + g[1] = g[1] + c | 0; + g[2] = g[2] + d | 0; + g[3] = g[3] + e | 0 + }, + _doFinalize: function() { + var a = this._data + , f = a.words + , g = 8 * this._nDataBytes + , j = 8 * a.sigBytes; + f[j>>> 5] |= 128 << 24 - j % 32; + var h = E.floor(g / 4294967296); + f[(j + 64>>> 9 << 4) + 15] = (h << 8 | h>>> 24) & 16711935 | (h << 24 | h>>> 8) & 4278255360; + f[(j + 64>>> 9 << 4) + 14] = (g << 8 | g>>> 24) & 16711935 | (g << 24 | g>>> 8) & 4278255360; + a.sigBytes = 4 * (f.length + 1); + this._process(); + a = this._hash; + f = a.words; + for (g = 0; 4> g; g++) + j = f[g], + f[g] = (j << 8 | j>>> 24) & 16711935 | (j << 24 | j>>> 8) & 4278255360; + return a + }, + clone: function() { + var a = s.clone.call(this); + a._hash = this._hash.clone(); + return a + } + }); + r.MD5 = s._createHelper(q); + r.HmacMD5 = s._createHmacHelper(q) +} +)(Math); +(function() { + for (var q = CryptoJS, x = q.lib.BlockCipher, r = q.algo, j = [], y = [], z = [], A = [], B = [], C = [], s = [], u = [], v = [], w = [], g = [], k = 0; 256> k; k++) + g[k] = 128> k ? k << 1 : k << 1 ^ 283; + for (var n = 0, l = 0, k = 0; 256> k; k++) { + var f = l ^ l << 1 ^ l << 2 ^ l << 3 ^ l << 4 + , f = f>>> 8 ^ f & 255 ^ 99; + j[n] = f; + y[f] = n; + var t = g[n] + , D = g[t] + , E = g[D] + , b = 257 * g[f] ^ 16843008 * f; + z[n] = b << 24 | b>>> 8; + A[n] = b << 16 | b>>> 16; + B[n] = b << 8 | b>>> 24; + C[n] = b; + b = 16843009 * E ^ 65537 * D ^ 257 * t ^ 16843008 * n; + s[f] = b << 24 | b>>> 8; + u[f] = b << 16 | b>>> 16; + v[f] = b << 8 | b>>> 24; + w[f] = b; + n ? (n = t ^ g[g[g[E ^ t]]], + l ^= g[g[l]]) : n = l = 1 + } + var F = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54] + , r = r.AES = x.extend({ + _doReset: function() { + for (var c = this._key, e = c.words, a = c.sigBytes / 4, c = 4 * ((this._nRounds = a + 6) + 1), b = this._keySchedule = [], h = 0; h < c; h++) + if (h < a) + b[h] = e[h]; + else { + var d = b[h - 1]; + h % a ? 6 < a && 4 == h % a && (d = j[d>>> 24] << 24 | j[d>>> 16 & 255] << 16 | j[d>>> 8 & 255] << 8 | j[d & 255]) : (d = d << 8 | d>>> 24, + d = j[d>>> 24] << 24 | j[d>>> 16 & 255] << 16 | j[d>>> 8 & 255] << 8 | j[d & 255], + d ^= F[h / a | 0] << 24); + b[h] = b[h - a] ^ d + } + e = this._invKeySchedule = []; + for (a = 0; a < c; a++) + h = c - a, + d = a % 4 ? b[h] : b[h - 4], + e[a] = 4> a || 4>= h ? d : s[j[d>>> 24]] ^ u[j[d>>> 16 & 255]] ^ v[j[d>>> 8 & 255]] ^ w[j[d & 255]] + }, + encryptBlock: function(c, e) { + this._doCryptBlock(c, e, this._keySchedule, z, A, B, C, j) + }, + decryptBlock: function(c, e) { + var a = c[e + 1]; + c[e + 1] = c[e + 3]; + c[e + 3] = a; + this._doCryptBlock(c, e, this._invKeySchedule, s, u, v, w, y); + a = c[e + 1]; + c[e + 1] = c[e + 3]; + c[e + 3] = a + }, + _doCryptBlock: function(c, e, a, b, h, d, j, m) { + for (var n = this._nRounds, f = c[e] ^ a[0], g = c[e + 1] ^ a[1], k = c[e + 2] ^ a[2], p = c[e + 3] ^ a[3], l = 4, t = 1; t < n; t++) + var q = b[f>>> 24] ^ h[g>>> 16 & 255] ^ d[k>>> 8 & 255] ^ j[p & 255] ^ a[l++] + , r = b[g>>> 24] ^ h[k>>> 16 & 255] ^ d[p>>> 8 & 255] ^ j[f & 255] ^ a[l++] + , s = b[k>>> 24] ^ h[p>>> 16 & 255] ^ d[f>>> 8 & 255] ^ j[g & 255] ^ a[l++] + , p = b[p>>> 24] ^ h[f>>> 16 & 255] ^ d[g>>> 8 & 255] ^ j[k & 255] ^ a[l++] + , f = q + , g = r + , k = s; + q = (m[f>>> 24] << 24 | m[g>>> 16 & 255] << 16 | m[k>>> 8 & 255] << 8 | m[p & 255]) ^ a[l++]; + r = (m[g>>> 24] << 24 | m[k>>> 16 & 255] << 16 | m[p>>> 8 & 255] << 8 | m[f & 255]) ^ a[l++]; + s = (m[k>>> 24] << 24 | m[p>>> 16 & 255] << 16 | m[f>>> 8 & 255] << 8 | m[g & 255]) ^ a[l++]; + p = (m[p>>> 24] << 24 | m[f>>> 16 & 255] << 16 | m[g>>> 8 & 255] << 8 | m[k & 255]) ^ a[l++]; + c[e] = q; + c[e + 1] = r; + c[e + 2] = s; + c[e + 3] = p + }, + keySize: 8 + }); + q.AES = x._createHelper(r) +} +)(); +(function() { + function j(b, c) { + var a = (this._lBlock>>> b ^ this._rBlock) & c; + this._rBlock ^= a; + this._lBlock ^= a << b + } + function l(b, c) { + var a = (this._rBlock>>> b ^ this._lBlock) & c; + this._lBlock ^= a; + this._rBlock ^= a << b + } + var h = CryptoJS + , e = h.lib + , n = e.WordArray + , e = e.BlockCipher + , g = h.algo + , q = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4] + , p = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32] + , r = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28] + , s = [{ + "0": 8421888, + 268435456: 32768, + 536870912: 8421378, + 805306368: 2, + 1073741824: 512, + 1342177280: 8421890, + 1610612736: 8389122, + 1879048192: 8388608, + 2147483648: 514, + 2415919104: 8389120, + 2684354560: 33280, + 2952790016: 8421376, + 3221225472: 32770, + 3489660928: 8388610, + 3758096384: 0, + 4026531840: 33282, + 134217728: 0, + 402653184: 8421890, + 671088640: 33282, + 939524096: 32768, + 1207959552: 8421888, + 1476395008: 512, + 1744830464: 8421378, + 2013265920: 2, + 2281701376: 8389120, + 2550136832: 33280, + 2818572288: 8421376, + 3087007744: 8389122, + 3355443200: 8388610, + 3623878656: 32770, + 3892314112: 514, + 4160749568: 8388608, + 1: 32768, + 268435457: 2, + 536870913: 8421888, + 805306369: 8388608, + 1073741825: 8421378, + 1342177281: 33280, + 1610612737: 512, + 1879048193: 8389122, + 2147483649: 8421890, + 2415919105: 8421376, + 2684354561: 8388610, + 2952790017: 33282, + 3221225473: 514, + 3489660929: 8389120, + 3758096385: 32770, + 4026531841: 0, + 134217729: 8421890, + 402653185: 8421376, + 671088641: 8388608, + 939524097: 512, + 1207959553: 32768, + 1476395009: 8388610, + 1744830465: 2, + 2013265921: 33282, + 2281701377: 32770, + 2550136833: 8389122, + 2818572289: 514, + 3087007745: 8421888, + 3355443201: 8389120, + 3623878657: 0, + 3892314113: 33280, + 4160749569: 8421378 + }, { + "0": 1074282512, + 16777216: 16384, + 33554432: 524288, + 50331648: 1074266128, + 67108864: 1073741840, + 83886080: 1074282496, + 100663296: 1073758208, + 117440512: 16, + 134217728: 540672, + 150994944: 1073758224, + 167772160: 1073741824, + 184549376: 540688, + 201326592: 524304, + 218103808: 0, + 234881024: 16400, + 251658240: 1074266112, + 8388608: 1073758208, + 25165824: 540688, + 41943040: 16, + 58720256: 1073758224, + 75497472: 1074282512, + 92274688: 1073741824, + 109051904: 524288, + 125829120: 1074266128, + 142606336: 524304, + 159383552: 0, + 176160768: 16384, + 192937984: 1074266112, + 209715200: 1073741840, + 226492416: 540672, + 243269632: 1074282496, + 260046848: 16400, + 268435456: 0, + 285212672: 1074266128, + 301989888: 1073758224, + 318767104: 1074282496, + 335544320: 1074266112, + 352321536: 16, + 369098752: 540688, + 385875968: 16384, + 402653184: 16400, + 419430400: 524288, + 436207616: 524304, + 452984832: 1073741840, + 469762048: 540672, + 486539264: 1073758208, + 503316480: 1073741824, + 520093696: 1074282512, + 276824064: 540688, + 293601280: 524288, + 310378496: 1074266112, + 327155712: 16384, + 343932928: 1073758208, + 360710144: 1074282512, + 377487360: 16, + 394264576: 1073741824, + 411041792: 1074282496, + 427819008: 1073741840, + 444596224: 1073758224, + 461373440: 524304, + 478150656: 0, + 494927872: 16400, + 511705088: 1074266128, + 528482304: 540672 + }, { + "0": 260, + 1048576: 0, + 2097152: 67109120, + 3145728: 65796, + 4194304: 65540, + 5242880: 67108868, + 6291456: 67174660, + 7340032: 67174400, + 8388608: 67108864, + 9437184: 67174656, + 10485760: 65792, + 11534336: 67174404, + 12582912: 67109124, + 13631488: 65536, + 14680064: 4, + 15728640: 256, + 524288: 67174656, + 1572864: 67174404, + 2621440: 0, + 3670016: 67109120, + 4718592: 67108868, + 5767168: 65536, + 6815744: 65540, + 7864320: 260, + 8912896: 4, + 9961472: 256, + 11010048: 67174400, + 12058624: 65796, + 13107200: 65792, + 14155776: 67109124, + 15204352: 67174660, + 16252928: 67108864, + 16777216: 67174656, + 17825792: 65540, + 18874368: 65536, + 19922944: 67109120, + 20971520: 256, + 22020096: 67174660, + 23068672: 67108868, + 24117248: 0, + 25165824: 67109124, + 26214400: 67108864, + 27262976: 4, + 28311552: 65792, + 29360128: 67174400, + 30408704: 260, + 31457280: 65796, + 32505856: 67174404, + 17301504: 67108864, + 18350080: 260, + 19398656: 67174656, + 20447232: 0, + 21495808: 65540, + 22544384: 67109120, + 23592960: 256, + 24641536: 67174404, + 25690112: 65536, + 26738688: 67174660, + 27787264: 65796, + 28835840: 67108868, + 29884416: 67109124, + 30932992: 67174400, + 31981568: 4, + 33030144: 65792 + }, { + "0": 2151682048, + 65536: 2147487808, + 131072: 4198464, + 196608: 2151677952, + 262144: 0, + 327680: 4198400, + 393216: 2147483712, + 458752: 4194368, + 524288: 2147483648, + 589824: 4194304, + 655360: 64, + 720896: 2147487744, + 786432: 2151678016, + 851968: 4160, + 917504: 4096, + 983040: 2151682112, + 32768: 2147487808, + 98304: 64, + 163840: 2151678016, + 229376: 2147487744, + 294912: 4198400, + 360448: 2151682112, + 425984: 0, + 491520: 2151677952, + 557056: 4096, + 622592: 2151682048, + 688128: 4194304, + 753664: 4160, + 819200: 2147483648, + 884736: 4194368, + 950272: 4198464, + 1015808: 2147483712, + 1048576: 4194368, + 1114112: 4198400, + 1179648: 2147483712, + 1245184: 0, + 1310720: 4160, + 1376256: 2151678016, + 1441792: 2151682048, + 1507328: 2147487808, + 1572864: 2151682112, + 1638400: 2147483648, + 1703936: 2151677952, + 1769472: 4198464, + 1835008: 2147487744, + 1900544: 4194304, + 1966080: 64, + 2031616: 4096, + 1081344: 2151677952, + 1146880: 2151682112, + 1212416: 0, + 1277952: 4198400, + 1343488: 4194368, + 1409024: 2147483648, + 1474560: 2147487808, + 1540096: 64, + 1605632: 2147483712, + 1671168: 4096, + 1736704: 2147487744, + 1802240: 2151678016, + 1867776: 4160, + 1933312: 2151682048, + 1998848: 4194304, + 2064384: 4198464 + }, { + "0": 128, + 4096: 17039360, + 8192: 262144, + 12288: 536870912, + 16384: 537133184, + 20480: 16777344, + 24576: 553648256, + 28672: 262272, + 32768: 16777216, + 36864: 537133056, + 40960: 536871040, + 45056: 553910400, + 49152: 553910272, + 53248: 0, + 57344: 17039488, + 61440: 553648128, + 2048: 17039488, + 6144: 553648256, + 10240: 128, + 14336: 17039360, + 18432: 262144, + 22528: 537133184, + 26624: 553910272, + 30720: 536870912, + 34816: 537133056, + 38912: 0, + 43008: 553910400, + 47104: 16777344, + 51200: 536871040, + 55296: 553648128, + 59392: 16777216, + 63488: 262272, + 65536: 262144, + 69632: 128, + 73728: 536870912, + 77824: 553648256, + 81920: 16777344, + 86016: 553910272, + 90112: 537133184, + 94208: 16777216, + 98304: 553910400, + 102400: 553648128, + 106496: 17039360, + 110592: 537133056, + 114688: 262272, + 118784: 536871040, + 122880: 0, + 126976: 17039488, + 67584: 553648256, + 71680: 16777216, + 75776: 17039360, + 79872: 537133184, + 83968: 536870912, + 88064: 17039488, + 92160: 128, + 96256: 553910272, + 100352: 262272, + 104448: 553910400, + 108544: 0, + 112640: 553648128, + 116736: 16777344, + 120832: 262144, + 124928: 537133056, + 129024: 536871040 + }, { + "0": 268435464, + 256: 8192, + 512: 270532608, + 768: 270540808, + 1024: 268443648, + 1280: 2097152, + 1536: 2097160, + 1792: 268435456, + 2048: 0, + 2304: 268443656, + 2560: 2105344, + 2816: 8, + 3072: 270532616, + 3328: 2105352, + 3584: 8200, + 3840: 270540800, + 128: 270532608, + 384: 270540808, + 640: 8, + 896: 2097152, + 1152: 2105352, + 1408: 268435464, + 1664: 268443648, + 1920: 8200, + 2176: 2097160, + 2432: 8192, + 2688: 268443656, + 2944: 270532616, + 3200: 0, + 3456: 270540800, + 3712: 2105344, + 3968: 268435456, + 4096: 268443648, + 4352: 270532616, + 4608: 270540808, + 4864: 8200, + 5120: 2097152, + 5376: 268435456, + 5632: 268435464, + 5888: 2105344, + 6144: 2105352, + 6400: 0, + 6656: 8, + 6912: 270532608, + 7168: 8192, + 7424: 268443656, + 7680: 270540800, + 7936: 2097160, + 4224: 8, + 4480: 2105344, + 4736: 2097152, + 4992: 268435464, + 5248: 268443648, + 5504: 8200, + 5760: 270540808, + 6016: 270532608, + 6272: 270540800, + 6528: 270532616, + 6784: 8192, + 7040: 2105352, + 7296: 2097160, + 7552: 0, + 7808: 268435456, + 8064: 268443656 + }, { + "0": 1048576, + 16: 33555457, + 32: 1024, + 48: 1049601, + 64: 34604033, + 80: 0, + 96: 1, + 112: 34603009, + 128: 33555456, + 144: 1048577, + 160: 33554433, + 176: 34604032, + 192: 34603008, + 208: 1025, + 224: 1049600, + 240: 33554432, + 8: 34603009, + 24: 0, + 40: 33555457, + 56: 34604032, + 72: 1048576, + 88: 33554433, + 104: 33554432, + 120: 1025, + 136: 1049601, + 152: 33555456, + 168: 34603008, + 184: 1048577, + 200: 1024, + 216: 34604033, + 232: 1, + 248: 1049600, + 256: 33554432, + 272: 1048576, + 288: 33555457, + 304: 34603009, + 320: 1048577, + 336: 33555456, + 352: 34604032, + 368: 1049601, + 384: 1025, + 400: 34604033, + 416: 1049600, + 432: 1, + 448: 0, + 464: 34603008, + 480: 33554433, + 496: 1024, + 264: 1049600, + 280: 33555457, + 296: 34603009, + 312: 1, + 328: 33554432, + 344: 1048576, + 360: 1025, + 376: 34604032, + 392: 33554433, + 408: 34603008, + 424: 0, + 440: 34604033, + 456: 1049601, + 472: 1024, + 488: 33555456, + 504: 1048577 + }, { + "0": 134219808, + 1: 131072, + 2: 134217728, + 3: 32, + 4: 131104, + 5: 134350880, + 6: 134350848, + 7: 2048, + 8: 134348800, + 9: 134219776, + 10: 133120, + 11: 134348832, + 12: 2080, + 13: 0, + 14: 134217760, + 15: 133152, + 2147483648: 2048, + 2147483649: 134350880, + 2147483650: 134219808, + 2147483651: 134217728, + 2147483652: 134348800, + 2147483653: 133120, + 2147483654: 133152, + 2147483655: 32, + 2147483656: 134217760, + 2147483657: 2080, + 2147483658: 131104, + 2147483659: 134350848, + 2147483660: 0, + 2147483661: 134348832, + 2147483662: 134219776, + 2147483663: 131072, + 16: 133152, + 17: 134350848, + 18: 32, + 19: 2048, + 20: 134219776, + 21: 134217760, + 22: 134348832, + 23: 131072, + 24: 0, + 25: 131104, + 26: 134348800, + 27: 134219808, + 28: 134350880, + 29: 133120, + 30: 2080, + 31: 134217728, + 2147483664: 131072, + 2147483665: 2048, + 2147483666: 134348832, + 2147483667: 133152, + 2147483668: 32, + 2147483669: 134348800, + 2147483670: 134217728, + 2147483671: 134219808, + 2147483672: 134350880, + 2147483673: 134217760, + 2147483674: 134219776, + 2147483675: 0, + 2147483676: 133120, + 2147483677: 2080, + 2147483678: 131104, + 2147483679: 134350848 + }] + , t = [4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504, 2147483679] + , m = g.DES = e.extend({ + _doReset: function() { + for (var b = this._key.words, c = [], a = 0; 56> a; a++) { + var f = q[a] - 1; + c[a] = b[f>>> 5]>>> 31 - f % 32 & 1 + } + b = this._subKeys = []; + for (f = 0; 16> f; f++) { + for (var d = b[f] = [], e = r[f], a = 0; 24> a; a++) + d[a / 6 | 0] |= c[(p[a] - 1 + e) % 28] << 31 - a % 6, + d[4 + (a / 6 | 0)] |= c[28 + (p[a + 24] - 1 + e) % 28] << 31 - a % 6; + d[0] = d[0] << 1 | d[0]>>> 31; + for (a = 1; 7> a; a++) + d[a]>>>= 4 * (a - 1) + 3; + d[7] = d[7] << 5 | d[7]>>> 27 + } + c = this._invSubKeys = []; + for (a = 0; 16> a; a++) + c[a] = b[15 - a] + }, + encryptBlock: function(b, c) { + this._doCryptBlock(b, c, this._subKeys) + }, + decryptBlock: function(b, c) { + this._doCryptBlock(b, c, this._invSubKeys) + }, + _doCryptBlock: function(b, c, a) { + this._lBlock = b[c]; + this._rBlock = b[c + 1]; + j.call(this, 4, 252645135); + j.call(this, 16, 65535); + l.call(this, 2, 858993459); + l.call(this, 8, 16711935); + j.call(this, 1, 1431655765); + for (var f = 0; 16> f; f++) { + for (var d = a[f], e = this._lBlock, h = this._rBlock, g = 0, k = 0; 8> k; k++) + g |= s[k][((h ^ d[k]) & t[k])>>> 0]; + this._lBlock = h; + this._rBlock = e ^ g + } + a = this._lBlock; + this._lBlock = this._rBlock; + this._rBlock = a; + j.call(this, 1, 1431655765); + l.call(this, 8, 16711935); + l.call(this, 2, 858993459); + j.call(this, 16, 65535); + j.call(this, 4, 252645135); + b[c] = this._lBlock; + b[c + 1] = this._rBlock + }, + keySize: 2, + ivSize: 2, + blockSize: 2 + }); + h.DES = e._createHelper(m); + g = g.TripleDES = e.extend({ + _doReset: function() { + var b = this._key.words; + this._des1 = m.createEncryptor(n.create(b.slice(0, 2))); + this._des2 = m.createEncryptor(n.create(b.slice(2, 4))); + this._des3 = m.createEncryptor(n.create(b.slice(4, 6))) + }, + encryptBlock: function(b, c) { + this._des1.encryptBlock(b, c); + this._des2.decryptBlock(b, c); + this._des3.encryptBlock(b, c) + }, + decryptBlock: function(b, c) { + this._des3.decryptBlock(b, c); + this._des2.encryptBlock(b, c); + this._des1.decryptBlock(b, c) + }, + keySize: 6, + ivSize: 2, + blockSize: 2 + }); + h.TripleDES = e._createHelper(g) +} +)(); + From 66fa4217b4a036c93df72380cf8f175b6bd8a29a Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: Thu, 9 Apr 2020 17:24:55 +0800 Subject: [PATCH 04/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tapd.js" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "TAPD347円231円273円345円275円225円AES345円212円240円345円257円206円/tapd.js" => "05-TAPD347円231円273円345円275円225円AES345円212円240円345円257円206円/tapd.js" (100%) diff --git "a/TAPD347円231円273円345円275円225円AES345円212円240円345円257円206円/tapd.js" "b/05-TAPD347円231円273円345円275円225円AES345円212円240円345円257円206円/tapd.js" similarity index 100% rename from "TAPD347円231円273円345円275円225円AES345円212円240円345円257円206円/tapd.js" rename to "05-TAPD347円231円273円345円275円225円AES345円212円240円345円257円206円/tapd.js" From 3feadd26805787d2cdd7d79a06ef6f568d642160 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: Thu, 9 Apr 2020 17:55:13 +0800 Subject: [PATCH 05/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tapd.py" | 37 +++++++++++++++++++ .../tapd.py" | 35 ------------------ 2 files changed, 37 insertions(+), 35 deletions(-) create mode 100644 "05-TAPD347円231円273円345円275円225円AES345円212円240円345円257円206円/tapd.py" delete mode 100644 "TAPD347円231円273円345円275円225円AES345円212円240円345円257円206円/tapd.py" diff --git "a/05-TAPD347円231円273円345円275円225円AES345円212円240円345円257円206円/tapd.py" "b/05-TAPD347円231円273円345円275円225円AES345円212円240円345円257円206円/tapd.py" new file mode 100644 index 0000000..42c2fe4 --- /dev/null +++ "b/05-TAPD347円231円273円345円275円225円AES345円212円240円345円257円206円/tapd.py" @@ -0,0 +1,37 @@ +# https://www.tapd.cn/cloud_logins/login TAPD登录 + +import execjs, requests, json + + +def encrypt(content): + with open("tapd.js", "r", encoding='utf8') as f: + ctx = execjs.compile(f.read()) + datas = json.loads(ctx.call("aes", content)) + return datas + + +headers = { + 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36', + 'Referer': 'https://www.tapd.cn/cloud_logins/login' +} + +datas = encrypt("Aa123456") +data = { + 'data[Login][ref]': 'https://www.tapd.cn/my_worktable', + 'data[Login][encrypt_key]': datas['encrypt_key'], + 'data[Login][encrypt_iv]': datas['encrypt_iv'], + 'data[Login][site]': 'TAPD', + 'data[Login][via]': 'encrypt_password', + 'data[Login][email]': '17109324205', + 'data[Login][password]': datas['password'], + 'data[Login][code]': '', # 验证码,一般正确的账号密码不需要 + 'data[Login][login]': 'login', + 'dsc_token': datas['dsc_token'], +} +response = requests.post('https://www.tapd.cn/cloud_logins/login', headers=headers, data=data) +# print(response.text) + +if "退出登录" in response.text: + print("登录成功") +else: + print("登录失败") diff --git "a/TAPD347円231円273円345円275円225円AES345円212円240円345円257円206円/tapd.py" "b/TAPD347円231円273円345円275円225円AES345円212円240円345円257円206円/tapd.py" deleted file mode 100644 index a037e55..0000000 --- "a/TAPD347円231円273円345円275円225円AES345円212円240円345円257円206円/tapd.py" +++ /dev/null @@ -1,35 +0,0 @@ -# https://www.tapd.cn/cloud_logins/login TAPD登录 - -import execjs, requests, json - - -def encrypt(content): - with open("tapd.js", "r") as f: - ctx = execjs.compile(f.read()) - datas = json.loads(ctx.call("aes", content)) - return datas - - -headers = { - 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36', -} - -datas = encrypt("Aa123456") -data = { - 'data[Login][ref]': 'https://www.tapd.cn/my_worktable', - 'data[Login][encrypt_key]': datas['encrypt_key'], - 'data[Login][encrypt_iv]': datas['encrypt_iv'], - 'data[Login][site]': 'TAPD', - 'data[Login][via]': 'encrypt_password', - 'data[Login][email]': '17109324205', - 'data[Login][password]': datas['password'], - 'data[Login][code]': '', # 验证码,一般正确的账号密码不需要 - 'data[Login][login]': 'login', - 'dsc_token': datas['dsc_token'], -} - -response = requests.post('https://www.tapd.cn/cloud_logins/login', headers=headers, data=data) -if "退出登录" in response.text: - print("登录成功") -else: - print("登录失败") From e11f28ecc34d42f7a9e396f70919e384ca3a174b Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:13:48 +0800 Subject: [PATCH 06/59] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 45a94b6..7ee039e 100644 --- a/README.md +++ b/README.md @@ -12,3 +12,4 @@ JS逆向实战、教程持续更新,欢迎star,求关注公众号"逆向 - [x] [【安徽省招投标】sojson.v5还原详解及练手](https://mp.weixin.qq.com/s/YOY7EUTETF9KPU8X03B6uQ) - [x] [【合肥市房产信息平台、百变IP】面向小白之eval混淆](https://mp.weixin.qq.com/s/c_-yghD8sEqgaeLO8NfkgQ) - [x] [【安徽省雨水情监视平台】一个简单易懂的练手网站](https://mp.weixin.qq.com/s/IgaU9dzLcRzCk97Qs7phYA) +- [x] [【TAPD模拟登录】非常简单的AES加密练手网站](https://mp.weixin.qq.com/s/vF3P-PBZz-qkxTGJkiQONg) From dbaa8671b217963751d0d476ea7b27e0e86afd1e Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:17:28 +0800 Subject: [PATCH 07/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tc58.js" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "58345円220円214円345円237円216円347円231円273円345円275円225円/tc58.js" => "06-58345円220円214円345円237円216円347円231円273円345円275円225円(RSA)/tc58.js" (100%) diff --git "a/58345円220円214円345円237円216円347円231円273円345円275円225円/tc58.js" "b/06-58345円220円214円345円237円216円347円231円273円345円275円225円(RSA)/tc58.js" similarity index 100% rename from "58345円220円214円345円237円216円347円231円273円345円275円225円/tc58.js" rename to "06-58345円220円214円345円237円216円347円231円273円345円275円225円(RSA)/tc58.js" From b4ecca7f536eebb19670259e1c7cbb7c0b6a5304 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:18:09 +0800 Subject: [PATCH 08/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tc58.py" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "58345円220円214円345円237円216円347円231円273円345円275円225円/tc58.py" => "06-58345円220円214円345円237円216円347円231円273円345円275円225円(RSA)/tc58.py" (100%) diff --git "a/58345円220円214円345円237円216円347円231円273円345円275円225円/tc58.py" "b/06-58345円220円214円345円237円216円347円231円273円345円275円225円(RSA)/tc58.py" similarity index 100% rename from "58345円220円214円345円237円216円347円231円273円345円275円225円/tc58.py" rename to "06-58345円220円214円345円237円216円347円231円273円345円275円225円(RSA)/tc58.py" From 454a925348f8aa7674e8494dadf16d2b68f8419a Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:19:42 +0800 Subject: [PATCH 09/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qmsj.js" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "344円270円203円351円272円246円346円225円260円346円215円256円JS351円200円206円345円220円221円/qmsj.js" => "07-344円270円203円351円272円246円346円225円260円346円215円256円JS351円200円206円345円220円221円/qmsj.js" (100%) diff --git "a/344円270円203円351円272円246円346円225円260円346円215円256円JS351円200円206円345円220円221円/qmsj.js" "b/07-344円270円203円351円272円246円346円225円260円346円215円256円JS351円200円206円345円220円221円/qmsj.js" similarity index 100% rename from "344円270円203円351円272円246円346円225円260円346円215円256円JS351円200円206円345円220円221円/qmsj.js" rename to "07-344円270円203円351円272円246円346円225円260円346円215円256円JS351円200円206円345円220円221円/qmsj.js" From 7d473d7d34156d7bbe1c052ba434e87306b8c869 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:20:06 +0800 Subject: [PATCH 10/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qmsj.py" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "344円270円203円351円272円246円346円225円260円346円215円256円JS351円200円206円345円220円221円/qmsj.py" => "07-344円270円203円351円272円246円346円225円260円346円215円256円JS351円200円206円345円220円221円/qmsj.py" (100%) diff --git "a/344円270円203円351円272円246円346円225円260円346円215円256円JS351円200円206円345円220円221円/qmsj.py" "b/07-344円270円203円351円272円246円346円225円260円346円215円256円JS351円200円206円345円220円221円/qmsj.py" similarity index 100% rename from "344円270円203円351円272円246円346円225円260円346円215円256円JS351円200円206円345円220円221円/qmsj.py" rename to "07-344円270円203円351円272円246円346円225円260円346円215円256円JS351円200円206円345円220円221円/qmsj.py" From 42b6a4fc25d8d18ceb0304492c6ac18a6996c7b4 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:20:44 +0800 Subject: [PATCH 11/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dns(Python).py" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "345円270円235円346円201円251円346円200円235円347円231円273円345円275円225円AES345円212円240円345円257円206円/dns(Python).py" => "08-345円270円235円346円201円251円346円200円235円347円231円273円345円275円225円(AES)/dns(Python).py" (100%) diff --git "a/345円270円235円346円201円251円346円200円235円347円231円273円345円275円225円AES345円212円240円345円257円206円/dns(Python).py" "b/08-345円270円235円346円201円251円346円200円235円347円231円273円345円275円225円(AES)/dns(Python).py" similarity index 100% rename from "345円270円235円346円201円251円346円200円235円347円231円273円345円275円225円AES345円212円240円345円257円206円/dns(Python).py" rename to "08-345円270円235円346円201円251円346円200円235円347円231円273円345円275円225円(AES)/dns(Python).py" From 10e94c30251165b546846b0d850e5418a5c8bdb7 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:21:18 +0800 Subject: [PATCH 12/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dns.js" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "345円270円235円346円201円251円346円200円235円347円231円273円345円275円225円AES345円212円240円345円257円206円/dns.js" => "08-345円270円235円346円201円251円346円200円235円347円231円273円345円275円225円(AES)/dns.js" (100%) diff --git "a/345円270円235円346円201円251円346円200円235円347円231円273円345円275円225円AES345円212円240円345円257円206円/dns.js" "b/08-345円270円235円346円201円251円346円200円235円347円231円273円345円275円225円(AES)/dns.js" similarity index 100% rename from "345円270円235円346円201円251円346円200円235円347円231円273円345円275円225円AES345円212円240円345円257円206円/dns.js" rename to "08-345円270円235円346円201円251円346円200円235円347円231円273円345円275円225円(AES)/dns.js" From ca158889c12e42a479502c88797bf1aa1ab2678d Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:21:46 +0800 Subject: [PATCH 13/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dns.py" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "345円270円235円346円201円251円346円200円235円347円231円273円345円275円225円AES345円212円240円345円257円206円/dns.py" => "08-345円270円235円346円201円251円346円200円235円347円231円273円345円275円225円(AES)/dns.py" (100%) diff --git "a/345円270円235円346円201円251円346円200円235円347円231円273円345円275円225円AES345円212円240円345円257円206円/dns.py" "b/08-345円270円235円346円201円251円346円200円235円347円231円273円345円275円225円(AES)/dns.py" similarity index 100% rename from "345円270円235円346円201円251円346円200円235円347円231円273円345円275円225円AES345円212円240円345円257円206円/dns.py" rename to "08-345円270円235円346円201円251円346円200円235円347円231円273円345円275円225円(AES)/dns.py" From 4fc280f9f34329afd48285e5b6743e60fed9fbf2 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:23:07 +0800 Subject: [PATCH 14/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../skzx.js" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "346円200円235円351円205円267円345円234円250円347円272円277円RSA345円212円240円345円257円206円/skzx.js" => "09-346円200円235円351円205円267円345円234円250円347円272円277円(RSA)/skzx.js" (100%) diff --git "a/346円200円235円351円205円267円345円234円250円347円272円277円RSA345円212円240円345円257円206円/skzx.js" "b/09-346円200円235円351円205円267円345円234円250円347円272円277円(RSA)/skzx.js" similarity index 100% rename from "346円200円235円351円205円267円345円234円250円347円272円277円RSA345円212円240円345円257円206円/skzx.js" rename to "09-346円200円235円351円205円267円345円234円250円347円272円277円(RSA)/skzx.js" From 6071d4033a1e067a291e78daaca652559c51b13b Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:23:49 +0800 Subject: [PATCH 15/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../skzx.py" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "346円200円235円351円205円267円345円234円250円347円272円277円RSA345円212円240円345円257円206円/skzx.py" => "09-346円200円235円351円205円267円345円234円250円347円272円277円(RSA)/skzx.py" (100%) diff --git "a/346円200円235円351円205円267円345円234円250円347円272円277円RSA345円212円240円345円257円206円/skzx.py" "b/09-346円200円235円351円205円267円345円234円250円347円272円277円(RSA)/skzx.py" similarity index 100% rename from "346円200円235円351円205円267円345円234円250円347円272円277円RSA345円212円240円345円257円206円/skzx.py" rename to "09-346円200円235円351円205円267円345円234円250円347円272円277円(RSA)/skzx.py" From 1e5aaeae90975c3b945102163636e832dc8c96be Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:24:22 +0800 Subject: [PATCH 16/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sinalogin.js" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "346円226円260円346円265円252円345円276円256円345円215円232円347円231円273円345円275円225円RSA345円212円240円345円257円206円/sinalogin.js" => "10-346円226円260円346円265円252円345円276円256円345円215円232円347円231円273円345円275円225円(RSA)/sinalogin.js" (100%) diff --git "a/346円226円260円346円265円252円345円276円256円345円215円232円347円231円273円345円275円225円RSA345円212円240円345円257円206円/sinalogin.js" "b/10-346円226円260円346円265円252円345円276円256円345円215円232円347円231円273円345円275円225円(RSA)/sinalogin.js" similarity index 100% rename from "346円226円260円346円265円252円345円276円256円345円215円232円347円231円273円345円275円225円RSA345円212円240円345円257円206円/sinalogin.js" rename to "10-346円226円260円346円265円252円345円276円256円345円215円232円347円231円273円345円275円225円(RSA)/sinalogin.js" From 74ca39b8221dbdbc2b9d76006c57120c25606620 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:24:48 +0800 Subject: [PATCH 17/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sinalogin.py" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "346円226円260円346円265円252円345円276円256円345円215円232円347円231円273円345円275円225円RSA345円212円240円345円257円206円/sinalogin.py" => "10-346円226円260円346円265円252円345円276円256円345円215円232円347円231円273円345円275円225円(RSA)/sinalogin.py" (100%) diff --git "a/346円226円260円346円265円252円345円276円256円345円215円232円347円231円273円345円275円225円RSA345円212円240円345円257円206円/sinalogin.py" "b/10-346円226円260円346円265円252円345円276円256円345円215円232円347円231円273円345円275円225円(RSA)/sinalogin.py" similarity index 100% rename from "346円226円260円346円265円252円345円276円256円345円215円232円347円231円273円345円275円225円RSA345円212円240円345円257円206円/sinalogin.py" rename to "10-346円226円260円346円265円252円345円276円256円345円215円232円347円231円273円345円275円225円(RSA)/sinalogin.py" From 38369878f036ce4f71aa7a0bd786fc330054773e Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:25:26 +0800 Subject: [PATCH 18/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yiban.py" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "346円230円223円347円217円255円347円231円273円345円275円225円RSA345円212円240円345円257円206円/yiban.py" => "11-346円230円223円347円217円255円347円231円273円345円275円225円(RSA)/yiban.py" (100%) diff --git "a/346円230円223円347円217円255円347円231円273円345円275円225円RSA345円212円240円345円257円206円/yiban.py" "b/11-346円230円223円347円217円255円347円231円273円345円275円225円(RSA)/yiban.py" similarity index 100% rename from "346円230円223円347円217円255円347円231円273円345円275円225円RSA345円212円240円345円257円206円/yiban.py" rename to "11-346円230円223円347円217円255円347円231円273円345円275円225円(RSA)/yiban.py" From c6c29999b76ce59f78c66829b48ff1dad621313e Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:26:14 +0800 Subject: [PATCH 19/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../aqi.py" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円aqi/aqi.py" => "12-347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円/aqi.py" (100%) diff --git "a/347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円aqi/aqi.py" "b/12-347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円/aqi.py" similarity index 100% rename from "347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円aqi/aqi.py" rename to "12-347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円/aqi.py" From 885740ef0910f8d164093ecb1f3100d0aa07fe04 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:26:44 +0800 Subject: [PATCH 20/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../aqi.js" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円aqi/aqi.js" => "12-347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円/aqi.js" (100%) diff --git "a/347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円aqi/aqi.js" "b/12-347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円/aqi.js" similarity index 100% rename from "347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円aqi/aqi.js" rename to "12-347円251円272円346円260円224円350円264円250円351円207円217円345円216円206円345円217円262円346円225円260円346円215円256円/aqi.js" From a1c51ffed7a46667204446bf0c774e51594105f1 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:27:40 +0800 Subject: [PATCH 21/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../music163(Python).py" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "347円275円221円346円230円223円344円272円221円351円237円263円344円271円220円350円257円204円350円256円272円AES345円222円214円RSA345円212円240円345円257円206円/music163(Python).py" => "13-347円275円221円346円230円223円344円272円221円351円237円263円344円271円220円350円257円204円350円256円272円(AES343円200円201円RSA)/music163(Python).py" (100%) diff --git "a/347円275円221円346円230円223円344円272円221円351円237円263円344円271円220円350円257円204円350円256円272円AES345円222円214円RSA345円212円240円345円257円206円/music163(Python).py" "b/13-347円275円221円346円230円223円344円272円221円351円237円263円344円271円220円350円257円204円350円256円272円(AES343円200円201円RSA)/music163(Python).py" similarity index 100% rename from "347円275円221円346円230円223円344円272円221円351円237円263円344円271円220円350円257円204円350円256円272円AES345円222円214円RSA345円212円240円345円257円206円/music163(Python).py" rename to "13-347円275円221円346円230円223円344円272円221円351円237円263円344円271円220円350円257円204円350円256円272円(AES343円200円201円RSA)/music163(Python).py" From c38f0adc01d377e858399f4458bc11118469b552 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:28:13 +0800 Subject: [PATCH 22/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../music163.js" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "347円275円221円346円230円223円344円272円221円351円237円263円344円271円220円350円257円204円350円256円272円AES345円222円214円RSA345円212円240円345円257円206円/music163.js" => "13-347円275円221円346円230円223円344円272円221円351円237円263円344円271円220円350円257円204円350円256円272円(AES343円200円201円RSA)/music163.js" (100%) diff --git "a/347円275円221円346円230円223円344円272円221円351円237円263円344円271円220円350円257円204円350円256円272円AES345円222円214円RSA345円212円240円345円257円206円/music163.js" "b/13-347円275円221円346円230円223円344円272円221円351円237円263円344円271円220円350円257円204円350円256円272円(AES343円200円201円RSA)/music163.js" similarity index 100% rename from "347円275円221円346円230円223円344円272円221円351円237円263円344円271円220円350円257円204円350円256円272円AES345円222円214円RSA345円212円240円345円257円206円/music163.js" rename to "13-347円275円221円346円230円223円344円272円221円351円237円263円344円271円220円350円257円204円350円256円272円(AES343円200円201円RSA)/music163.js" From ca1346c244824f7c832675bd53ce6a27ce9b941b Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:28:45 +0800 Subject: [PATCH 23/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../music163.py" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "347円275円221円346円230円223円344円272円221円351円237円263円344円271円220円350円257円204円350円256円272円AES345円222円214円RSA345円212円240円345円257円206円/music163.py" => "13-347円275円221円346円230円223円344円272円221円351円237円263円344円271円220円350円257円204円350円256円272円(AES343円200円201円RSA)/music163.py" (100%) diff --git "a/347円275円221円346円230円223円344円272円221円351円237円263円344円271円220円350円257円204円350円256円272円AES345円222円214円RSA345円212円240円345円257円206円/music163.py" "b/13-347円275円221円346円230円223円344円272円221円351円237円263円344円271円220円350円257円204円350円256円272円(AES343円200円201円RSA)/music163.py" similarity index 100% rename from "347円275円221円346円230円223円344円272円221円351円237円263円344円271円220円350円257円204円350円256円272円AES345円222円214円RSA345円212円240円345円257円206円/music163.py" rename to "13-347円275円221円346円230円223円344円272円221円351円237円263円344円271円220円350円257円204円350円256円272円(AES343円200円201円RSA)/music163.py" From c07ecfacb4aa70353de74e71c392a86523c0360b Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:29:10 +0800 Subject: [PATCH 24/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yld.py" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "347円277円274円351円276円231円350円264円267円347円231円273円345円275円225円DES345円212円240円345円257円206円/yld.py" => "14-347円277円274円351円276円231円350円264円267円347円231円273円345円275円225円(DES)/yld.py" (100%) diff --git "a/347円277円274円351円276円231円350円264円267円347円231円273円345円275円225円DES345円212円240円345円257円206円/yld.py" "b/14-347円277円274円351円276円231円350円264円267円347円231円273円345円275円225円(DES)/yld.py" similarity index 100% rename from "347円277円274円351円276円231円350円264円267円347円231円273円345円275円225円DES345円212円240円345円257円206円/yld.py" rename to "14-347円277円274円351円276円231円350円264円267円347円231円273円345円275円225円(DES)/yld.py" From f4f8467966ac8dfc9fdd36bc67945708a2538415 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:29:45 +0800 Subject: [PATCH 25/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yld.js" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "347円277円274円351円276円231円350円264円267円347円231円273円345円275円225円DES345円212円240円345円257円206円/yld.js" => "14-347円277円274円351円276円231円350円264円267円347円231円273円345円275円225円(DES)/yld.js" (100%) diff --git "a/347円277円274円351円276円231円350円264円267円347円231円273円345円275円225円DES345円212円240円345円257円206円/yld.js" "b/14-347円277円274円351円276円231円350円264円267円347円231円273円345円275円225円(DES)/yld.js" similarity index 100% rename from "347円277円274円351円276円231円350円264円267円347円231円273円345円275円225円DES345円212円240円345円257円206円/yld.js" rename to "14-347円277円274円351円276円231円350円264円267円347円231円273円345円275円225円(DES)/yld.js" From b3a7fb54a307420fdb1a519d43e9db50265a2159 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:30:14 +0800 Subject: [PATCH 26/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ljs.js" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "351円231円206円351円207円221円346円211円200円347円231円273円345円275円225円RSA/ljs.js" => "15-351円231円206円351円207円221円346円211円200円347円231円273円345円275円225円(RSA)/ljs.js" (100%) diff --git "a/351円231円206円351円207円221円346円211円200円347円231円273円345円275円225円RSA/ljs.js" "b/15-351円231円206円351円207円221円346円211円200円347円231円273円345円275円225円(RSA)/ljs.js" similarity index 100% rename from "351円231円206円351円207円221円346円211円200円347円231円273円345円275円225円RSA/ljs.js" rename to "15-351円231円206円351円207円221円346円211円200円347円231円273円345円275円225円(RSA)/ljs.js" From c2023a3dc747143f24595bf5e305c2bb4f3be1bc Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:30:38 +0800 Subject: [PATCH 27/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ljs.py" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "351円231円206円351円207円221円346円211円200円347円231円273円345円275円225円RSA/ljs.py" => "15-351円231円206円351円207円221円346円211円200円347円231円273円345円275円225円(RSA)/ljs.py" (100%) diff --git "a/351円231円206円351円207円221円346円211円200円347円231円273円345円275円225円RSA/ljs.py" "b/15-351円231円206円351円207円221円346円211円200円347円231円273円345円275円225円(RSA)/ljs.py" similarity index 100% rename from "351円231円206円351円207円221円346円211円200円347円231円273円345円275円225円RSA/ljs.py" rename to "15-351円231円206円351円207円221円346円211円200円347円231円273円345円275円225円(RSA)/ljs.py" From 85a57b186eca82bb64fbb7bd3da11aa15c985b77 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:31:31 +0800 Subject: [PATCH 28/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lingduIP(Python).py" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "351円233円266円345円272円246円IP/lingduIP(Python).py" => "16-351円233円266円345円272円246円IP(md5)/lingduIP(Python).py" (100%) diff --git "a/351円233円266円345円272円246円IP/lingduIP(Python).py" "b/16-351円233円266円345円272円246円IP(md5)/lingduIP(Python).py" similarity index 100% rename from "351円233円266円345円272円246円IP/lingduIP(Python).py" rename to "16-351円233円266円345円272円246円IP(md5)/lingduIP(Python).py" From f3e27a3e3bb45a60035be83844125242941e2bfa Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:31:58 +0800 Subject: [PATCH 29/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lingduIP.js" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "351円233円266円345円272円246円IP/lingduIP.js" => "16-351円233円266円345円272円246円IP(md5)/lingduIP.js" (100%) diff --git "a/351円233円266円345円272円246円IP/lingduIP.js" "b/16-351円233円266円345円272円246円IP(md5)/lingduIP.js" similarity index 100% rename from "351円233円266円345円272円246円IP/lingduIP.js" rename to "16-351円233円266円345円272円246円IP(md5)/lingduIP.js" From a025d078f670522dfe2bab0eb627af8eaba3e735 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:32:21 +0800 Subject: [PATCH 30/59] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lingduIP.py" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "351円233円266円345円272円246円IP/lingduIP.py" => "16-351円233円266円345円272円246円IP(md5)/lingduIP.py" (100%) diff --git "a/351円233円266円345円272円246円IP/lingduIP.py" "b/16-351円233円266円345円272円246円IP(md5)/lingduIP.py" similarity index 100% rename from "351円233円266円345円272円246円IP/lingduIP.py" rename to "16-351円233円266円345円272円246円IP(md5)/lingduIP.py" From 0d13f1c211f8d52c55fe5193d2ec0c2b939dd73f Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 09:43:38 +0800 Subject: [PATCH 31/59] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 7ee039e..0de06a3 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,6 @@ JS逆向实战、教程持续更新,欢迎star,求关注公众号"逆向 ## 代码配套教程 -- [x] [【安徽省招投标】sojson.v5还原详解及练手](https://mp.weixin.qq.com/s/YOY7EUTETF9KPU8X03B6uQ) - [x] [【合肥市房产信息平台、百变IP】面向小白之eval混淆](https://mp.weixin.qq.com/s/c_-yghD8sEqgaeLO8NfkgQ) - [x] [【安徽省雨水情监视平台】一个简单易懂的练手网站](https://mp.weixin.qq.com/s/IgaU9dzLcRzCk97Qs7phYA) - [x] [【TAPD模拟登录】非常简单的AES加密练手网站](https://mp.weixin.qq.com/s/vF3P-PBZz-qkxTGJkiQONg) From b50667d5b5a23c4693cd6779b1bcd9cc3530fbef Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 10:41:22 +0800 Subject: [PATCH 32/59] Create maomaozu.py --- .../maomaozu.py" | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 "17-346円257円233円346円257円233円347円247円237円(AES)/maomaozu.py" diff --git "a/17-346円257円233円346円257円233円347円247円237円(AES)/maomaozu.py" "b/17-346円257円233円346円257円233円347円247円237円(AES)/maomaozu.py" new file mode 100644 index 0000000..fab507d --- /dev/null +++ "b/17-346円257円233円346円257円233円347円247円237円(AES)/maomaozu.py" @@ -0,0 +1,36 @@ +import requests, execjs, time, json + + +headers = { + "User-Agent": "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36" +} +with open("maomaozu.js", "r", encoding="utf-8") as f: + ctx = execjs.compile(f.read()) + + +def encrypt(data): + result = json.dumps(data) + result = ctx.call("encrypt", result) + return result + + +def decrypt(response): + result = ctx.call("decrypt", response) + return json.loads(result) + + +def get_page(page): + data = { + "Type": 0, + "page": page, + "expire": int(time.time()*1000) + } + data = encrypt(data) + print(data) + url = "https://www.maomaozu.com/index/build.json" + res = requests.post(url, headers=headers, data=data) + result = decrypt(res.text) + print(result) + + +get_page(5) From 3e190d4c0e427c1541dcaa6ae268e536102d7919 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月10日 10:43:52 +0800 Subject: [PATCH 33/59] Create maomaozu.js --- .../maomaozu.js" | 6017 +++++++++++++++++ 1 file changed, 6017 insertions(+) create mode 100644 "17-346円257円233円346円257円233円347円247円237円(AES)/maomaozu.js" diff --git "a/17-346円257円233円346円257円233円347円247円237円(AES)/maomaozu.js" "b/17-346円257円233円346円257円233円347円247円237円(AES)/maomaozu.js" new file mode 100644 index 0000000..65609b4 --- /dev/null +++ "b/17-346円257円233円346円257円233円347円247円237円(AES)/maomaozu.js" @@ -0,0 +1,6017 @@ +var CryptoJS = CryptoJS || (function (Math, undefined) { + /* + * Local polyfil of Object.create + */ + var create = Object.create || (function () { + function F() {}; + + return function (obj) { + var subtype; + + F.prototype = obj; + + subtype = new F(); + + F.prototype = null; + + return subtype; + }; + }()) + + /** + * CryptoJS namespace. + */ + var C = {}; + + /** + * Library namespace. + */ + var C_lib = C.lib = {}; + + /** + * Base object for prototypal inheritance. + */ + var Base = C_lib.Base = (function () { + + + return { + /** + * Creates a new object that inherits from this object. + * + * @param {Object} overrides Properties to copy into the new object. + * + * @return {Object} The new object. + * + * @static + * + * @example + * + * var MyType = CryptoJS.lib.Base.extend({ + * field: 'value', + * + * method: function () { + * } + * }); + */ + extend: function (overrides) { + // Spawn + var subtype = create(this); + + // Augment + if (overrides) { + subtype.mixIn(overrides); + } + + // Create default initializer + if (!subtype.hasOwnProperty('init') || this.init === subtype.init) { + subtype.init = function () { + subtype.$super.init.apply(this, arguments); + }; + } + + // Initializer's prototype is the subtype object + subtype.init.prototype = subtype; + + // Reference supertype + subtype.$super = this; + + return subtype; + }, + + /** + * Extends this object and runs the init method. + * Arguments to create() will be passed to init(). + * + * @return {Object} The new object. + * + * @static + * + * @example + * + * var instance = MyType.create(); + */ + create: function () { + var instance = this.extend(); + instance.init.apply(instance, arguments); + + return instance; + }, + + /** + * Initializes a newly created object. + * Override this method to add some logic when your objects are created. + * + * @example + * + * var MyType = CryptoJS.lib.Base.extend({ + * init: function () { + * // ... + * } + * }); + */ + init: function () { + }, + + /** + * Copies properties into this object. + * + * @param {Object} properties The properties to mix in. + * + * @example + * + * MyType.mixIn({ + * field: 'value' + * }); + */ + mixIn: function (properties) { + for (var propertyName in properties) { + if (properties.hasOwnProperty(propertyName)) { + this[propertyName] = properties[propertyName]; + } + } + + // IE won't copy toString using the loop above + if (properties.hasOwnProperty('toString')) { + this.toString = properties.toString; + } + }, + + /** + * Creates a copy of this object. + * + * @return {Object} The clone. + * + * @example + * + * var clone = instance.clone(); + */ + clone: function () { + return this.init.prototype.extend(this); + } + }; + }()); + + /** + * An array of 32-bit words. + * + * @property {Array} words The array of 32-bit words. + * @property {number} sigBytes The number of significant bytes in this word array. + */ + var WordArray = C_lib.WordArray = Base.extend({ + /** + * Initializes a newly created word array. + * + * @param {Array} words (Optional) An array of 32-bit words. + * @param {number} sigBytes (Optional) The number of significant bytes in the words. + * + * @example + * + * var wordArray = CryptoJS.lib.WordArray.create(); + * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]); + * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6); + */ + init: function (words, sigBytes) { + words = this.words = words || []; + + if (sigBytes != undefined) { + this.sigBytes = sigBytes; + } else { + this.sigBytes = words.length * 4; + } + }, + + /** + * Converts this word array to a string. + * + * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex + * + * @return {string} The stringified word array. + * + * @example + * + * var string = wordArray + ''; + * var string = wordArray.toString(); + * var string = wordArray.toString(CryptoJS.enc.Utf8); + */ + toString: function (encoder) { + return (encoder || Hex).stringify(this); + }, + + /** + * Concatenates a word array to this word array. + * + * @param {WordArray} wordArray The word array to append. + * + * @return {WordArray} This word array. + * + * @example + * + * wordArray1.concat(wordArray2); + */ + concat: function (wordArray) { + // Shortcuts + var thisWords = this.words; + var thatWords = wordArray.words; + var thisSigBytes = this.sigBytes; + var thatSigBytes = wordArray.sigBytes; + + // Clamp excess bits + this.clamp(); + + // Concat + if (thisSigBytes % 4) { + // Copy one byte at a time + for (var i = 0; i < thatSigBytes; i++) { + var thatByte = (thatWords[i>>> 2]>>> (24 - (i % 4) * 8)) & 0xff; + thisWords[(thisSigBytes + i)>>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8); + } + } else { + // Copy one word at a time + for (var i = 0; i < thatSigBytes; i += 4) { + thisWords[(thisSigBytes + i)>>> 2] = thatWords[i>>> 2]; + } + } + this.sigBytes += thatSigBytes; + + // Chainable + return this; + }, + + /** + * Removes insignificant bits. + * + * @example + * + * wordArray.clamp(); + */ + clamp: function () { + // Shortcuts + var words = this.words; + var sigBytes = this.sigBytes; + + // Clamp + words[sigBytes>>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8); + words.length = Math.ceil(sigBytes / 4); + }, + + /** + * Creates a copy of this word array. + * + * @return {WordArray} The clone. + * + * @example + * + * var clone = wordArray.clone(); + */ + clone: function () { + var clone = Base.clone.call(this); + clone.words = this.words.slice(0); + + return clone; + }, + + /** + * Creates a word array filled with random bytes. + * + * @param {number} nBytes The number of random bytes to generate. + * + * @return {WordArray} The random word array. + * + * @static + * + * @example + * + * var wordArray = CryptoJS.lib.WordArray.random(16); + */ + random: function (nBytes) { + var words = []; + + var r = (function (m_w) { + var m_w = m_w; + var m_z = 0x3ade68b1; + var mask = 0xffffffff; + + return function () { + m_z = (0x9069 * (m_z & 0xFFFF) + (m_z>> 0x10)) & mask; + m_w = (0x4650 * (m_w & 0xFFFF) + (m_w>> 0x10)) & mask; + var result = ((m_z << 0x10) + m_w) & mask; + result /= 0x100000000; + result += 0.5; + return result * (Math.random()> .5 ? 1 : -1); + } + }); + + for (var i = 0, rcache; i < nBytes; i += 4) { + var _r = r((rcache || Math.random()) * 0x100000000); + + rcache = _r() * 0x3ade67b7; + words.push((_r() * 0x100000000) | 0); + } + + return new WordArray.init(words, nBytes); + } + }); + + /** + * Encoder namespace. + */ + var C_enc = C.enc = {}; + + /** + * Hex encoding strategy. + */ + var Hex = C_enc.Hex = { + /** + * Converts a word array to a hex string. + * + * @param {WordArray} wordArray The word array. + * + * @return {string} The hex string. + * + * @static + * + * @example + * + * var hexString = CryptoJS.enc.Hex.stringify(wordArray); + */ + stringify: function (wordArray) { + // Shortcuts + var words = wordArray.words; + var sigBytes = wordArray.sigBytes; + + // Convert + var hexChars = []; + for (var i = 0; i < sigBytes; i++) { + var bite = (words[i>>> 2]>>> (24 - (i % 4) * 8)) & 0xff; + hexChars.push((bite>>> 4).toString(16)); + hexChars.push((bite & 0x0f).toString(16)); + } + + return hexChars.join(''); + }, + + /** + * Converts a hex string to a word array. + * + * @param {string} hexStr The hex string. + * + * @return {WordArray} The word array. + * + * @static + * + * @example + * + * var wordArray = CryptoJS.enc.Hex.parse(hexString); + */ + parse: function (hexStr) { + // Shortcut + var hexStrLength = hexStr.length; + + // Convert + var words = []; + for (var i = 0; i < hexStrLength; i += 2) { + words[i>>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4); + } + + return new WordArray.init(words, hexStrLength / 2); + } + }; + + /** + * Latin1 encoding strategy. + */ + var Latin1 = C_enc.Latin1 = { + /** + * Converts a word array to a Latin1 string. + * + * @param {WordArray} wordArray The word array. + * + * @return {string} The Latin1 string. + * + * @static + * + * @example + * + * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray); + */ + stringify: function (wordArray) { + // Shortcuts + var words = wordArray.words; + var sigBytes = wordArray.sigBytes; + + // Convert + var latin1Chars = []; + for (var i = 0; i < sigBytes; i++) { + var bite = (words[i>>> 2]>>> (24 - (i % 4) * 8)) & 0xff; + latin1Chars.push(String.fromCharCode(bite)); + } + + return latin1Chars.join(''); + }, + + /** + * Converts a Latin1 string to a word array. + * + * @param {string} latin1Str The Latin1 string. + * + * @return {WordArray} The word array. + * + * @static + * + * @example + * + * var wordArray = CryptoJS.enc.Latin1.parse(latin1String); + */ + parse: function (latin1Str) { + // Shortcut + var latin1StrLength = latin1Str.length; + + // Convert + var words = []; + for (var i = 0; i < latin1StrLength; i++) { + words[i>>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8); + } + + return new WordArray.init(words, latin1StrLength); + } + }; + + /** + * UTF-8 encoding strategy. + */ + var Utf8 = C_enc.Utf8 = { + /** + * Converts a word array to a UTF-8 string. + * + * @param {WordArray} wordArray The word array. + * + * @return {string} The UTF-8 string. + * + * @static + * + * @example + * + * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray); + */ + stringify: function (wordArray) { + try { + return decodeURIComponent(escape(Latin1.stringify(wordArray))); + } catch (e) { + throw new Error('Malformed UTF-8 data'); + } + }, + + /** + * Converts a UTF-8 string to a word array. + * + * @param {string} utf8Str The UTF-8 string. + * + * @return {WordArray} The word array. + * + * @static + * + * @example + * + * var wordArray = CryptoJS.enc.Utf8.parse(utf8String); + */ + parse: function (utf8Str) { + return Latin1.parse(unescape(encodeURIComponent(utf8Str))); + } + }; + + /** + * Abstract buffered block algorithm template. + * + * The property blockSize must be implemented in a concrete subtype. + * + * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0 + */ + var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({ + /** + * Resets this block algorithm's data buffer to its initial state. + * + * @example + * + * bufferedBlockAlgorithm.reset(); + */ + reset: function () { + // Initial values + this._data = new WordArray.init(); + this._nDataBytes = 0; + }, + + /** + * Adds new data to this block algorithm's buffer. + * + * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8. + * + * @example + * + * bufferedBlockAlgorithm._append('data'); + * bufferedBlockAlgorithm._append(wordArray); + */ + _append: function (data) { + // Convert string to WordArray, else assume WordArray already + if (typeof data == 'string') { + data = Utf8.parse(data); + } + + // Append + this._data.concat(data); + this._nDataBytes += data.sigBytes; + }, + + /** + * Processes available data blocks. + * + * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype. + * + * @param {boolean} doFlush Whether all blocks and partial blocks should be processed. + * + * @return {WordArray} The processed data. + * + * @example + * + * var processedData = bufferedBlockAlgorithm._process(); + * var processedData = bufferedBlockAlgorithm._process(!!'flush'); + */ + _process: function (doFlush) { + // Shortcuts + var data = this._data; + var dataWords = data.words; + var dataSigBytes = data.sigBytes; + var blockSize = this.blockSize; + var blockSizeBytes = blockSize * 4; + + // Count blocks ready + var nBlocksReady = dataSigBytes / blockSizeBytes; + if (doFlush) { + // Round up to include partial blocks + nBlocksReady = Math.ceil(nBlocksReady); + } else { + // Round down to include only full blocks, + // less the number of blocks that must remain in the buffer + nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0); + } + + // Count words ready + var nWordsReady = nBlocksReady * blockSize; + + // Count bytes ready + var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes); + + // Process blocks + if (nWordsReady) { + for (var offset = 0; offset < nWordsReady; offset += blockSize) { + // Perform concrete-algorithm logic + this._doProcessBlock(dataWords, offset); + } + + // Remove processed words + var processedWords = dataWords.splice(0, nWordsReady); + data.sigBytes -= nBytesReady; + } + + // Return processed words + return new WordArray.init(processedWords, nBytesReady); + }, + + /** + * Creates a copy of this object. + * + * @return {Object} The clone. + * + * @example + * + * var clone = bufferedBlockAlgorithm.clone(); + */ + clone: function () { + var clone = Base.clone.call(this); + clone._data = this._data.clone(); + + return clone; + }, + + _minBufferSize: 0 + }); + + /** + * Abstract hasher template. + * + * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits) + */ + var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({ + /** + * Configuration options. + */ + cfg: Base.extend(), + + /** + * Initializes a newly created hasher. + * + * @param {Object} cfg (Optional) The configuration options to use for this hash computation. + * + * @example + * + * var hasher = CryptoJS.algo.SHA256.create(); + */ + init: function (cfg) { + // Apply config defaults + this.cfg = this.cfg.extend(cfg); + + // Set initial values + this.reset(); + }, + + /** + * Resets this hasher to its initial state. + * + * @example + * + * hasher.reset(); + */ + reset: function () { + // Reset data buffer + BufferedBlockAlgorithm.reset.call(this); + + // Perform concrete-hasher logic + this._doReset(); + }, + + /** + * Updates this hasher with a message. + * + * @param {WordArray|string} messageUpdate The message to append. + * + * @return {Hasher} This hasher. + * + * @example + * + * hasher.update('message'); + * hasher.update(wordArray); + */ + update: function (messageUpdate) { + // Append + this._append(messageUpdate); + + // Update the hash + this._process(); + + // Chainable + return this; + }, + + /** + * Finalizes the hash computation. + * Note that the finalize operation is effectively a destructive, read-once operation. + * + * @param {WordArray|string} messageUpdate (Optional) A final message update. + * + * @return {WordArray} The hash. + * + * @example + * + * var hash = hasher.finalize(); + * var hash = hasher.finalize('message'); + * var hash = hasher.finalize(wordArray); + */ + finalize: function (messageUpdate) { + // Final message update + if (messageUpdate) { + this._append(messageUpdate); + } + + // Perform concrete-hasher logic + var hash = this._doFinalize(); + + return hash; + }, + + blockSize: 512/32, + + /** + * Creates a shortcut function to a hasher's object interface. + * + * @param {Hasher} hasher The hasher to create a helper for. + * + * @return {Function} The shortcut function. + * + * @static + * + * @example + * + * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256); + */ + _createHelper: function (hasher) { + return function (message, cfg) { + return new hasher.init(cfg).finalize(message); + }; + }, + + /** + * Creates a shortcut function to the HMAC's object interface. + * + * @param {Hasher} hasher The hasher to use in this HMAC helper. + * + * @return {Function} The shortcut function. + * + * @static + * + * @example + * + * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256); + */ + _createHmacHelper: function (hasher) { + return function (message, key) { + return new C_algo.HMAC.init(hasher, key).finalize(message); + }; + } + }); + + /** + * Algorithm namespace. + */ + var C_algo = C.algo = {}; + + return C; +}(Math)); + + +(function () { + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var WordArray = C_lib.WordArray; + var C_enc = C.enc; + + /** + * Base64 encoding strategy. + */ + var Base64 = C_enc.Base64 = { + /** + * Converts a word array to a Base64 string. + * + * @param {WordArray} wordArray The word array. + * + * @return {string} The Base64 string. + * + * @static + * + * @example + * + * var base64String = CryptoJS.enc.Base64.stringify(wordArray); + */ + stringify: function (wordArray) { + // Shortcuts + var words = wordArray.words; + var sigBytes = wordArray.sigBytes; + var map = this._map; + + // Clamp excess bits + wordArray.clamp(); + + // Convert + var base64Chars = []; + for (var i = 0; i < sigBytes; i += 3) { + var byte1 = (words[i>>> 2]>>> (24 - (i % 4) * 8)) & 0xff; + var byte2 = (words[(i + 1)>>> 2]>>> (24 - ((i + 1) % 4) * 8)) & 0xff; + var byte3 = (words[(i + 2)>>> 2]>>> (24 - ((i + 2) % 4) * 8)) & 0xff; + + var triplet = (byte1 << 16) | (byte2 << 8) | byte3; + + for (var j = 0; (j < 4) && (i + j * 0.75 < sigBytes); j++) { + base64Chars.push(map.charAt((triplet>>> (6 * (3 - j))) & 0x3f)); + } + } + + // Add padding + var paddingChar = map.charAt(64); + if (paddingChar) { + while (base64Chars.length % 4) { + base64Chars.push(paddingChar); + } + } + + return base64Chars.join(''); + }, + + /** + * Converts a Base64 string to a word array. + * + * @param {string} base64Str The Base64 string. + * + * @return {WordArray} The word array. + * + * @static + * + * @example + * + * var wordArray = CryptoJS.enc.Base64.parse(base64String); + */ + parse: function (base64Str) { + // Shortcuts + var base64StrLength = base64Str.length; + var map = this._map; + var reverseMap = this._reverseMap; + + if (!reverseMap) { + reverseMap = this._reverseMap = []; + for (var j = 0; j < map.length; j++) { + reverseMap[map.charCodeAt(j)] = j; + } + } + + // Ignore padding + var paddingChar = map.charAt(64); + if (paddingChar) { + var paddingIndex = base64Str.indexOf(paddingChar); + if (paddingIndex !== -1) { + base64StrLength = paddingIndex; + } + } + + // Convert + return parseLoop(base64Str, base64StrLength, reverseMap); + + }, + + _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=' + }; + + function parseLoop(base64Str, base64StrLength, reverseMap) { + var words = []; + var nBytes = 0; + for (var i = 0; i < base64StrLength; i++) { + if (i % 4) { + var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2); + var bits2 = reverseMap[base64Str.charCodeAt(i)]>>> (6 - (i % 4) * 2); + words[nBytes>>> 2] |= (bits1 | bits2) << (24 - (nBytes % 4) * 8); + nBytes++; + } + } + return WordArray.create(words, nBytes); + } +}()); + + +(function (Math) { + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var WordArray = C_lib.WordArray; + var Hasher = C_lib.Hasher; + var C_algo = C.algo; + + // Constants table + var T = []; + + // Compute constants + (function () { + for (var i = 0; i < 64; i++) { + T[i] = (Math.abs(Math.sin(i + 1)) * 0x100000000) | 0; + } + }()); + + /** + * MD5 hash algorithm. + */ + var MD5 = C_algo.MD5 = Hasher.extend({ + _doReset: function () { + this._hash = new WordArray.init([ + 0x67452301, 0xefcdab89, + 0x98badcfe, 0x10325476 + ]); + }, + + _doProcessBlock: function (M, offset) { + // Swap endian + for (var i = 0; i < 16; i++) { + // Shortcuts + var offset_i = offset + i; + var M_offset_i = M[offset_i]; + + M[offset_i] = ( + (((M_offset_i << 8) | (M_offset_i>>> 24)) & 0x00ff00ff) | + (((M_offset_i << 24) | (M_offset_i>>> 8)) & 0xff00ff00) + ); + } + + // Shortcuts + var H = this._hash.words; + + var M_offset_0 = M[offset + 0]; + var M_offset_1 = M[offset + 1]; + var M_offset_2 = M[offset + 2]; + var M_offset_3 = M[offset + 3]; + var M_offset_4 = M[offset + 4]; + var M_offset_5 = M[offset + 5]; + var M_offset_6 = M[offset + 6]; + var M_offset_7 = M[offset + 7]; + var M_offset_8 = M[offset + 8]; + var M_offset_9 = M[offset + 9]; + var M_offset_10 = M[offset + 10]; + var M_offset_11 = M[offset + 11]; + var M_offset_12 = M[offset + 12]; + var M_offset_13 = M[offset + 13]; + var M_offset_14 = M[offset + 14]; + var M_offset_15 = M[offset + 15]; + + // Working varialbes + var a = H[0]; + var b = H[1]; + var c = H[2]; + var d = H[3]; + + // Computation + a = FF(a, b, c, d, M_offset_0, 7, T[0]); + d = FF(d, a, b, c, M_offset_1, 12, T[1]); + c = FF(c, d, a, b, M_offset_2, 17, T[2]); + b = FF(b, c, d, a, M_offset_3, 22, T[3]); + a = FF(a, b, c, d, M_offset_4, 7, T[4]); + d = FF(d, a, b, c, M_offset_5, 12, T[5]); + c = FF(c, d, a, b, M_offset_6, 17, T[6]); + b = FF(b, c, d, a, M_offset_7, 22, T[7]); + a = FF(a, b, c, d, M_offset_8, 7, T[8]); + d = FF(d, a, b, c, M_offset_9, 12, T[9]); + c = FF(c, d, a, b, M_offset_10, 17, T[10]); + b = FF(b, c, d, a, M_offset_11, 22, T[11]); + a = FF(a, b, c, d, M_offset_12, 7, T[12]); + d = FF(d, a, b, c, M_offset_13, 12, T[13]); + c = FF(c, d, a, b, M_offset_14, 17, T[14]); + b = FF(b, c, d, a, M_offset_15, 22, T[15]); + + a = GG(a, b, c, d, M_offset_1, 5, T[16]); + d = GG(d, a, b, c, M_offset_6, 9, T[17]); + c = GG(c, d, a, b, M_offset_11, 14, T[18]); + b = GG(b, c, d, a, M_offset_0, 20, T[19]); + a = GG(a, b, c, d, M_offset_5, 5, T[20]); + d = GG(d, a, b, c, M_offset_10, 9, T[21]); + c = GG(c, d, a, b, M_offset_15, 14, T[22]); + b = GG(b, c, d, a, M_offset_4, 20, T[23]); + a = GG(a, b, c, d, M_offset_9, 5, T[24]); + d = GG(d, a, b, c, M_offset_14, 9, T[25]); + c = GG(c, d, a, b, M_offset_3, 14, T[26]); + b = GG(b, c, d, a, M_offset_8, 20, T[27]); + a = GG(a, b, c, d, M_offset_13, 5, T[28]); + d = GG(d, a, b, c, M_offset_2, 9, T[29]); + c = GG(c, d, a, b, M_offset_7, 14, T[30]); + b = GG(b, c, d, a, M_offset_12, 20, T[31]); + + a = HH(a, b, c, d, M_offset_5, 4, T[32]); + d = HH(d, a, b, c, M_offset_8, 11, T[33]); + c = HH(c, d, a, b, M_offset_11, 16, T[34]); + b = HH(b, c, d, a, M_offset_14, 23, T[35]); + a = HH(a, b, c, d, M_offset_1, 4, T[36]); + d = HH(d, a, b, c, M_offset_4, 11, T[37]); + c = HH(c, d, a, b, M_offset_7, 16, T[38]); + b = HH(b, c, d, a, M_offset_10, 23, T[39]); + a = HH(a, b, c, d, M_offset_13, 4, T[40]); + d = HH(d, a, b, c, M_offset_0, 11, T[41]); + c = HH(c, d, a, b, M_offset_3, 16, T[42]); + b = HH(b, c, d, a, M_offset_6, 23, T[43]); + a = HH(a, b, c, d, M_offset_9, 4, T[44]); + d = HH(d, a, b, c, M_offset_12, 11, T[45]); + c = HH(c, d, a, b, M_offset_15, 16, T[46]); + b = HH(b, c, d, a, M_offset_2, 23, T[47]); + + a = II(a, b, c, d, M_offset_0, 6, T[48]); + d = II(d, a, b, c, M_offset_7, 10, T[49]); + c = II(c, d, a, b, M_offset_14, 15, T[50]); + b = II(b, c, d, a, M_offset_5, 21, T[51]); + a = II(a, b, c, d, M_offset_12, 6, T[52]); + d = II(d, a, b, c, M_offset_3, 10, T[53]); + c = II(c, d, a, b, M_offset_10, 15, T[54]); + b = II(b, c, d, a, M_offset_1, 21, T[55]); + a = II(a, b, c, d, M_offset_8, 6, T[56]); + d = II(d, a, b, c, M_offset_15, 10, T[57]); + c = II(c, d, a, b, M_offset_6, 15, T[58]); + b = II(b, c, d, a, M_offset_13, 21, T[59]); + a = II(a, b, c, d, M_offset_4, 6, T[60]); + d = II(d, a, b, c, M_offset_11, 10, T[61]); + c = II(c, d, a, b, M_offset_2, 15, T[62]); + b = II(b, c, d, a, M_offset_9, 21, T[63]); + + // Intermediate hash value + H[0] = (H[0] + a) | 0; + H[1] = (H[1] + b) | 0; + H[2] = (H[2] + c) | 0; + H[3] = (H[3] + d) | 0; + }, + + _doFinalize: function () { + // Shortcuts + var data = this._data; + var dataWords = data.words; + + var nBitsTotal = this._nDataBytes * 8; + var nBitsLeft = data.sigBytes * 8; + + // Add padding + dataWords[nBitsLeft>>> 5] |= 0x80 << (24 - nBitsLeft % 32); + + var nBitsTotalH = Math.floor(nBitsTotal / 0x100000000); + var nBitsTotalL = nBitsTotal; + dataWords[(((nBitsLeft + 64)>>> 9) << 4) + 15] = ( + (((nBitsTotalH << 8) | (nBitsTotalH>>> 24)) & 0x00ff00ff) | + (((nBitsTotalH << 24) | (nBitsTotalH>>> 8)) & 0xff00ff00) + ); + dataWords[(((nBitsLeft + 64)>>> 9) << 4) + 14] = ( + (((nBitsTotalL << 8) | (nBitsTotalL>>> 24)) & 0x00ff00ff) | + (((nBitsTotalL << 24) | (nBitsTotalL>>> 8)) & 0xff00ff00) + ); + + data.sigBytes = (dataWords.length + 1) * 4; + + // Hash final blocks + this._process(); + + // Shortcuts + var hash = this._hash; + var H = hash.words; + + // Swap endian + for (var i = 0; i < 4; i++) { + // Shortcut + var H_i = H[i]; + + H[i] = (((H_i << 8) | (H_i>>> 24)) & 0x00ff00ff) | + (((H_i << 24) | (H_i>>> 8)) & 0xff00ff00); + } + + // Return final computed hash + return hash; + }, + + clone: function () { + var clone = Hasher.clone.call(this); + clone._hash = this._hash.clone(); + + return clone; + } + }); + + function FF(a, b, c, d, x, s, t) { + var n = a + ((b & c) | (~b & d)) + x + t; + return ((n << s) | (n>>> (32 - s))) + b; + } + + function GG(a, b, c, d, x, s, t) { + var n = a + ((b & d) | (c & ~d)) + x + t; + return ((n << s) | (n>>> (32 - s))) + b; + } + + function HH(a, b, c, d, x, s, t) { + var n = a + (b ^ c ^ d) + x + t; + return ((n << s) | (n>>> (32 - s))) + b; + } + + function II(a, b, c, d, x, s, t) { + var n = a + (c ^ (b | ~d)) + x + t; + return ((n << s) | (n>>> (32 - s))) + b; + } + + /** + * Shortcut function to the hasher's object interface. + * + * @param {WordArray|string} message The message to hash. + * + * @return {WordArray} The hash. + * + * @static + * + * @example + * + * var hash = CryptoJS.MD5('message'); + * var hash = CryptoJS.MD5(wordArray); + */ + C.MD5 = Hasher._createHelper(MD5); + + /** + * Shortcut function to the HMAC's object interface. + * + * @param {WordArray|string} message The message to hash. + * @param {WordArray|string} key The secret key. + * + * @return {WordArray} The HMAC. + * + * @static + * + * @example + * + * var hmac = CryptoJS.HmacMD5(message, key); + */ + C.HmacMD5 = Hasher._createHmacHelper(MD5); +}(Math)); + + +(function () { + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var WordArray = C_lib.WordArray; + var Hasher = C_lib.Hasher; + var C_algo = C.algo; + + // Reusable object + var W = []; + + /** + * SHA-1 hash algorithm. + */ + var SHA1 = C_algo.SHA1 = Hasher.extend({ + _doReset: function () { + this._hash = new WordArray.init([ + 0x67452301, 0xefcdab89, + 0x98badcfe, 0x10325476, + 0xc3d2e1f0 + ]); + }, + + _doProcessBlock: function (M, offset) { + // Shortcut + var H = this._hash.words; + + // Working variables + var a = H[0]; + var b = H[1]; + var c = H[2]; + var d = H[3]; + var e = H[4]; + + // Computation + for (var i = 0; i < 80; i++) { + if (i < 16) { + W[i] = M[offset + i] | 0; + } else { + var n = W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16]; + W[i] = (n << 1) | (n>>> 31); + } + + var t = ((a << 5) | (a>>> 27)) + e + W[i]; + if (i < 20) { + t += ((b & c) | (~b & d)) + 0x5a827999; + } else if (i < 40) { + t += (b ^ c ^ d) + 0x6ed9eba1; + } else if (i < 60) { + t += ((b & c) | (b & d) | (c & d)) - 0x70e44324; + } else /* if (i < 80) */ { + t += (b ^ c ^ d) - 0x359d3e2a; + } + + e = d; + d = c; + c = (b << 30) | (b>>> 2); + b = a; + a = t; + } + + // Intermediate hash value + H[0] = (H[0] + a) | 0; + H[1] = (H[1] + b) | 0; + H[2] = (H[2] + c) | 0; + H[3] = (H[3] + d) | 0; + H[4] = (H[4] + e) | 0; + }, + + _doFinalize: function () { + // Shortcuts + var data = this._data; + var dataWords = data.words; + + var nBitsTotal = this._nDataBytes * 8; + var nBitsLeft = data.sigBytes * 8; + + // Add padding + dataWords[nBitsLeft>>> 5] |= 0x80 << (24 - nBitsLeft % 32); + dataWords[(((nBitsLeft + 64)>>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000); + dataWords[(((nBitsLeft + 64)>>> 9) << 4) + 15] = nBitsTotal; + data.sigBytes = dataWords.length * 4; + + // Hash final blocks + this._process(); + + // Return final computed hash + return this._hash; + }, + + clone: function () { + var clone = Hasher.clone.call(this); + clone._hash = this._hash.clone(); + + return clone; + } + }); + + /** + * Shortcut function to the hasher's object interface. + * + * @param {WordArray|string} message The message to hash. + * + * @return {WordArray} The hash. + * + * @static + * + * @example + * + * var hash = CryptoJS.SHA1('message'); + * var hash = CryptoJS.SHA1(wordArray); + */ + C.SHA1 = Hasher._createHelper(SHA1); + + /** + * Shortcut function to the HMAC's object interface. + * + * @param {WordArray|string} message The message to hash. + * @param {WordArray|string} key The secret key. + * + * @return {WordArray} The HMAC. + * + * @static + * + * @example + * + * var hmac = CryptoJS.HmacSHA1(message, key); + */ + C.HmacSHA1 = Hasher._createHmacHelper(SHA1); +}()); + + +(function (Math) { + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var WordArray = C_lib.WordArray; + var Hasher = C_lib.Hasher; + var C_algo = C.algo; + + // Initialization and round constants tables + var H = []; + var K = []; + + // Compute constants + (function () { + function isPrime(n) { + var sqrtN = Math.sqrt(n); + for (var factor = 2; factor <= sqrtN; factor++) { + if (!(n % factor)) { + return false; + } + } + + return true; + } + + function getFractionalBits(n) { + return ((n - (n | 0)) * 0x100000000) | 0; + } + + var n = 2; + var nPrime = 0; + while (nPrime < 64) { + if (isPrime(n)) { + if (nPrime < 8) { + H[nPrime] = getFractionalBits(Math.pow(n, 1 / 2)); + } + K[nPrime] = getFractionalBits(Math.pow(n, 1 / 3)); + + nPrime++; + } + + n++; + } + }()); + + // Reusable object + var W = []; + + /** + * SHA-256 hash algorithm. + */ + var SHA256 = C_algo.SHA256 = Hasher.extend({ + _doReset: function () { + this._hash = new WordArray.init(H.slice(0)); + }, + + _doProcessBlock: function (M, offset) { + // Shortcut + var H = this._hash.words; + + // Working variables + var a = H[0]; + var b = H[1]; + var c = H[2]; + var d = H[3]; + var e = H[4]; + var f = H[5]; + var g = H[6]; + var h = H[7]; + + // Computation + for (var i = 0; i < 64; i++) { + if (i < 16) { + W[i] = M[offset + i] | 0; + } else { + var gamma0x = W[i - 15]; + var gamma0 = ((gamma0x << 25) | (gamma0x>>> 7)) ^ + ((gamma0x << 14) | (gamma0x>>> 18)) ^ + (gamma0x>>> 3); + + var gamma1x = W[i - 2]; + var gamma1 = ((gamma1x << 15) | (gamma1x>>> 17)) ^ + ((gamma1x << 13) | (gamma1x>>> 19)) ^ + (gamma1x>>> 10); + + W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]; + } + + var ch = (e & f) ^ (~e & g); + var maj = (a & b) ^ (a & c) ^ (b & c); + + var sigma0 = ((a << 30) | (a>>> 2)) ^ ((a << 19) | (a>>> 13)) ^ ((a << 10) | (a>>> 22)); + var sigma1 = ((e << 26) | (e>>> 6)) ^ ((e << 21) | (e>>> 11)) ^ ((e << 7) | (e>>> 25)); + + var t1 = h + sigma1 + ch + K[i] + W[i]; + var t2 = sigma0 + maj; + + h = g; + g = f; + f = e; + e = (d + t1) | 0; + d = c; + c = b; + b = a; + a = (t1 + t2) | 0; + } + + // Intermediate hash value + H[0] = (H[0] + a) | 0; + H[1] = (H[1] + b) | 0; + H[2] = (H[2] + c) | 0; + H[3] = (H[3] + d) | 0; + H[4] = (H[4] + e) | 0; + H[5] = (H[5] + f) | 0; + H[6] = (H[6] + g) | 0; + H[7] = (H[7] + h) | 0; + }, + + _doFinalize: function () { + // Shortcuts + var data = this._data; + var dataWords = data.words; + + var nBitsTotal = this._nDataBytes * 8; + var nBitsLeft = data.sigBytes * 8; + + // Add padding + dataWords[nBitsLeft>>> 5] |= 0x80 << (24 - nBitsLeft % 32); + dataWords[(((nBitsLeft + 64)>>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000); + dataWords[(((nBitsLeft + 64)>>> 9) << 4) + 15] = nBitsTotal; + data.sigBytes = dataWords.length * 4; + + // Hash final blocks + this._process(); + + // Return final computed hash + return this._hash; + }, + + clone: function () { + var clone = Hasher.clone.call(this); + clone._hash = this._hash.clone(); + + return clone; + } + }); + + /** + * Shortcut function to the hasher's object interface. + * + * @param {WordArray|string} message The message to hash. + * + * @return {WordArray} The hash. + * + * @static + * + * @example + * + * var hash = CryptoJS.SHA256('message'); + * var hash = CryptoJS.SHA256(wordArray); + */ + C.SHA256 = Hasher._createHelper(SHA256); + + /** + * Shortcut function to the HMAC's object interface. + * + * @param {WordArray|string} message The message to hash. + * @param {WordArray|string} key The secret key. + * + * @return {WordArray} The HMAC. + * + * @static + * + * @example + * + * var hmac = CryptoJS.HmacSHA256(message, key); + */ + C.HmacSHA256 = Hasher._createHmacHelper(SHA256); +}(Math)); + + +(function () { + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var WordArray = C_lib.WordArray; + var C_enc = C.enc; + + /** + * UTF-16 BE encoding strategy. + */ + var Utf16BE = C_enc.Utf16 = C_enc.Utf16BE = { + /** + * Converts a word array to a UTF-16 BE string. + * + * @param {WordArray} wordArray The word array. + * + * @return {string} The UTF-16 BE string. + * + * @static + * + * @example + * + * var utf16String = CryptoJS.enc.Utf16.stringify(wordArray); + */ + stringify: function (wordArray) { + // Shortcuts + var words = wordArray.words; + var sigBytes = wordArray.sigBytes; + + // Convert + var utf16Chars = []; + for (var i = 0; i < sigBytes; i += 2) { + var codePoint = (words[i>>> 2]>>> (16 - (i % 4) * 8)) & 0xffff; + utf16Chars.push(String.fromCharCode(codePoint)); + } + + return utf16Chars.join(''); + }, + + /** + * Converts a UTF-16 BE string to a word array. + * + * @param {string} utf16Str The UTF-16 BE string. + * + * @return {WordArray} The word array. + * + * @static + * + * @example + * + * var wordArray = CryptoJS.enc.Utf16.parse(utf16String); + */ + parse: function (utf16Str) { + // Shortcut + var utf16StrLength = utf16Str.length; + + // Convert + var words = []; + for (var i = 0; i < utf16StrLength; i++) { + words[i>>> 1] |= utf16Str.charCodeAt(i) << (16 - (i % 2) * 16); + } + + return WordArray.create(words, utf16StrLength * 2); + } + }; + + /** + * UTF-16 LE encoding strategy. + */ + C_enc.Utf16LE = { + /** + * Converts a word array to a UTF-16 LE string. + * + * @param {WordArray} wordArray The word array. + * + * @return {string} The UTF-16 LE string. + * + * @static + * + * @example + * + * var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray); + */ + stringify: function (wordArray) { + // Shortcuts + var words = wordArray.words; + var sigBytes = wordArray.sigBytes; + + // Convert + var utf16Chars = []; + for (var i = 0; i < sigBytes; i += 2) { + var codePoint = swapEndian((words[i>>> 2]>>> (16 - (i % 4) * 8)) & 0xffff); + utf16Chars.push(String.fromCharCode(codePoint)); + } + + return utf16Chars.join(''); + }, + + /** + * Converts a UTF-16 LE string to a word array. + * + * @param {string} utf16Str The UTF-16 LE string. + * + * @return {WordArray} The word array. + * + * @static + * + * @example + * + * var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str); + */ + parse: function (utf16Str) { + // Shortcut + var utf16StrLength = utf16Str.length; + + // Convert + var words = []; + for (var i = 0; i < utf16StrLength; i++) { + words[i>>> 1] |= swapEndian(utf16Str.charCodeAt(i) << (16 - (i % 2) * 16)); + } + + return WordArray.create(words, utf16StrLength * 2); + } + }; + + function swapEndian(word) { + return ((word << 8) & 0xff00ff00) | ((word>>> 8) & 0x00ff00ff); + } +}()); + + +(function () { + // Check if typed arrays are supported + if (typeof ArrayBuffer != 'function') { + return; + } + + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var WordArray = C_lib.WordArray; + + // Reference original init + var superInit = WordArray.init; + + // Augment WordArray.init to handle typed arrays + var subInit = WordArray.init = function (typedArray) { + // Convert buffers to uint8 + if (typedArray instanceof ArrayBuffer) { + typedArray = new Uint8Array(typedArray); + } + + // Convert other array views to uint8 + if ( + typedArray instanceof Int8Array || + (typeof Uint8ClampedArray !== "undefined" && typedArray instanceof Uint8ClampedArray) || + typedArray instanceof Int16Array || + typedArray instanceof Uint16Array || + typedArray instanceof Int32Array || + typedArray instanceof Uint32Array || + typedArray instanceof Float32Array || + typedArray instanceof Float64Array + ) { + typedArray = new Uint8Array(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength); + } + + // Handle Uint8Array + if (typedArray instanceof Uint8Array) { + // Shortcut + var typedArrayByteLength = typedArray.byteLength; + + // Extract bytes + var words = []; + for (var i = 0; i < typedArrayByteLength; i++) { + words[i>>> 2] |= typedArray[i] << (24 - (i % 4) * 8); + } + + // Initialize this word array + superInit.call(this, words, typedArrayByteLength); + } else { + // Else call normal init + superInit.apply(this, arguments); + } + }; + + subInit.prototype = WordArray; +}()); + + +/** @preserve +(c) 2012 by Cédric Mesnil. All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +(function (Math) { + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var WordArray = C_lib.WordArray; + var Hasher = C_lib.Hasher; + var C_algo = C.algo; + + // Constants table + var _zl = WordArray.create([ + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, + 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, + 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, + 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, + 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]); + var _zr = WordArray.create([ + 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, + 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, + 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, + 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, + 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]); + var _sl = WordArray.create([ + 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, + 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, + 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, + 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, + 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6 ]); + var _sr = WordArray.create([ + 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, + 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, + 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, + 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, + 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11 ]); + + var _hl = WordArray.create([ 0x00000000, 0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xA953FD4E]); + var _hr = WordArray.create([ 0x50A28BE6, 0x5C4DD124, 0x6D703EF3, 0x7A6D76E9, 0x00000000]); + + /** + * RIPEMD160 hash algorithm. + */ + var RIPEMD160 = C_algo.RIPEMD160 = Hasher.extend({ + _doReset: function () { + this._hash = WordArray.create([0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0]); + }, + + _doProcessBlock: function (M, offset) { + + // Swap endian + for (var i = 0; i < 16; i++) { + // Shortcuts + var offset_i = offset + i; + var M_offset_i = M[offset_i]; + + // Swap + M[offset_i] = ( + (((M_offset_i << 8) | (M_offset_i>>> 24)) & 0x00ff00ff) | + (((M_offset_i << 24) | (M_offset_i>>> 8)) & 0xff00ff00) + ); + } + // Shortcut + var H = this._hash.words; + var hl = _hl.words; + var hr = _hr.words; + var zl = _zl.words; + var zr = _zr.words; + var sl = _sl.words; + var sr = _sr.words; + + // Working variables + var al, bl, cl, dl, el; + var ar, br, cr, dr, er; + + ar = al = H[0]; + br = bl = H[1]; + cr = cl = H[2]; + dr = dl = H[3]; + er = el = H[4]; + // Computation + var t; + for (var i = 0; i < 80; i += 1) { + t = (al + M[offset+zl[i]])|0; + if (i<16){ + t += f1(bl,cl,dl) + hl[0]; + } else if (i<32) { + t += f2(bl,cl,dl) + hl[1]; + } else if (i<48) { + t += f3(bl,cl,dl) + hl[2]; + } else if (i<64) { + t += f4(bl,cl,dl) + hl[3]; + } else {// if (i<80) { + t += f5(bl,cl,dl) + hl[4]; + } + t = t|0; + t = rotl(t,sl[i]); + t = (t+el)|0; + al = el; + el = dl; + dl = rotl(cl, 10); + cl = bl; + bl = t; + + t = (ar + M[offset+zr[i]])|0; + if (i<16){ + t += f5(br,cr,dr) + hr[0]; + } else if (i<32) { + t += f4(br,cr,dr) + hr[1]; + } else if (i<48) { + t += f3(br,cr,dr) + hr[2]; + } else if (i<64) { + t += f2(br,cr,dr) + hr[3]; + } else {// if (i<80) { + t += f1(br,cr,dr) + hr[4]; + } + t = t|0; + t = rotl(t,sr[i]) ; + t = (t+er)|0; + ar = er; + er = dr; + dr = rotl(cr, 10); + cr = br; + br = t; + } + // Intermediate hash value + t = (H[1] + cl + dr)|0; + H[1] = (H[2] + dl + er)|0; + H[2] = (H[3] + el + ar)|0; + H[3] = (H[4] + al + br)|0; + H[4] = (H[0] + bl + cr)|0; + H[0] = t; + }, + + _doFinalize: function () { + // Shortcuts + var data = this._data; + var dataWords = data.words; + + var nBitsTotal = this._nDataBytes * 8; + var nBitsLeft = data.sigBytes * 8; + + // Add padding + dataWords[nBitsLeft>>> 5] |= 0x80 << (24 - nBitsLeft % 32); + dataWords[(((nBitsLeft + 64)>>> 9) << 4) + 14] = ( + (((nBitsTotal << 8) | (nBitsTotal>>> 24)) & 0x00ff00ff) | + (((nBitsTotal << 24) | (nBitsTotal>>> 8)) & 0xff00ff00) + ); + data.sigBytes = (dataWords.length + 1) * 4; + + // Hash final blocks + this._process(); + + // Shortcuts + var hash = this._hash; + var H = hash.words; + + // Swap endian + for (var i = 0; i < 5; i++) { + // Shortcut + var H_i = H[i]; + + // Swap + H[i] = (((H_i << 8) | (H_i>>> 24)) & 0x00ff00ff) | + (((H_i << 24) | (H_i>>> 8)) & 0xff00ff00); + } + + // Return final computed hash + return hash; + }, + + clone: function () { + var clone = Hasher.clone.call(this); + clone._hash = this._hash.clone(); + + return clone; + } + }); + + + function f1(x, y, z) { + return ((x) ^ (y) ^ (z)); + + } + + function f2(x, y, z) { + return (((x)&(y)) | ((~x)&(z))); + } + + function f3(x, y, z) { + return (((x) | (~(y))) ^ (z)); + } + + function f4(x, y, z) { + return (((x) & (z)) | ((y)&(~(z)))); + } + + function f5(x, y, z) { + return ((x) ^ ((y) |(~(z)))); + + } + + function rotl(x,n) { + return (x<>>(32-n)); + } + + + /** + * Shortcut function to the hasher's object interface. + * + * @param {WordArray|string} message The message to hash. + * + * @return {WordArray} The hash. + * + * @static + * + * @example + * + * var hash = CryptoJS.RIPEMD160('message'); + * var hash = CryptoJS.RIPEMD160(wordArray); + */ + C.RIPEMD160 = Hasher._createHelper(RIPEMD160); + + /** + * Shortcut function to the HMAC's object interface. + * + * @param {WordArray|string} message The message to hash. + * @param {WordArray|string} key The secret key. + * + * @return {WordArray} The HMAC. + * + * @static + * + * @example + * + * var hmac = CryptoJS.HmacRIPEMD160(message, key); + */ + C.HmacRIPEMD160 = Hasher._createHmacHelper(RIPEMD160); +}(Math)); + + +(function () { + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var Base = C_lib.Base; + var C_enc = C.enc; + var Utf8 = C_enc.Utf8; + var C_algo = C.algo; + + /** + * HMAC algorithm. + */ + var HMAC = C_algo.HMAC = Base.extend({ + /** + * Initializes a newly created HMAC. + * + * @param {Hasher} hasher The hash algorithm to use. + * @param {WordArray|string} key The secret key. + * + * @example + * + * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key); + */ + init: function (hasher, key) { + // Init hasher + hasher = this._hasher = new hasher.init(); + + // Convert string to WordArray, else assume WordArray already + if (typeof key == 'string') { + key = Utf8.parse(key); + } + + // Shortcuts + var hasherBlockSize = hasher.blockSize; + var hasherBlockSizeBytes = hasherBlockSize * 4; + + // Allow arbitrary length keys + if (key.sigBytes> hasherBlockSizeBytes) { + key = hasher.finalize(key); + } + + // Clamp excess bits + key.clamp(); + + // Clone key for inner and outer pads + var oKey = this._oKey = key.clone(); + var iKey = this._iKey = key.clone(); + + // Shortcuts + var oKeyWords = oKey.words; + var iKeyWords = iKey.words; + + // XOR keys with pad constants + for (var i = 0; i < hasherBlockSize; i++) { + oKeyWords[i] ^= 0x5c5c5c5c; + iKeyWords[i] ^= 0x36363636; + } + oKey.sigBytes = iKey.sigBytes = hasherBlockSizeBytes; + + // Set initial values + this.reset(); + }, + + /** + * Resets this HMAC to its initial state. + * + * @example + * + * hmacHasher.reset(); + */ + reset: function () { + // Shortcut + var hasher = this._hasher; + + // Reset + hasher.reset(); + hasher.update(this._iKey); + }, + + /** + * Updates this HMAC with a message. + * + * @param {WordArray|string} messageUpdate The message to append. + * + * @return {HMAC} This HMAC instance. + * + * @example + * + * hmacHasher.update('message'); + * hmacHasher.update(wordArray); + */ + update: function (messageUpdate) { + this._hasher.update(messageUpdate); + + // Chainable + return this; + }, + + /** + * Finalizes the HMAC computation. + * Note that the finalize operation is effectively a destructive, read-once operation. + * + * @param {WordArray|string} messageUpdate (Optional) A final message update. + * + * @return {WordArray} The HMAC. + * + * @example + * + * var hmac = hmacHasher.finalize(); + * var hmac = hmacHasher.finalize('message'); + * var hmac = hmacHasher.finalize(wordArray); + */ + finalize: function (messageUpdate) { + // Shortcut + var hasher = this._hasher; + + // Compute HMAC + var innerHash = hasher.finalize(messageUpdate); + hasher.reset(); + var hmac = hasher.finalize(this._oKey.clone().concat(innerHash)); + + return hmac; + } + }); +}()); + + +(function () { + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var Base = C_lib.Base; + var WordArray = C_lib.WordArray; + var C_algo = C.algo; + var SHA1 = C_algo.SHA1; + var HMAC = C_algo.HMAC; + + /** + * Password-Based Key Derivation Function 2 algorithm. + */ + var PBKDF2 = C_algo.PBKDF2 = Base.extend({ + /** + * Configuration options. + * + * @property {number} keySize The key size in words to generate. Default: 4 (128 bits) + * @property {Hasher} hasher The hasher to use. Default: SHA1 + * @property {number} iterations The number of iterations to perform. Default: 1 + */ + cfg: Base.extend({ + keySize: 128/32, + hasher: SHA1, + iterations: 1 + }), + + /** + * Initializes a newly created key derivation function. + * + * @param {Object} cfg (Optional) The configuration options to use for the derivation. + * + * @example + * + * var kdf = CryptoJS.algo.PBKDF2.create(); + * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 }); + * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 }); + */ + init: function (cfg) { + this.cfg = this.cfg.extend(cfg); + }, + + /** + * Computes the Password-Based Key Derivation Function 2. + * + * @param {WordArray|string} password The password. + * @param {WordArray|string} salt A salt. + * + * @return {WordArray} The derived key. + * + * @example + * + * var key = kdf.compute(password, salt); + */ + compute: function (password, salt) { + // Shortcut + var cfg = this.cfg; + + // Init HMAC + var hmac = HMAC.create(cfg.hasher, password); + + // Initial values + var derivedKey = WordArray.create(); + var blockIndex = WordArray.create([0x00000001]); + + // Shortcuts + var derivedKeyWords = derivedKey.words; + var blockIndexWords = blockIndex.words; + var keySize = cfg.keySize; + var iterations = cfg.iterations; + + // Generate key + while (derivedKeyWords.length < keySize) { + var block = hmac.update(salt).finalize(blockIndex); + hmac.reset(); + + // Shortcuts + var blockWords = block.words; + var blockWordsLength = blockWords.length; + + // Iterations + var intermediate = block; + for (var i = 1; i < iterations; i++) { + intermediate = hmac.finalize(intermediate); + hmac.reset(); + + // Shortcut + var intermediateWords = intermediate.words; + + // XOR intermediate with block + for (var j = 0; j < blockWordsLength; j++) { + blockWords[j] ^= intermediateWords[j]; + } + } + + derivedKey.concat(block); + blockIndexWords[0]++; + } + derivedKey.sigBytes = keySize * 4; + + return derivedKey; + } + }); + + /** + * Computes the Password-Based Key Derivation Function 2. + * + * @param {WordArray|string} password The password. + * @param {WordArray|string} salt A salt. + * @param {Object} cfg (Optional) The configuration options to use for this computation. + * + * @return {WordArray} The derived key. + * + * @static + * + * @example + * + * var key = CryptoJS.PBKDF2(password, salt); + * var key = CryptoJS.PBKDF2(password, salt, { keySize: 8 }); + * var key = CryptoJS.PBKDF2(password, salt, { keySize: 8, iterations: 1000 }); + */ + C.PBKDF2 = function (password, salt, cfg) { + return PBKDF2.create(cfg).compute(password, salt); + }; +}()); + + +(function () { + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var Base = C_lib.Base; + var WordArray = C_lib.WordArray; + var C_algo = C.algo; + var MD5 = C_algo.MD5; + + /** + * This key derivation function is meant to conform with EVP_BytesToKey. + * www.openssl.org/docs/crypto/EVP_BytesToKey.html + */ + var EvpKDF = C_algo.EvpKDF = Base.extend({ + /** + * Configuration options. + * + * @property {number} keySize The key size in words to generate. Default: 4 (128 bits) + * @property {Hasher} hasher The hash algorithm to use. Default: MD5 + * @property {number} iterations The number of iterations to perform. Default: 1 + */ + cfg: Base.extend({ + keySize: 128/32, + hasher: MD5, + iterations: 1 + }), + + /** + * Initializes a newly created key derivation function. + * + * @param {Object} cfg (Optional) The configuration options to use for the derivation. + * + * @example + * + * var kdf = CryptoJS.algo.EvpKDF.create(); + * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 }); + * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 }); + */ + init: function (cfg) { + this.cfg = this.cfg.extend(cfg); + }, + + /** + * Derives a key from a password. + * + * @param {WordArray|string} password The password. + * @param {WordArray|string} salt A salt. + * + * @return {WordArray} The derived key. + * + * @example + * + * var key = kdf.compute(password, salt); + */ + compute: function (password, salt) { + // Shortcut + var cfg = this.cfg; + + // Init hasher + var hasher = cfg.hasher.create(); + + // Initial values + var derivedKey = WordArray.create(); + + // Shortcuts + var derivedKeyWords = derivedKey.words; + var keySize = cfg.keySize; + var iterations = cfg.iterations; + + // Generate key + while (derivedKeyWords.length < keySize) { + if (block) { + hasher.update(block); + } + var block = hasher.update(password).finalize(salt); + hasher.reset(); + + // Iterations + for (var i = 1; i < iterations; i++) { + block = hasher.finalize(block); + hasher.reset(); + } + + derivedKey.concat(block); + } + derivedKey.sigBytes = keySize * 4; + + return derivedKey; + } + }); + + /** + * Derives a key from a password. + * + * @param {WordArray|string} password The password. + * @param {WordArray|string} salt A salt. + * @param {Object} cfg (Optional) The configuration options to use for this computation. + * + * @return {WordArray} The derived key. + * + * @static + * + * @example + * + * var key = CryptoJS.EvpKDF(password, salt); + * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8 }); + * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8, iterations: 1000 }); + */ + C.EvpKDF = function (password, salt, cfg) { + return EvpKDF.create(cfg).compute(password, salt); + }; +}()); + + +(function () { + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var WordArray = C_lib.WordArray; + var C_algo = C.algo; + var SHA256 = C_algo.SHA256; + + /** + * SHA-224 hash algorithm. + */ + var SHA224 = C_algo.SHA224 = SHA256.extend({ + _doReset: function () { + this._hash = new WordArray.init([ + 0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939, + 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4 + ]); + }, + + _doFinalize: function () { + var hash = SHA256._doFinalize.call(this); + + hash.sigBytes -= 4; + + return hash; + } + }); + + /** + * Shortcut function to the hasher's object interface. + * + * @param {WordArray|string} message The message to hash. + * + * @return {WordArray} The hash. + * + * @static + * + * @example + * + * var hash = CryptoJS.SHA224('message'); + * var hash = CryptoJS.SHA224(wordArray); + */ + C.SHA224 = SHA256._createHelper(SHA224); + + /** + * Shortcut function to the HMAC's object interface. + * + * @param {WordArray|string} message The message to hash. + * @param {WordArray|string} key The secret key. + * + * @return {WordArray} The HMAC. + * + * @static + * + * @example + * + * var hmac = CryptoJS.HmacSHA224(message, key); + */ + C.HmacSHA224 = SHA256._createHmacHelper(SHA224); +}()); + + +(function (undefined) { + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var Base = C_lib.Base; + var X32WordArray = C_lib.WordArray; + + /** + * x64 namespace. + */ + var C_x64 = C.x64 = {}; + + /** + * A 64-bit word. + */ + var X64Word = C_x64.Word = Base.extend({ + /** + * Initializes a newly created 64-bit word. + * + * @param {number} high The high 32 bits. + * @param {number} low The low 32 bits. + * + * @example + * + * var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607); + */ + init: function (high, low) { + this.high = high; + this.low = low; + } + + /** + * Bitwise NOTs this word. + * + * @return {X64Word} A new x64-Word object after negating. + * + * @example + * + * var negated = x64Word.not(); + */ + // not: function () { + // var high = ~this.high; + // var low = ~this.low; + + // return X64Word.create(high, low); + // }, + + /** + * Bitwise ANDs this word with the passed word. + * + * @param {X64Word} word The x64-Word to AND with this word. + * + * @return {X64Word} A new x64-Word object after ANDing. + * + * @example + * + * var anded = x64Word.and(anotherX64Word); + */ + // and: function (word) { + // var high = this.high & word.high; + // var low = this.low & word.low; + + // return X64Word.create(high, low); + // }, + + /** + * Bitwise ORs this word with the passed word. + * + * @param {X64Word} word The x64-Word to OR with this word. + * + * @return {X64Word} A new x64-Word object after ORing. + * + * @example + * + * var ored = x64Word.or(anotherX64Word); + */ + // or: function (word) { + // var high = this.high | word.high; + // var low = this.low | word.low; + + // return X64Word.create(high, low); + // }, + + /** + * Bitwise XORs this word with the passed word. + * + * @param {X64Word} word The x64-Word to XOR with this word. + * + * @return {X64Word} A new x64-Word object after XORing. + * + * @example + * + * var xored = x64Word.xor(anotherX64Word); + */ + // xor: function (word) { + // var high = this.high ^ word.high; + // var low = this.low ^ word.low; + + // return X64Word.create(high, low); + // }, + + /** + * Shifts this word n bits to the left. + * + * @param {number} n The number of bits to shift. + * + * @return {X64Word} A new x64-Word object after shifting. + * + * @example + * + * var shifted = x64Word.shiftL(25); + */ + // shiftL: function (n) { + // if (n < 32) { + // var high = (this.high << n) | (this.low>>> (32 - n)); + // var low = this.low << n; + // } else { + // var high = this.low << (n - 32); + // var low = 0; + // } + + // return X64Word.create(high, low); + // }, + + /** + * Shifts this word n bits to the right. + * + * @param {number} n The number of bits to shift. + * + * @return {X64Word} A new x64-Word object after shifting. + * + * @example + * + * var shifted = x64Word.shiftR(7); + */ + // shiftR: function (n) { + // if (n < 32) { + // var low = (this.low>>> n) | (this.high << (32 - n)); + // var high = this.high>>> n; + // } else { + // var low = this.high>>> (n - 32); + // var high = 0; + // } + + // return X64Word.create(high, low); + // }, + + /** + * Rotates this word n bits to the left. + * + * @param {number} n The number of bits to rotate. + * + * @return {X64Word} A new x64-Word object after rotating. + * + * @example + * + * var rotated = x64Word.rotL(25); + */ + // rotL: function (n) { + // return this.shiftL(n).or(this.shiftR(64 - n)); + // }, + + /** + * Rotates this word n bits to the right. + * + * @param {number} n The number of bits to rotate. + * + * @return {X64Word} A new x64-Word object after rotating. + * + * @example + * + * var rotated = x64Word.rotR(7); + */ + // rotR: function (n) { + // return this.shiftR(n).or(this.shiftL(64 - n)); + // }, + + /** + * Adds this word with the passed word. + * + * @param {X64Word} word The x64-Word to add with this word. + * + * @return {X64Word} A new x64-Word object after adding. + * + * @example + * + * var added = x64Word.add(anotherX64Word); + */ + // add: function (word) { + // var low = (this.low + word.low) | 0; + // var carry = (low>>> 0) < (this.low>>> 0) ? 1 : 0; + // var high = (this.high + word.high + carry) | 0; + + // return X64Word.create(high, low); + // } + }); + + /** + * An array of 64-bit words. + * + * @property {Array} words The array of CryptoJS.x64.Word objects. + * @property {number} sigBytes The number of significant bytes in this word array. + */ + var X64WordArray = C_x64.WordArray = Base.extend({ + /** + * Initializes a newly created word array. + * + * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects. + * @param {number} sigBytes (Optional) The number of significant bytes in the words. + * + * @example + * + * var wordArray = CryptoJS.x64.WordArray.create(); + * + * var wordArray = CryptoJS.x64.WordArray.create([ + * CryptoJS.x64.Word.create(0x00010203, 0x04050607), + * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f) + * ]); + * + * var wordArray = CryptoJS.x64.WordArray.create([ + * CryptoJS.x64.Word.create(0x00010203, 0x04050607), + * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f) + * ], 10); + */ + init: function (words, sigBytes) { + words = this.words = words || []; + + if (sigBytes != undefined) { + this.sigBytes = sigBytes; + } else { + this.sigBytes = words.length * 8; + } + }, + + /** + * Converts this 64-bit word array to a 32-bit word array. + * + * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array. + * + * @example + * + * var x32WordArray = x64WordArray.toX32(); + */ + toX32: function () { + // Shortcuts + var x64Words = this.words; + var x64WordsLength = x64Words.length; + + // Convert + var x32Words = []; + for (var i = 0; i < x64WordsLength; i++) { + var x64Word = x64Words[i]; + x32Words.push(x64Word.high); + x32Words.push(x64Word.low); + } + + return X32WordArray.create(x32Words, this.sigBytes); + }, + + /** + * Creates a copy of this word array. + * + * @return {X64WordArray} The clone. + * + * @example + * + * var clone = x64WordArray.clone(); + */ + clone: function () { + var clone = Base.clone.call(this); + + // Clone "words" array + var words = clone.words = this.words.slice(0); + + // Clone each X64Word object + var wordsLength = words.length; + for (var i = 0; i < wordsLength; i++) { + words[i] = words[i].clone(); + } + + return clone; + } + }); +}()); + + +(function (Math) { + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var WordArray = C_lib.WordArray; + var Hasher = C_lib.Hasher; + var C_x64 = C.x64; + var X64Word = C_x64.Word; + var C_algo = C.algo; + + // Constants tables + var RHO_OFFSETS = []; + var PI_INDEXES = []; + var ROUND_CONSTANTS = []; + + // Compute Constants + (function () { + // Compute rho offset constants + var x = 1, y = 0; + for (var t = 0; t < 24; t++) { + RHO_OFFSETS[x + 5 * y] = ((t + 1) * (t + 2) / 2) % 64; + + var newX = y % 5; + var newY = (2 * x + 3 * y) % 5; + x = newX; + y = newY; + } + + // Compute pi index constants + for (var x = 0; x < 5; x++) { + for (var y = 0; y < 5; y++) { + PI_INDEXES[x + 5 * y] = y + ((2 * x + 3 * y) % 5) * 5; + } + } + + // Compute round constants + var LFSR = 0x01; + for (var i = 0; i < 24; i++) { + var roundConstantMsw = 0; + var roundConstantLsw = 0; + + for (var j = 0; j < 7; j++) { + if (LFSR & 0x01) { + var bitPosition = (1 << j) - 1; + if (bitPosition < 32) { + roundConstantLsw ^= 1 << bitPosition; + } else /* if (bitPosition>= 32) */ { + roundConstantMsw ^= 1 << (bitPosition - 32); + } + } + + // Compute next LFSR + if (LFSR & 0x80) { + // Primitive polynomial over GF(2): x^8 + x^6 + x^5 + x^4 + 1 + LFSR = (LFSR << 1) ^ 0x71; + } else { + LFSR <<= 1; + } + } + + ROUND_CONSTANTS[i] = X64Word.create(roundConstantMsw, roundConstantLsw); + } + }()); + + // Reusable objects for temporary values + var T = []; + (function () { + for (var i = 0; i < 25; i++) { + T[i] = X64Word.create(); + } + }()); + + /** + * SHA-3 hash algorithm. + */ + var SHA3 = C_algo.SHA3 = Hasher.extend({ + /** + * Configuration options. + * + * @property {number} outputLength + * The desired number of bits in the output hash. + * Only values permitted are: 224, 256, 384, 512. + * Default: 512 + */ + cfg: Hasher.cfg.extend({ + outputLength: 512 + }), + + _doReset: function () { + var state = this._state = [] + for (var i = 0; i < 25; i++) { + state[i] = new X64Word.init(); + } + + this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32; + }, + + _doProcessBlock: function (M, offset) { + // Shortcuts + var state = this._state; + var nBlockSizeLanes = this.blockSize / 2; + + // Absorb + for (var i = 0; i < nBlockSizeLanes; i++) { + // Shortcuts + var M2i = M[offset + 2 * i]; + var M2i1 = M[offset + 2 * i + 1]; + + // Swap endian + M2i = ( + (((M2i << 8) | (M2i>>> 24)) & 0x00ff00ff) | + (((M2i << 24) | (M2i>>> 8)) & 0xff00ff00) + ); + M2i1 = ( + (((M2i1 << 8) | (M2i1>>> 24)) & 0x00ff00ff) | + (((M2i1 << 24) | (M2i1>>> 8)) & 0xff00ff00) + ); + + // Absorb message into state + var lane = state[i]; + lane.high ^= M2i1; + lane.low ^= M2i; + } + + // Rounds + for (var round = 0; round < 24; round++) { + // Theta + for (var x = 0; x < 5; x++) { + // Mix column lanes + var tMsw = 0, tLsw = 0; + for (var y = 0; y < 5; y++) { + var lane = state[x + 5 * y]; + tMsw ^= lane.high; + tLsw ^= lane.low; + } + + // Temporary values + var Tx = T[x]; + Tx.high = tMsw; + Tx.low = tLsw; + } + for (var x = 0; x < 5; x++) { + // Shortcuts + var Tx4 = T[(x + 4) % 5]; + var Tx1 = T[(x + 1) % 5]; + var Tx1Msw = Tx1.high; + var Tx1Lsw = Tx1.low; + + // Mix surrounding columns + var tMsw = Tx4.high ^ ((Tx1Msw << 1) | (Tx1Lsw>>> 31)); + var tLsw = Tx4.low ^ ((Tx1Lsw << 1) | (Tx1Msw>>> 31)); + for (var y = 0; y < 5; y++) { + var lane = state[x + 5 * y]; + lane.high ^= tMsw; + lane.low ^= tLsw; + } + } + + // Rho Pi + for (var laneIndex = 1; laneIndex < 25; laneIndex++) { + // Shortcuts + var lane = state[laneIndex]; + var laneMsw = lane.high; + var laneLsw = lane.low; + var rhoOffset = RHO_OFFSETS[laneIndex]; + + // Rotate lanes + if (rhoOffset < 32) { + var tMsw = (laneMsw << rhoOffset) | (laneLsw>>> (32 - rhoOffset)); + var tLsw = (laneLsw << rhoOffset) | (laneMsw>>> (32 - rhoOffset)); + } else /* if (rhoOffset>= 32) */ { + var tMsw = (laneLsw << (rhoOffset - 32)) | (laneMsw>>> (64 - rhoOffset)); + var tLsw = (laneMsw << (rhoOffset - 32)) | (laneLsw>>> (64 - rhoOffset)); + } + + // Transpose lanes + var TPiLane = T[PI_INDEXES[laneIndex]]; + TPiLane.high = tMsw; + TPiLane.low = tLsw; + } + + // Rho pi at x = y = 0 + var T0 = T[0]; + var state0 = state[0]; + T0.high = state0.high; + T0.low = state0.low; + + // Chi + for (var x = 0; x < 5; x++) { + for (var y = 0; y < 5; y++) { + // Shortcuts + var laneIndex = x + 5 * y; + var lane = state[laneIndex]; + var TLane = T[laneIndex]; + var Tx1Lane = T[((x + 1) % 5) + 5 * y]; + var Tx2Lane = T[((x + 2) % 5) + 5 * y]; + + // Mix rows + lane.high = TLane.high ^ (~Tx1Lane.high & Tx2Lane.high); + lane.low = TLane.low ^ (~Tx1Lane.low & Tx2Lane.low); + } + } + + // Iota + var lane = state[0]; + var roundConstant = ROUND_CONSTANTS[round]; + lane.high ^= roundConstant.high; + lane.low ^= roundConstant.low;; + } + }, + + _doFinalize: function () { + // Shortcuts + var data = this._data; + var dataWords = data.words; + var nBitsTotal = this._nDataBytes * 8; + var nBitsLeft = data.sigBytes * 8; + var blockSizeBits = this.blockSize * 32; + + // Add padding + dataWords[nBitsLeft>>> 5] |= 0x1 << (24 - nBitsLeft % 32); + dataWords[((Math.ceil((nBitsLeft + 1) / blockSizeBits) * blockSizeBits)>>> 5) - 1] |= 0x80; + data.sigBytes = dataWords.length * 4; + + // Hash final blocks + this._process(); + + // Shortcuts + var state = this._state; + var outputLengthBytes = this.cfg.outputLength / 8; + var outputLengthLanes = outputLengthBytes / 8; + + // Squeeze + var hashWords = []; + for (var i = 0; i < outputLengthLanes; i++) { + // Shortcuts + var lane = state[i]; + var laneMsw = lane.high; + var laneLsw = lane.low; + + // Swap endian + laneMsw = ( + (((laneMsw << 8) | (laneMsw>>> 24)) & 0x00ff00ff) | + (((laneMsw << 24) | (laneMsw>>> 8)) & 0xff00ff00) + ); + laneLsw = ( + (((laneLsw << 8) | (laneLsw>>> 24)) & 0x00ff00ff) | + (((laneLsw << 24) | (laneLsw>>> 8)) & 0xff00ff00) + ); + + // Squeeze state to retrieve hash + hashWords.push(laneLsw); + hashWords.push(laneMsw); + } + + // Return final computed hash + return new WordArray.init(hashWords, outputLengthBytes); + }, + + clone: function () { + var clone = Hasher.clone.call(this); + + var state = clone._state = this._state.slice(0); + for (var i = 0; i < 25; i++) { + state[i] = state[i].clone(); + } + + return clone; + } + }); + + /** + * Shortcut function to the hasher's object interface. + * + * @param {WordArray|string} message The message to hash. + * + * @return {WordArray} The hash. + * + * @static + * + * @example + * + * var hash = CryptoJS.SHA3('message'); + * var hash = CryptoJS.SHA3(wordArray); + */ + C.SHA3 = Hasher._createHelper(SHA3); + + /** + * Shortcut function to the HMAC's object interface. + * + * @param {WordArray|string} message The message to hash. + * @param {WordArray|string} key The secret key. + * + * @return {WordArray} The HMAC. + * + * @static + * + * @example + * + * var hmac = CryptoJS.HmacSHA3(message, key); + */ + C.HmacSHA3 = Hasher._createHmacHelper(SHA3); +}(Math)); + + +(function () { + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var Hasher = C_lib.Hasher; + var C_x64 = C.x64; + var X64Word = C_x64.Word; + var X64WordArray = C_x64.WordArray; + var C_algo = C.algo; + + function X64Word_create() { + return X64Word.create.apply(X64Word, arguments); + } + + // Constants + var K = [ + X64Word_create(0x428a2f98, 0xd728ae22), X64Word_create(0x71374491, 0x23ef65cd), + X64Word_create(0xb5c0fbcf, 0xec4d3b2f), X64Word_create(0xe9b5dba5, 0x8189dbbc), + X64Word_create(0x3956c25b, 0xf348b538), X64Word_create(0x59f111f1, 0xb605d019), + X64Word_create(0x923f82a4, 0xaf194f9b), X64Word_create(0xab1c5ed5, 0xda6d8118), + X64Word_create(0xd807aa98, 0xa3030242), X64Word_create(0x12835b01, 0x45706fbe), + X64Word_create(0x243185be, 0x4ee4b28c), X64Word_create(0x550c7dc3, 0xd5ffb4e2), + X64Word_create(0x72be5d74, 0xf27b896f), X64Word_create(0x80deb1fe, 0x3b1696b1), + X64Word_create(0x9bdc06a7, 0x25c71235), X64Word_create(0xc19bf174, 0xcf692694), + X64Word_create(0xe49b69c1, 0x9ef14ad2), X64Word_create(0xefbe4786, 0x384f25e3), + X64Word_create(0x0fc19dc6, 0x8b8cd5b5), X64Word_create(0x240ca1cc, 0x77ac9c65), + X64Word_create(0x2de92c6f, 0x592b0275), X64Word_create(0x4a7484aa, 0x6ea6e483), + X64Word_create(0x5cb0a9dc, 0xbd41fbd4), X64Word_create(0x76f988da, 0x831153b5), + X64Word_create(0x983e5152, 0xee66dfab), X64Word_create(0xa831c66d, 0x2db43210), + X64Word_create(0xb00327c8, 0x98fb213f), X64Word_create(0xbf597fc7, 0xbeef0ee4), + X64Word_create(0xc6e00bf3, 0x3da88fc2), X64Word_create(0xd5a79147, 0x930aa725), + X64Word_create(0x06ca6351, 0xe003826f), X64Word_create(0x14292967, 0x0a0e6e70), + X64Word_create(0x27b70a85, 0x46d22ffc), X64Word_create(0x2e1b2138, 0x5c26c926), + X64Word_create(0x4d2c6dfc, 0x5ac42aed), X64Word_create(0x53380d13, 0x9d95b3df), + X64Word_create(0x650a7354, 0x8baf63de), X64Word_create(0x766a0abb, 0x3c77b2a8), + X64Word_create(0x81c2c92e, 0x47edaee6), X64Word_create(0x92722c85, 0x1482353b), + X64Word_create(0xa2bfe8a1, 0x4cf10364), X64Word_create(0xa81a664b, 0xbc423001), + X64Word_create(0xc24b8b70, 0xd0f89791), X64Word_create(0xc76c51a3, 0x0654be30), + X64Word_create(0xd192e819, 0xd6ef5218), X64Word_create(0xd6990624, 0x5565a910), + X64Word_create(0xf40e3585, 0x5771202a), X64Word_create(0x106aa070, 0x32bbd1b8), + X64Word_create(0x19a4c116, 0xb8d2d0c8), X64Word_create(0x1e376c08, 0x5141ab53), + X64Word_create(0x2748774c, 0xdf8eeb99), X64Word_create(0x34b0bcb5, 0xe19b48a8), + X64Word_create(0x391c0cb3, 0xc5c95a63), X64Word_create(0x4ed8aa4a, 0xe3418acb), + X64Word_create(0x5b9cca4f, 0x7763e373), X64Word_create(0x682e6ff3, 0xd6b2b8a3), + X64Word_create(0x748f82ee, 0x5defb2fc), X64Word_create(0x78a5636f, 0x43172f60), + X64Word_create(0x84c87814, 0xa1f0ab72), X64Word_create(0x8cc70208, 0x1a6439ec), + X64Word_create(0x90befffa, 0x23631e28), X64Word_create(0xa4506ceb, 0xde82bde9), + X64Word_create(0xbef9a3f7, 0xb2c67915), X64Word_create(0xc67178f2, 0xe372532b), + X64Word_create(0xca273ece, 0xea26619c), X64Word_create(0xd186b8c7, 0x21c0c207), + X64Word_create(0xeada7dd6, 0xcde0eb1e), X64Word_create(0xf57d4f7f, 0xee6ed178), + X64Word_create(0x06f067aa, 0x72176fba), X64Word_create(0x0a637dc5, 0xa2c898a6), + X64Word_create(0x113f9804, 0xbef90dae), X64Word_create(0x1b710b35, 0x131c471b), + X64Word_create(0x28db77f5, 0x23047d84), X64Word_create(0x32caab7b, 0x40c72493), + X64Word_create(0x3c9ebe0a, 0x15c9bebc), X64Word_create(0x431d67c4, 0x9c100d4c), + X64Word_create(0x4cc5d4be, 0xcb3e42b6), X64Word_create(0x597f299c, 0xfc657e2a), + X64Word_create(0x5fcb6fab, 0x3ad6faec), X64Word_create(0x6c44198c, 0x4a475817) + ]; + + // Reusable objects + var W = []; + (function () { + for (var i = 0; i < 80; i++) { + W[i] = X64Word_create(); + } + }()); + + /** + * SHA-512 hash algorithm. + */ + var SHA512 = C_algo.SHA512 = Hasher.extend({ + _doReset: function () { + this._hash = new X64WordArray.init([ + new X64Word.init(0x6a09e667, 0xf3bcc908), new X64Word.init(0xbb67ae85, 0x84caa73b), + new X64Word.init(0x3c6ef372, 0xfe94f82b), new X64Word.init(0xa54ff53a, 0x5f1d36f1), + new X64Word.init(0x510e527f, 0xade682d1), new X64Word.init(0x9b05688c, 0x2b3e6c1f), + new X64Word.init(0x1f83d9ab, 0xfb41bd6b), new X64Word.init(0x5be0cd19, 0x137e2179) + ]); + }, + + _doProcessBlock: function (M, offset) { + // Shortcuts + var H = this._hash.words; + + var H0 = H[0]; + var H1 = H[1]; + var H2 = H[2]; + var H3 = H[3]; + var H4 = H[4]; + var H5 = H[5]; + var H6 = H[6]; + var H7 = H[7]; + + var H0h = H0.high; + var H0l = H0.low; + var H1h = H1.high; + var H1l = H1.low; + var H2h = H2.high; + var H2l = H2.low; + var H3h = H3.high; + var H3l = H3.low; + var H4h = H4.high; + var H4l = H4.low; + var H5h = H5.high; + var H5l = H5.low; + var H6h = H6.high; + var H6l = H6.low; + var H7h = H7.high; + var H7l = H7.low; + + // Working variables + var ah = H0h; + var al = H0l; + var bh = H1h; + var bl = H1l; + var ch = H2h; + var cl = H2l; + var dh = H3h; + var dl = H3l; + var eh = H4h; + var el = H4l; + var fh = H5h; + var fl = H5l; + var gh = H6h; + var gl = H6l; + var hh = H7h; + var hl = H7l; + + // Rounds + for (var i = 0; i < 80; i++) { + // Shortcut + var Wi = W[i]; + + // Extend message + if (i < 16) { + var Wih = Wi.high = M[offset + i * 2] | 0; + var Wil = Wi.low = M[offset + i * 2 + 1] | 0; + } else { + // Gamma0 + var gamma0x = W[i - 15]; + var gamma0xh = gamma0x.high; + var gamma0xl = gamma0x.low; + var gamma0h = ((gamma0xh>>> 1) | (gamma0xl << 31)) ^ ((gamma0xh>>> 8) | (gamma0xl << 24)) ^ (gamma0xh>>> 7); + var gamma0l = ((gamma0xl>>> 1) | (gamma0xh << 31)) ^ ((gamma0xl>>> 8) | (gamma0xh << 24)) ^ ((gamma0xl>>> 7) | (gamma0xh << 25)); + + // Gamma1 + var gamma1x = W[i - 2]; + var gamma1xh = gamma1x.high; + var gamma1xl = gamma1x.low; + var gamma1h = ((gamma1xh>>> 19) | (gamma1xl << 13)) ^ ((gamma1xh << 3) | (gamma1xl>>> 29)) ^ (gamma1xh>>> 6); + var gamma1l = ((gamma1xl>>> 19) | (gamma1xh << 13)) ^ ((gamma1xl << 3) | (gamma1xh>>> 29)) ^ ((gamma1xl>>> 6) | (gamma1xh << 26)); + + // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16] + var Wi7 = W[i - 7]; + var Wi7h = Wi7.high; + var Wi7l = Wi7.low; + + var Wi16 = W[i - 16]; + var Wi16h = Wi16.high; + var Wi16l = Wi16.low; + + var Wil = gamma0l + Wi7l; + var Wih = gamma0h + Wi7h + ((Wil>>> 0) < (gamma0l>>> 0) ? 1 : 0); + var Wil = Wil + gamma1l; + var Wih = Wih + gamma1h + ((Wil>>> 0) < (gamma1l>>> 0) ? 1 : 0); + var Wil = Wil + Wi16l; + var Wih = Wih + Wi16h + ((Wil>>> 0) < (Wi16l>>> 0) ? 1 : 0); + + Wi.high = Wih; + Wi.low = Wil; + } + + var chh = (eh & fh) ^ (~eh & gh); + var chl = (el & fl) ^ (~el & gl); + var majh = (ah & bh) ^ (ah & ch) ^ (bh & ch); + var majl = (al & bl) ^ (al & cl) ^ (bl & cl); + + var sigma0h = ((ah>>> 28) | (al << 4)) ^ ((ah << 30) | (al>>> 2)) ^ ((ah << 25) | (al>>> 7)); + var sigma0l = ((al>>> 28) | (ah << 4)) ^ ((al << 30) | (ah>>> 2)) ^ ((al << 25) | (ah>>> 7)); + var sigma1h = ((eh>>> 14) | (el << 18)) ^ ((eh>>> 18) | (el << 14)) ^ ((eh << 23) | (el>>> 9)); + var sigma1l = ((el>>> 14) | (eh << 18)) ^ ((el>>> 18) | (eh << 14)) ^ ((el << 23) | (eh>>> 9)); + + // t1 = h + sigma1 + ch + K[i] + W[i] + var Ki = K[i]; + var Kih = Ki.high; + var Kil = Ki.low; + + var t1l = hl + sigma1l; + var t1h = hh + sigma1h + ((t1l>>> 0) < (hl>>> 0) ? 1 : 0); + var t1l = t1l + chl; + var t1h = t1h + chh + ((t1l>>> 0) < (chl>>> 0) ? 1 : 0); + var t1l = t1l + Kil; + var t1h = t1h + Kih + ((t1l>>> 0) < (Kil>>> 0) ? 1 : 0); + var t1l = t1l + Wil; + var t1h = t1h + Wih + ((t1l>>> 0) < (Wil>>> 0) ? 1 : 0); + + // t2 = sigma0 + maj + var t2l = sigma0l + majl; + var t2h = sigma0h + majh + ((t2l>>> 0) < (sigma0l>>> 0) ? 1 : 0); + + // Update working variables + hh = gh; + hl = gl; + gh = fh; + gl = fl; + fh = eh; + fl = el; + el = (dl + t1l) | 0; + eh = (dh + t1h + ((el>>> 0) < (dl>>> 0) ? 1 : 0)) | 0; + dh = ch; + dl = cl; + ch = bh; + cl = bl; + bh = ah; + bl = al; + al = (t1l + t2l) | 0; + ah = (t1h + t2h + ((al>>> 0) < (t1l>>> 0) ? 1 : 0)) | 0; + } + + // Intermediate hash value + H0l = H0.low = (H0l + al); + H0.high = (H0h + ah + ((H0l>>> 0) < (al>>> 0) ? 1 : 0)); + H1l = H1.low = (H1l + bl); + H1.high = (H1h + bh + ((H1l>>> 0) < (bl>>> 0) ? 1 : 0)); + H2l = H2.low = (H2l + cl); + H2.high = (H2h + ch + ((H2l>>> 0) < (cl>>> 0) ? 1 : 0)); + H3l = H3.low = (H3l + dl); + H3.high = (H3h + dh + ((H3l>>> 0) < (dl>>> 0) ? 1 : 0)); + H4l = H4.low = (H4l + el); + H4.high = (H4h + eh + ((H4l>>> 0) < (el>>> 0) ? 1 : 0)); + H5l = H5.low = (H5l + fl); + H5.high = (H5h + fh + ((H5l>>> 0) < (fl>>> 0) ? 1 : 0)); + H6l = H6.low = (H6l + gl); + H6.high = (H6h + gh + ((H6l>>> 0) < (gl>>> 0) ? 1 : 0)); + H7l = H7.low = (H7l + hl); + H7.high = (H7h + hh + ((H7l>>> 0) < (hl>>> 0) ? 1 : 0)); + }, + + _doFinalize: function () { + // Shortcuts + var data = this._data; + var dataWords = data.words; + + var nBitsTotal = this._nDataBytes * 8; + var nBitsLeft = data.sigBytes * 8; + + // Add padding + dataWords[nBitsLeft>>> 5] |= 0x80 << (24 - nBitsLeft % 32); + dataWords[(((nBitsLeft + 128)>>> 10) << 5) + 30] = Math.floor(nBitsTotal / 0x100000000); + dataWords[(((nBitsLeft + 128)>>> 10) << 5) + 31] = nBitsTotal; + data.sigBytes = dataWords.length * 4; + + // Hash final blocks + this._process(); + + // Convert hash to 32-bit word array before returning + var hash = this._hash.toX32(); + + // Return final computed hash + return hash; + }, + + clone: function () { + var clone = Hasher.clone.call(this); + clone._hash = this._hash.clone(); + + return clone; + }, + + blockSize: 1024/32 + }); + + /** + * Shortcut function to the hasher's object interface. + * + * @param {WordArray|string} message The message to hash. + * + * @return {WordArray} The hash. + * + * @static + * + * @example + * + * var hash = CryptoJS.SHA512('message'); + * var hash = CryptoJS.SHA512(wordArray); + */ + C.SHA512 = Hasher._createHelper(SHA512); + + /** + * Shortcut function to the HMAC's object interface. + * + * @param {WordArray|string} message The message to hash. + * @param {WordArray|string} key The secret key. + * + * @return {WordArray} The HMAC. + * + * @static + * + * @example + * + * var hmac = CryptoJS.HmacSHA512(message, key); + */ + C.HmacSHA512 = Hasher._createHmacHelper(SHA512); +}()); + + +(function () { + // Shortcuts + var C = CryptoJS; + var C_x64 = C.x64; + var X64Word = C_x64.Word; + var X64WordArray = C_x64.WordArray; + var C_algo = C.algo; + var SHA512 = C_algo.SHA512; + + /** + * SHA-384 hash algorithm. + */ + var SHA384 = C_algo.SHA384 = SHA512.extend({ + _doReset: function () { + this._hash = new X64WordArray.init([ + new X64Word.init(0xcbbb9d5d, 0xc1059ed8), new X64Word.init(0x629a292a, 0x367cd507), + new X64Word.init(0x9159015a, 0x3070dd17), new X64Word.init(0x152fecd8, 0xf70e5939), + new X64Word.init(0x67332667, 0xffc00b31), new X64Word.init(0x8eb44a87, 0x68581511), + new X64Word.init(0xdb0c2e0d, 0x64f98fa7), new X64Word.init(0x47b5481d, 0xbefa4fa4) + ]); + }, + + _doFinalize: function () { + var hash = SHA512._doFinalize.call(this); + + hash.sigBytes -= 16; + + return hash; + } + }); + + /** + * Shortcut function to the hasher's object interface. + * + * @param {WordArray|string} message The message to hash. + * + * @return {WordArray} The hash. + * + * @static + * + * @example + * + * var hash = CryptoJS.SHA384('message'); + * var hash = CryptoJS.SHA384(wordArray); + */ + C.SHA384 = SHA512._createHelper(SHA384); + + /** + * Shortcut function to the HMAC's object interface. + * + * @param {WordArray|string} message The message to hash. + * @param {WordArray|string} key The secret key. + * + * @return {WordArray} The HMAC. + * + * @static + * + * @example + * + * var hmac = CryptoJS.HmacSHA384(message, key); + */ + C.HmacSHA384 = SHA512._createHmacHelper(SHA384); +}()); + + +/** + * Cipher core components. + */ +CryptoJS.lib.Cipher || (function (undefined) { + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var Base = C_lib.Base; + var WordArray = C_lib.WordArray; + var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm; + var C_enc = C.enc; + var Utf8 = C_enc.Utf8; + var Base64 = C_enc.Base64; + var C_algo = C.algo; + var EvpKDF = C_algo.EvpKDF; + + /** + * Abstract base cipher template. + * + * @property {number} keySize This cipher's key size. Default: 4 (128 bits) + * @property {number} ivSize This cipher's IV size. Default: 4 (128 bits) + * @property {number} _ENC_XFORM_MODE A constant representing encryption mode. + * @property {number} _DEC_XFORM_MODE A constant representing decryption mode. + */ + var Cipher = C_lib.Cipher = BufferedBlockAlgorithm.extend({ + /** + * Configuration options. + * + * @property {WordArray} iv The IV to use for this operation. + */ + cfg: Base.extend(), + + /** + * Creates this cipher in encryption mode. + * + * @param {WordArray} key The key. + * @param {Object} cfg (Optional) The configuration options to use for this operation. + * + * @return {Cipher} A cipher instance. + * + * @static + * + * @example + * + * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray }); + */ + createEncryptor: function (key, cfg) { + return this.create(this._ENC_XFORM_MODE, key, cfg); + }, + + /** + * Creates this cipher in decryption mode. + * + * @param {WordArray} key The key. + * @param {Object} cfg (Optional) The configuration options to use for this operation. + * + * @return {Cipher} A cipher instance. + * + * @static + * + * @example + * + * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray }); + */ + createDecryptor: function (key, cfg) { + return this.create(this._DEC_XFORM_MODE, key, cfg); + }, + + /** + * Initializes a newly created cipher. + * + * @param {number} xformMode Either the encryption or decryption transormation mode constant. + * @param {WordArray} key The key. + * @param {Object} cfg (Optional) The configuration options to use for this operation. + * + * @example + * + * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray }); + */ + init: function (xformMode, key, cfg) { + // Apply config defaults + this.cfg = this.cfg.extend(cfg); + + // Store transform mode and key + this._xformMode = xformMode; + this._key = key; + + // Set initial values + this.reset(); + }, + + /** + * Resets this cipher to its initial state. + * + * @example + * + * cipher.reset(); + */ + reset: function () { + // Reset data buffer + BufferedBlockAlgorithm.reset.call(this); + + // Perform concrete-cipher logic + this._doReset(); + }, + + /** + * Adds data to be encrypted or decrypted. + * + * @param {WordArray|string} dataUpdate The data to encrypt or decrypt. + * + * @return {WordArray} The data after processing. + * + * @example + * + * var encrypted = cipher.process('data'); + * var encrypted = cipher.process(wordArray); + */ + process: function (dataUpdate) { + // Append + this._append(dataUpdate); + + // Process available blocks + return this._process(); + }, + + /** + * Finalizes the encryption or decryption process. + * Note that the finalize operation is effectively a destructive, read-once operation. + * + * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt. + * + * @return {WordArray} The data after final processing. + * + * @example + * + * var encrypted = cipher.finalize(); + * var encrypted = cipher.finalize('data'); + * var encrypted = cipher.finalize(wordArray); + */ + finalize: function (dataUpdate) { + // Final data update + if (dataUpdate) { + this._append(dataUpdate); + } + + // Perform concrete-cipher logic + var finalProcessedData = this._doFinalize(); + + return finalProcessedData; + }, + + keySize: 128/32, + + ivSize: 128/32, + + _ENC_XFORM_MODE: 1, + + _DEC_XFORM_MODE: 2, + + /** + * Creates shortcut functions to a cipher's object interface. + * + * @param {Cipher} cipher The cipher to create a helper for. + * + * @return {Object} An object with encrypt and decrypt shortcut functions. + * + * @static + * + * @example + * + * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES); + */ + _createHelper: (function () { + function selectCipherStrategy(key) { + if (typeof key == 'string') { + return PasswordBasedCipher; + } else { + return SerializableCipher; + } + } + + return function (cipher) { + return { + encrypt: function (message, key, cfg) { + return selectCipherStrategy(key).encrypt(cipher, message, key, cfg); + }, + + decrypt: function (ciphertext, key, cfg) { + return selectCipherStrategy(key).decrypt(cipher, ciphertext, key, cfg); + } + }; + }; + }()) + }); + + /** + * Abstract base stream cipher template. + * + * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 1 (32 bits) + */ + var StreamCipher = C_lib.StreamCipher = Cipher.extend({ + _doFinalize: function () { + // Process partial blocks + var finalProcessedBlocks = this._process(!!'flush'); + + return finalProcessedBlocks; + }, + + blockSize: 1 + }); + + /** + * Mode namespace. + */ + var C_mode = C.mode = {}; + + /** + * Abstract base block cipher mode template. + */ + var BlockCipherMode = C_lib.BlockCipherMode = Base.extend({ + /** + * Creates this mode for encryption. + * + * @param {Cipher} cipher A block cipher instance. + * @param {Array} iv The IV words. + * + * @static + * + * @example + * + * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words); + */ + createEncryptor: function (cipher, iv) { + return this.Encryptor.create(cipher, iv); + }, + + /** + * Creates this mode for decryption. + * + * @param {Cipher} cipher A block cipher instance. + * @param {Array} iv The IV words. + * + * @static + * + * @example + * + * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words); + */ + createDecryptor: function (cipher, iv) { + return this.Decryptor.create(cipher, iv); + }, + + /** + * Initializes a newly created mode. + * + * @param {Cipher} cipher A block cipher instance. + * @param {Array} iv The IV words. + * + * @example + * + * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words); + */ + init: function (cipher, iv) { + this._cipher = cipher; + this._iv = iv; + } + }); + + /** + * Cipher Block Chaining mode. + */ + var CBC = C_mode.CBC = (function () { + /** + * Abstract base CBC mode. + */ + var CBC = BlockCipherMode.extend(); + + /** + * CBC encryptor. + */ + CBC.Encryptor = CBC.extend({ + /** + * Processes the data block at offset. + * + * @param {Array} words The data words to operate on. + * @param {number} offset The offset where the block starts. + * + * @example + * + * mode.processBlock(data.words, offset); + */ + processBlock: function (words, offset) { + // Shortcuts + var cipher = this._cipher; + var blockSize = cipher.blockSize; + + // XOR and encrypt + xorBlock.call(this, words, offset, blockSize); + cipher.encryptBlock(words, offset); + + // Remember this block to use with next block + this._prevBlock = words.slice(offset, offset + blockSize); + } + }); + + /** + * CBC decryptor. + */ + CBC.Decryptor = CBC.extend({ + /** + * Processes the data block at offset. + * + * @param {Array} words The data words to operate on. + * @param {number} offset The offset where the block starts. + * + * @example + * + * mode.processBlock(data.words, offset); + */ + processBlock: function (words, offset) { + // Shortcuts + var cipher = this._cipher; + var blockSize = cipher.blockSize; + + // Remember this block to use with next block + var thisBlock = words.slice(offset, offset + blockSize); + + // Decrypt and XOR + cipher.decryptBlock(words, offset); + xorBlock.call(this, words, offset, blockSize); + + // This block becomes the previous block + this._prevBlock = thisBlock; + } + }); + + function xorBlock(words, offset, blockSize) { + // Shortcut + var iv = this._iv; + + // Choose mixing block + if (iv) { + var block = iv; + + // Remove IV for subsequent blocks + this._iv = undefined; + } else { + var block = this._prevBlock; + } + + // XOR blocks + for (var i = 0; i < blockSize; i++) { + words[offset + i] ^= block[i]; + } + } + + return CBC; + }()); + + /** + * Padding namespace. + */ + var C_pad = C.pad = {}; + + /** + * PKCS #5/7 padding strategy. + */ + var Pkcs7 = C_pad.Pkcs7 = { + /** + * Pads data using the algorithm defined in PKCS #5/7. + * + * @param {WordArray} data The data to pad. + * @param {number} blockSize The multiple that the data should be padded to. + * + * @static + * + * @example + * + * CryptoJS.pad.Pkcs7.pad(wordArray, 4); + */ + pad: function (data, blockSize) { + // Shortcut + var blockSizeBytes = blockSize * 4; + + // Count padding bytes + var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes; + + // Create padding word + var paddingWord = (nPaddingBytes << 24) | (nPaddingBytes << 16) | (nPaddingBytes << 8) | nPaddingBytes; + + // Create padding + var paddingWords = []; + for (var i = 0; i < nPaddingBytes; i += 4) { + paddingWords.push(paddingWord); + } + var padding = WordArray.create(paddingWords, nPaddingBytes); + + // Add padding + data.concat(padding); + }, + + /** + * Unpads data that had been padded using the algorithm defined in PKCS #5/7. + * + * @param {WordArray} data The data to unpad. + * + * @static + * + * @example + * + * CryptoJS.pad.Pkcs7.unpad(wordArray); + */ + unpad: function (data) { + // Get number of padding bytes from last byte + var nPaddingBytes = data.words[(data.sigBytes - 1)>>> 2] & 0xff; + + // Remove padding + data.sigBytes -= nPaddingBytes; + } + }; + + /** + * Abstract base block cipher template. + * + * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 4 (128 bits) + */ + var BlockCipher = C_lib.BlockCipher = Cipher.extend({ + /** + * Configuration options. + * + * @property {Mode} mode The block mode to use. Default: CBC + * @property {Padding} padding The padding strategy to use. Default: Pkcs7 + */ + cfg: Cipher.cfg.extend({ + mode: CBC, + padding: Pkcs7 + }), + + reset: function () { + // Reset cipher + Cipher.reset.call(this); + + // Shortcuts + var cfg = this.cfg; + var iv = cfg.iv; + var mode = cfg.mode; + + // Reset block mode + if (this._xformMode == this._ENC_XFORM_MODE) { + var modeCreator = mode.createEncryptor; + } else /* if (this._xformMode == this._DEC_XFORM_MODE) */ { + var modeCreator = mode.createDecryptor; + // Keep at least one block in the buffer for unpadding + this._minBufferSize = 1; + } + + if (this._mode && this._mode.__creator == modeCreator) { + this._mode.init(this, iv && iv.words); + } else { + this._mode = modeCreator.call(mode, this, iv && iv.words); + this._mode.__creator = modeCreator; + } + }, + + _doProcessBlock: function (words, offset) { + this._mode.processBlock(words, offset); + }, + + _doFinalize: function () { + // Shortcut + var padding = this.cfg.padding; + + // Finalize + if (this._xformMode == this._ENC_XFORM_MODE) { + // Pad data + padding.pad(this._data, this.blockSize); + + // Process final blocks + var finalProcessedBlocks = this._process(!!'flush'); + } else /* if (this._xformMode == this._DEC_XFORM_MODE) */ { + // Process final blocks + var finalProcessedBlocks = this._process(!!'flush'); + + // Unpad data + padding.unpad(finalProcessedBlocks); + } + + return finalProcessedBlocks; + }, + + blockSize: 128/32 + }); + + /** + * A collection of cipher parameters. + * + * @property {WordArray} ciphertext The raw ciphertext. + * @property {WordArray} key The key to this ciphertext. + * @property {WordArray} iv The IV used in the ciphering operation. + * @property {WordArray} salt The salt used with a key derivation function. + * @property {Cipher} algorithm The cipher algorithm. + * @property {Mode} mode The block mode used in the ciphering operation. + * @property {Padding} padding The padding scheme used in the ciphering operation. + * @property {number} blockSize The block size of the cipher. + * @property {Format} formatter The default formatting strategy to convert this cipher params object to a string. + */ + var CipherParams = C_lib.CipherParams = Base.extend({ + /** + * Initializes a newly created cipher params object. + * + * @param {Object} cipherParams An object with any of the possible cipher parameters. + * + * @example + * + * var cipherParams = CryptoJS.lib.CipherParams.create({ + * ciphertext: ciphertextWordArray, + * key: keyWordArray, + * iv: ivWordArray, + * salt: saltWordArray, + * algorithm: CryptoJS.algo.AES, + * mode: CryptoJS.mode.CBC, + * padding: CryptoJS.pad.PKCS7, + * blockSize: 4, + * formatter: CryptoJS.format.OpenSSL + * }); + */ + init: function (cipherParams) { + this.mixIn(cipherParams); + }, + + /** + * Converts this cipher params object to a string. + * + * @param {Format} formatter (Optional) The formatting strategy to use. + * + * @return {string} The stringified cipher params. + * + * @throws Error If neither the formatter nor the default formatter is set. + * + * @example + * + * var string = cipherParams + ''; + * var string = cipherParams.toString(); + * var string = cipherParams.toString(CryptoJS.format.OpenSSL); + */ + toString: function (formatter) { + return (formatter || this.formatter).stringify(this); + } + }); + + /** + * Format namespace. + */ + var C_format = C.format = {}; + + /** + * OpenSSL formatting strategy. + */ + var OpenSSLFormatter = C_format.OpenSSL = { + /** + * Converts a cipher params object to an OpenSSL-compatible string. + * + * @param {CipherParams} cipherParams The cipher params object. + * + * @return {string} The OpenSSL-compatible string. + * + * @static + * + * @example + * + * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams); + */ + stringify: function (cipherParams) { + // Shortcuts + var ciphertext = cipherParams.ciphertext; + var salt = cipherParams.salt; + + // Format + if (salt) { + var wordArray = WordArray.create([0x53616c74, 0x65645f5f]).concat(salt).concat(ciphertext); + } else { + var wordArray = ciphertext; + } + + return wordArray.toString(Base64); + }, + + /** + * Converts an OpenSSL-compatible string to a cipher params object. + * + * @param {string} openSSLStr The OpenSSL-compatible string. + * + * @return {CipherParams} The cipher params object. + * + * @static + * + * @example + * + * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString); + */ + parse: function (openSSLStr) { + // Parse base64 + var ciphertext = Base64.parse(openSSLStr); + + // Shortcut + var ciphertextWords = ciphertext.words; + + // Test for salt + if (ciphertextWords[0] == 0x53616c74 && ciphertextWords[1] == 0x65645f5f) { + // Extract salt + var salt = WordArray.create(ciphertextWords.slice(2, 4)); + + // Remove salt from ciphertext + ciphertextWords.splice(0, 4); + ciphertext.sigBytes -= 16; + } + + return CipherParams.create({ ciphertext: ciphertext, salt: salt }); + } + }; + + /** + * A cipher wrapper that returns ciphertext as a serializable cipher params object. + */ + var SerializableCipher = C_lib.SerializableCipher = Base.extend({ + /** + * Configuration options. + * + * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL + */ + cfg: Base.extend({ + format: OpenSSLFormatter + }), + + /** + * Encrypts a message. + * + * @param {Cipher} cipher The cipher algorithm to use. + * @param {WordArray|string} message The message to encrypt. + * @param {WordArray} key The key. + * @param {Object} cfg (Optional) The configuration options to use for this operation. + * + * @return {CipherParams} A cipher params object. + * + * @static + * + * @example + * + * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key); + * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv }); + * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL }); + */ + encrypt: function (cipher, message, key, cfg) { + // Apply config defaults + cfg = this.cfg.extend(cfg); + + // Encrypt + var encryptor = cipher.createEncryptor(key, cfg); + var ciphertext = encryptor.finalize(message); + + // Shortcut + var cipherCfg = encryptor.cfg; + + // Create and return serializable cipher params + return CipherParams.create({ + ciphertext: ciphertext, + key: key, + iv: cipherCfg.iv, + algorithm: cipher, + mode: cipherCfg.mode, + padding: cipherCfg.padding, + blockSize: cipher.blockSize, + formatter: cfg.format + }); + }, + + /** + * Decrypts serialized ciphertext. + * + * @param {Cipher} cipher The cipher algorithm to use. + * @param {CipherParams|string} ciphertext The ciphertext to decrypt. + * @param {WordArray} key The key. + * @param {Object} cfg (Optional) The configuration options to use for this operation. + * + * @return {WordArray} The plaintext. + * + * @static + * + * @example + * + * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL }); + * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL }); + */ + decrypt: function (cipher, ciphertext, key, cfg) { + // Apply config defaults + cfg = this.cfg.extend(cfg); + + // Convert string to CipherParams + ciphertext = this._parse(ciphertext, cfg.format); + + // Decrypt + var plaintext = cipher.createDecryptor(key, cfg).finalize(ciphertext.ciphertext); + + return plaintext; + }, + + /** + * Converts serialized ciphertext to CipherParams, + * else assumed CipherParams already and returns ciphertext unchanged. + * + * @param {CipherParams|string} ciphertext The ciphertext. + * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext. + * + * @return {CipherParams} The unserialized ciphertext. + * + * @static + * + * @example + * + * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format); + */ + _parse: function (ciphertext, format) { + if (typeof ciphertext == 'string') { + return format.parse(ciphertext, this); + } else { + return ciphertext; + } + } + }); + + /** + * Key derivation function namespace. + */ + var C_kdf = C.kdf = {}; + + /** + * OpenSSL key derivation function. + */ + var OpenSSLKdf = C_kdf.OpenSSL = { + /** + * Derives a key and IV from a password. + * + * @param {string} password The password to derive from. + * @param {number} keySize The size in words of the key to generate. + * @param {number} ivSize The size in words of the IV to generate. + * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly. + * + * @return {CipherParams} A cipher params object with the key, IV, and salt. + * + * @static + * + * @example + * + * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32); + * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt'); + */ + execute: function (password, keySize, ivSize, salt) { + // Generate random salt + if (!salt) { + salt = WordArray.random(64/8); + } + + // Derive key and IV + var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt); + + // Separate key and IV + var iv = WordArray.create(key.words.slice(keySize), ivSize * 4); + key.sigBytes = keySize * 4; + + // Return params + return CipherParams.create({ key: key, iv: iv, salt: salt }); + } + }; + + /** + * A serializable cipher wrapper that derives the key from a password, + * and returns ciphertext as a serializable cipher params object. + */ + var PasswordBasedCipher = C_lib.PasswordBasedCipher = SerializableCipher.extend({ + /** + * Configuration options. + * + * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL + */ + cfg: SerializableCipher.cfg.extend({ + kdf: OpenSSLKdf + }), + + /** + * Encrypts a message using a password. + * + * @param {Cipher} cipher The cipher algorithm to use. + * @param {WordArray|string} message The message to encrypt. + * @param {string} password The password. + * @param {Object} cfg (Optional) The configuration options to use for this operation. + * + * @return {CipherParams} A cipher params object. + * + * @static + * + * @example + * + * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password'); + * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL }); + */ + encrypt: function (cipher, message, password, cfg) { + // Apply config defaults + cfg = this.cfg.extend(cfg); + + // Derive key and other params + var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize); + + // Add IV to config + cfg.iv = derivedParams.iv; + + // Encrypt + var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg); + + // Mix in derived params + ciphertext.mixIn(derivedParams); + + return ciphertext; + }, + + /** + * Decrypts serialized ciphertext using a password. + * + * @param {Cipher} cipher The cipher algorithm to use. + * @param {CipherParams|string} ciphertext The ciphertext to decrypt. + * @param {string} password The password. + * @param {Object} cfg (Optional) The configuration options to use for this operation. + * + * @return {WordArray} The plaintext. + * + * @static + * + * @example + * + * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL }); + * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL }); + */ + decrypt: function (cipher, ciphertext, password, cfg) { + // Apply config defaults + cfg = this.cfg.extend(cfg); + + // Convert string to CipherParams + ciphertext = this._parse(ciphertext, cfg.format); + + // Derive key and other params + var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt); + + // Add IV to config + cfg.iv = derivedParams.iv; + + // Decrypt + var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg); + + return plaintext; + } + }); +}()); + + +/** + * Cipher Feedback block mode. + */ +CryptoJS.mode.CFB = (function () { + var CFB = CryptoJS.lib.BlockCipherMode.extend(); + + CFB.Encryptor = CFB.extend({ + processBlock: function (words, offset) { + // Shortcuts + var cipher = this._cipher; + var blockSize = cipher.blockSize; + + generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher); + + // Remember this block to use with next block + this._prevBlock = words.slice(offset, offset + blockSize); + } + }); + + CFB.Decryptor = CFB.extend({ + processBlock: function (words, offset) { + // Shortcuts + var cipher = this._cipher; + var blockSize = cipher.blockSize; + + // Remember this block to use with next block + var thisBlock = words.slice(offset, offset + blockSize); + + generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher); + + // This block becomes the previous block + this._prevBlock = thisBlock; + } + }); + + function generateKeystreamAndEncrypt(words, offset, blockSize, cipher) { + // Shortcut + var iv = this._iv; + + // Generate keystream + if (iv) { + var keystream = iv.slice(0); + + // Remove IV for subsequent blocks + this._iv = undefined; + } else { + var keystream = this._prevBlock; + } + cipher.encryptBlock(keystream, 0); + + // Encrypt + for (var i = 0; i < blockSize; i++) { + words[offset + i] ^= keystream[i]; + } + } + + return CFB; +}()); + + +/** + * Electronic Codebook block mode. + */ +CryptoJS.mode.ECB = (function () { + var ECB = CryptoJS.lib.BlockCipherMode.extend(); + + ECB.Encryptor = ECB.extend({ + processBlock: function (words, offset) { + this._cipher.encryptBlock(words, offset); + } + }); + + ECB.Decryptor = ECB.extend({ + processBlock: function (words, offset) { + this._cipher.decryptBlock(words, offset); + } + }); + + return ECB; +}()); + + +/** + * ANSI X.923 padding strategy. + */ +CryptoJS.pad.AnsiX923 = { + pad: function (data, blockSize) { + // Shortcuts + var dataSigBytes = data.sigBytes; + var blockSizeBytes = blockSize * 4; + + // Count padding bytes + var nPaddingBytes = blockSizeBytes - dataSigBytes % blockSizeBytes; + + // Compute last byte position + var lastBytePos = dataSigBytes + nPaddingBytes - 1; + + // Pad + data.clamp(); + data.words[lastBytePos>>> 2] |= nPaddingBytes << (24 - (lastBytePos % 4) * 8); + data.sigBytes += nPaddingBytes; + }, + + unpad: function (data) { + // Get number of padding bytes from last byte + var nPaddingBytes = data.words[(data.sigBytes - 1)>>> 2] & 0xff; + + // Remove padding + data.sigBytes -= nPaddingBytes; + } +}; + + +/** + * ISO 10126 padding strategy. + */ +CryptoJS.pad.Iso10126 = { + pad: function (data, blockSize) { + // Shortcut + var blockSizeBytes = blockSize * 4; + + // Count padding bytes + var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes; + + // Pad + data.concat(CryptoJS.lib.WordArray.random(nPaddingBytes - 1)). + concat(CryptoJS.lib.WordArray.create([nPaddingBytes << 24], 1)); + }, + + unpad: function (data) { + // Get number of padding bytes from last byte + var nPaddingBytes = data.words[(data.sigBytes - 1)>>> 2] & 0xff; + + // Remove padding + data.sigBytes -= nPaddingBytes; + } +}; + + +/** + * ISO/IEC 9797-1 Padding Method 2. + */ +CryptoJS.pad.Iso97971 = { + pad: function (data, blockSize) { + // Add 0x80 byte + data.concat(CryptoJS.lib.WordArray.create([0x80000000], 1)); + + // Zero pad the rest + CryptoJS.pad.ZeroPadding.pad(data, blockSize); + }, + + unpad: function (data) { + // Remove zero padding + CryptoJS.pad.ZeroPadding.unpad(data); + + // Remove one more byte -- the 0x80 byte + data.sigBytes--; + } +}; + + +/** + * Output Feedback block mode. + */ +CryptoJS.mode.OFB = (function () { + var OFB = CryptoJS.lib.BlockCipherMode.extend(); + + var Encryptor = OFB.Encryptor = OFB.extend({ + processBlock: function (words, offset) { + // Shortcuts + var cipher = this._cipher + var blockSize = cipher.blockSize; + var iv = this._iv; + var keystream = this._keystream; + + // Generate keystream + if (iv) { + keystream = this._keystream = iv.slice(0); + + // Remove IV for subsequent blocks + this._iv = undefined; + } + cipher.encryptBlock(keystream, 0); + + // Encrypt + for (var i = 0; i < blockSize; i++) { + words[offset + i] ^= keystream[i]; + } + } + }); + + OFB.Decryptor = Encryptor; + + return OFB; +}()); + + +/** + * A noop padding strategy. + */ +CryptoJS.pad.NoPadding = { + pad: function () { + }, + + unpad: function () { + } +}; + + +(function (undefined) { + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var CipherParams = C_lib.CipherParams; + var C_enc = C.enc; + var Hex = C_enc.Hex; + var C_format = C.format; + + var HexFormatter = C_format.Hex = { + /** + * Converts the ciphertext of a cipher params object to a hexadecimally encoded string. + * + * @param {CipherParams} cipherParams The cipher params object. + * + * @return {string} The hexadecimally encoded string. + * + * @static + * + * @example + * + * var hexString = CryptoJS.format.Hex.stringify(cipherParams); + */ + stringify: function (cipherParams) { + return cipherParams.ciphertext.toString(Hex); + }, + + /** + * Converts a hexadecimally encoded ciphertext string to a cipher params object. + * + * @param {string} input The hexadecimally encoded string. + * + * @return {CipherParams} The cipher params object. + * + * @static + * + * @example + * + * var cipherParams = CryptoJS.format.Hex.parse(hexString); + */ + parse: function (input) { + var ciphertext = Hex.parse(input); + return CipherParams.create({ ciphertext: ciphertext }); + } + }; +}()); + + +(function () { + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var BlockCipher = C_lib.BlockCipher; + var C_algo = C.algo; + + // Lookup tables + var SBOX = []; + var INV_SBOX = []; + var SUB_MIX_0 = []; + var SUB_MIX_1 = []; + var SUB_MIX_2 = []; + var SUB_MIX_3 = []; + var INV_SUB_MIX_0 = []; + var INV_SUB_MIX_1 = []; + var INV_SUB_MIX_2 = []; + var INV_SUB_MIX_3 = []; + + // Compute lookup tables + (function () { + // Compute double table + var d = []; + for (var i = 0; i < 256; i++) { + if (i < 128) { + d[i] = i << 1; + } else { + d[i] = (i << 1) ^ 0x11b; + } + } + + // Walk GF(2^8) + var x = 0; + var xi = 0; + for (var i = 0; i < 256; i++) { + // Compute sbox + var sx = xi ^ (xi << 1) ^ (xi << 2) ^ (xi << 3) ^ (xi << 4); + sx = (sx>>> 8) ^ (sx & 0xff) ^ 0x63; + SBOX[x] = sx; + INV_SBOX[sx] = x; + + // Compute multiplication + var x2 = d[x]; + var x4 = d[x2]; + var x8 = d[x4]; + + // Compute sub bytes, mix columns tables + var t = (d[sx] * 0x101) ^ (sx * 0x1010100); + SUB_MIX_0[x] = (t << 24) | (t>>> 8); + SUB_MIX_1[x] = (t << 16) | (t>>> 16); + SUB_MIX_2[x] = (t << 8) | (t>>> 24); + SUB_MIX_3[x] = t; + + // Compute inv sub bytes, inv mix columns tables + var t = (x8 * 0x1010101) ^ (x4 * 0x10001) ^ (x2 * 0x101) ^ (x * 0x1010100); + INV_SUB_MIX_0[sx] = (t << 24) | (t>>> 8); + INV_SUB_MIX_1[sx] = (t << 16) | (t>>> 16); + INV_SUB_MIX_2[sx] = (t << 8) | (t>>> 24); + INV_SUB_MIX_3[sx] = t; + + // Compute next counter + if (!x) { + x = xi = 1; + } else { + x = x2 ^ d[d[d[x8 ^ x2]]]; + xi ^= d[d[xi]]; + } + } + }()); + + // Precomputed Rcon lookup + var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36]; + + /** + * AES block cipher algorithm. + */ + var AES = C_algo.AES = BlockCipher.extend({ + _doReset: function () { + // Skip reset of nRounds has been set before and key did not change + if (this._nRounds && this._keyPriorReset === this._key) { + return; + } + + // Shortcuts + var key = this._keyPriorReset = this._key; + var keyWords = key.words; + var keySize = key.sigBytes / 4; + + // Compute number of rounds + var nRounds = this._nRounds = keySize + 6; + + // Compute number of key schedule rows + var ksRows = (nRounds + 1) * 4; + + // Compute key schedule + var keySchedule = this._keySchedule = []; + for (var ksRow = 0; ksRow < ksRows; ksRow++) { + if (ksRow < keySize) { + keySchedule[ksRow] = keyWords[ksRow]; + } else { + var t = keySchedule[ksRow - 1]; + + if (!(ksRow % keySize)) { + // Rot word + t = (t << 8) | (t>>> 24); + + // Sub word + t = (SBOX[t>>> 24] << 24) | (SBOX[(t>>> 16) & 0xff] << 16) | (SBOX[(t>>> 8) & 0xff] << 8) | SBOX[t & 0xff]; + + // Mix Rcon + t ^= RCON[(ksRow / keySize) | 0] << 24; + } else if (keySize> 6 && ksRow % keySize == 4) { + // Sub word + t = (SBOX[t>>> 24] << 24) | (SBOX[(t>>> 16) & 0xff] << 16) | (SBOX[(t>>> 8) & 0xff] << 8) | SBOX[t & 0xff]; + } + + keySchedule[ksRow] = keySchedule[ksRow - keySize] ^ t; + } + } + + // Compute inv key schedule + var invKeySchedule = this._invKeySchedule = []; + for (var invKsRow = 0; invKsRow < ksRows; invKsRow++) { + var ksRow = ksRows - invKsRow; + + if (invKsRow % 4) { + var t = keySchedule[ksRow]; + } else { + var t = keySchedule[ksRow - 4]; + } + + if (invKsRow < 4 || ksRow <= 4) { + invKeySchedule[invKsRow] = t; + } else { + invKeySchedule[invKsRow] = INV_SUB_MIX_0[SBOX[t>>> 24]] ^ INV_SUB_MIX_1[SBOX[(t>>> 16) & 0xff]] ^ + INV_SUB_MIX_2[SBOX[(t>>> 8) & 0xff]] ^ INV_SUB_MIX_3[SBOX[t & 0xff]]; + } + } + }, + + encryptBlock: function (M, offset) { + this._doCryptBlock(M, offset, this._keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX); + }, + + decryptBlock: function (M, offset) { + // Swap 2nd and 4th rows + var t = M[offset + 1]; + M[offset + 1] = M[offset + 3]; + M[offset + 3] = t; + + this._doCryptBlock(M, offset, this._invKeySchedule, INV_SUB_MIX_0, INV_SUB_MIX_1, INV_SUB_MIX_2, INV_SUB_MIX_3, INV_SBOX); + + // Inv swap 2nd and 4th rows + var t = M[offset + 1]; + M[offset + 1] = M[offset + 3]; + M[offset + 3] = t; + }, + + _doCryptBlock: function (M, offset, keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX) { + // Shortcut + var nRounds = this._nRounds; + + // Get input, add round key + var s0 = M[offset] ^ keySchedule[0]; + var s1 = M[offset + 1] ^ keySchedule[1]; + var s2 = M[offset + 2] ^ keySchedule[2]; + var s3 = M[offset + 3] ^ keySchedule[3]; + + // Key schedule row counter + var ksRow = 4; + + // Rounds + for (var round = 1; round < nRounds; round++) { + // Shift rows, sub bytes, mix columns, add round key + var t0 = SUB_MIX_0[s0>>> 24] ^ SUB_MIX_1[(s1>>> 16) & 0xff] ^ SUB_MIX_2[(s2>>> 8) & 0xff] ^ SUB_MIX_3[s3 & 0xff] ^ keySchedule[ksRow++]; + var t1 = SUB_MIX_0[s1>>> 24] ^ SUB_MIX_1[(s2>>> 16) & 0xff] ^ SUB_MIX_2[(s3>>> 8) & 0xff] ^ SUB_MIX_3[s0 & 0xff] ^ keySchedule[ksRow++]; + var t2 = SUB_MIX_0[s2>>> 24] ^ SUB_MIX_1[(s3>>> 16) & 0xff] ^ SUB_MIX_2[(s0>>> 8) & 0xff] ^ SUB_MIX_3[s1 & 0xff] ^ keySchedule[ksRow++]; + var t3 = SUB_MIX_0[s3>>> 24] ^ SUB_MIX_1[(s0>>> 16) & 0xff] ^ SUB_MIX_2[(s1>>> 8) & 0xff] ^ SUB_MIX_3[s2 & 0xff] ^ keySchedule[ksRow++]; + + // Update state + s0 = t0; + s1 = t1; + s2 = t2; + s3 = t3; + } + + // Shift rows, sub bytes, add round key + var t0 = ((SBOX[s0>>> 24] << 24) | (SBOX[(s1>>> 16) & 0xff] << 16) | (SBOX[(s2>>> 8) & 0xff] << 8) | SBOX[s3 & 0xff]) ^ keySchedule[ksRow++]; + var t1 = ((SBOX[s1>>> 24] << 24) | (SBOX[(s2>>> 16) & 0xff] << 16) | (SBOX[(s3>>> 8) & 0xff] << 8) | SBOX[s0 & 0xff]) ^ keySchedule[ksRow++]; + var t2 = ((SBOX[s2>>> 24] << 24) | (SBOX[(s3>>> 16) & 0xff] << 16) | (SBOX[(s0>>> 8) & 0xff] << 8) | SBOX[s1 & 0xff]) ^ keySchedule[ksRow++]; + var t3 = ((SBOX[s3>>> 24] << 24) | (SBOX[(s0>>> 16) & 0xff] << 16) | (SBOX[(s1>>> 8) & 0xff] << 8) | SBOX[s2 & 0xff]) ^ keySchedule[ksRow++]; + + // Set output + M[offset] = t0; + M[offset + 1] = t1; + M[offset + 2] = t2; + M[offset + 3] = t3; + }, + + keySize: 256/32 + }); + + /** + * Shortcut functions to the cipher's object interface. + * + * @example + * + * var ciphertext = CryptoJS.AES.encrypt(message, key, cfg); + * var plaintext = CryptoJS.AES.decrypt(ciphertext, key, cfg); + */ + C.AES = BlockCipher._createHelper(AES); +}()); + + +(function () { + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var WordArray = C_lib.WordArray; + var BlockCipher = C_lib.BlockCipher; + var C_algo = C.algo; + + // Permuted Choice 1 constants + var PC1 = [ + 57, 49, 41, 33, 25, 17, 9, 1, + 58, 50, 42, 34, 26, 18, 10, 2, + 59, 51, 43, 35, 27, 19, 11, 3, + 60, 52, 44, 36, 63, 55, 47, 39, + 31, 23, 15, 7, 62, 54, 46, 38, + 30, 22, 14, 6, 61, 53, 45, 37, + 29, 21, 13, 5, 28, 20, 12, 4 + ]; + + // Permuted Choice 2 constants + var PC2 = [ + 14, 17, 11, 24, 1, 5, + 3, 28, 15, 6, 21, 10, + 23, 19, 12, 4, 26, 8, + 16, 7, 27, 20, 13, 2, + 41, 52, 31, 37, 47, 55, + 30, 40, 51, 45, 33, 48, + 44, 49, 39, 56, 34, 53, + 46, 42, 50, 36, 29, 32 + ]; + + // Cumulative bit shift constants + var BIT_SHIFTS = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28]; + + // SBOXes and round permutation constants + var SBOX_P = [ + { + 0x0: 0x808200, + 0x10000000: 0x8000, + 0x20000000: 0x808002, + 0x30000000: 0x2, + 0x40000000: 0x200, + 0x50000000: 0x808202, + 0x60000000: 0x800202, + 0x70000000: 0x800000, + 0x80000000: 0x202, + 0x90000000: 0x800200, + 0xa0000000: 0x8200, + 0xb0000000: 0x808000, + 0xc0000000: 0x8002, + 0xd0000000: 0x800002, + 0xe0000000: 0x0, + 0xf0000000: 0x8202, + 0x8000000: 0x0, + 0x18000000: 0x808202, + 0x28000000: 0x8202, + 0x38000000: 0x8000, + 0x48000000: 0x808200, + 0x58000000: 0x200, + 0x68000000: 0x808002, + 0x78000000: 0x2, + 0x88000000: 0x800200, + 0x98000000: 0x8200, + 0xa8000000: 0x808000, + 0xb8000000: 0x800202, + 0xc8000000: 0x800002, + 0xd8000000: 0x8002, + 0xe8000000: 0x202, + 0xf8000000: 0x800000, + 0x1: 0x8000, + 0x10000001: 0x2, + 0x20000001: 0x808200, + 0x30000001: 0x800000, + 0x40000001: 0x808002, + 0x50000001: 0x8200, + 0x60000001: 0x200, + 0x70000001: 0x800202, + 0x80000001: 0x808202, + 0x90000001: 0x808000, + 0xa0000001: 0x800002, + 0xb0000001: 0x8202, + 0xc0000001: 0x202, + 0xd0000001: 0x800200, + 0xe0000001: 0x8002, + 0xf0000001: 0x0, + 0x8000001: 0x808202, + 0x18000001: 0x808000, + 0x28000001: 0x800000, + 0x38000001: 0x200, + 0x48000001: 0x8000, + 0x58000001: 0x800002, + 0x68000001: 0x2, + 0x78000001: 0x8202, + 0x88000001: 0x8002, + 0x98000001: 0x800202, + 0xa8000001: 0x202, + 0xb8000001: 0x808200, + 0xc8000001: 0x800200, + 0xd8000001: 0x0, + 0xe8000001: 0x8200, + 0xf8000001: 0x808002 + }, + { + 0x0: 0x40084010, + 0x1000000: 0x4000, + 0x2000000: 0x80000, + 0x3000000: 0x40080010, + 0x4000000: 0x40000010, + 0x5000000: 0x40084000, + 0x6000000: 0x40004000, + 0x7000000: 0x10, + 0x8000000: 0x84000, + 0x9000000: 0x40004010, + 0xa000000: 0x40000000, + 0xb000000: 0x84010, + 0xc000000: 0x80010, + 0xd000000: 0x0, + 0xe000000: 0x4010, + 0xf000000: 0x40080000, + 0x800000: 0x40004000, + 0x1800000: 0x84010, + 0x2800000: 0x10, + 0x3800000: 0x40004010, + 0x4800000: 0x40084010, + 0x5800000: 0x40000000, + 0x6800000: 0x80000, + 0x7800000: 0x40080010, + 0x8800000: 0x80010, + 0x9800000: 0x0, + 0xa800000: 0x4000, + 0xb800000: 0x40080000, + 0xc800000: 0x40000010, + 0xd800000: 0x84000, + 0xe800000: 0x40084000, + 0xf800000: 0x4010, + 0x10000000: 0x0, + 0x11000000: 0x40080010, + 0x12000000: 0x40004010, + 0x13000000: 0x40084000, + 0x14000000: 0x40080000, + 0x15000000: 0x10, + 0x16000000: 0x84010, + 0x17000000: 0x4000, + 0x18000000: 0x4010, + 0x19000000: 0x80000, + 0x1a000000: 0x80010, + 0x1b000000: 0x40000010, + 0x1c000000: 0x84000, + 0x1d000000: 0x40004000, + 0x1e000000: 0x40000000, + 0x1f000000: 0x40084010, + 0x10800000: 0x84010, + 0x11800000: 0x80000, + 0x12800000: 0x40080000, + 0x13800000: 0x4000, + 0x14800000: 0x40004000, + 0x15800000: 0x40084010, + 0x16800000: 0x10, + 0x17800000: 0x40000000, + 0x18800000: 0x40084000, + 0x19800000: 0x40000010, + 0x1a800000: 0x40004010, + 0x1b800000: 0x80010, + 0x1c800000: 0x0, + 0x1d800000: 0x4010, + 0x1e800000: 0x40080010, + 0x1f800000: 0x84000 + }, + { + 0x0: 0x104, + 0x100000: 0x0, + 0x200000: 0x4000100, + 0x300000: 0x10104, + 0x400000: 0x10004, + 0x500000: 0x4000004, + 0x600000: 0x4010104, + 0x700000: 0x4010000, + 0x800000: 0x4000000, + 0x900000: 0x4010100, + 0xa00000: 0x10100, + 0xb00000: 0x4010004, + 0xc00000: 0x4000104, + 0xd00000: 0x10000, + 0xe00000: 0x4, + 0xf00000: 0x100, + 0x80000: 0x4010100, + 0x180000: 0x4010004, + 0x280000: 0x0, + 0x380000: 0x4000100, + 0x480000: 0x4000004, + 0x580000: 0x10000, + 0x680000: 0x10004, + 0x780000: 0x104, + 0x880000: 0x4, + 0x980000: 0x100, + 0xa80000: 0x4010000, + 0xb80000: 0x10104, + 0xc80000: 0x10100, + 0xd80000: 0x4000104, + 0xe80000: 0x4010104, + 0xf80000: 0x4000000, + 0x1000000: 0x4010100, + 0x1100000: 0x10004, + 0x1200000: 0x10000, + 0x1300000: 0x4000100, + 0x1400000: 0x100, + 0x1500000: 0x4010104, + 0x1600000: 0x4000004, + 0x1700000: 0x0, + 0x1800000: 0x4000104, + 0x1900000: 0x4000000, + 0x1a00000: 0x4, + 0x1b00000: 0x10100, + 0x1c00000: 0x4010000, + 0x1d00000: 0x104, + 0x1e00000: 0x10104, + 0x1f00000: 0x4010004, + 0x1080000: 0x4000000, + 0x1180000: 0x104, + 0x1280000: 0x4010100, + 0x1380000: 0x0, + 0x1480000: 0x10004, + 0x1580000: 0x4000100, + 0x1680000: 0x100, + 0x1780000: 0x4010004, + 0x1880000: 0x10000, + 0x1980000: 0x4010104, + 0x1a80000: 0x10104, + 0x1b80000: 0x4000004, + 0x1c80000: 0x4000104, + 0x1d80000: 0x4010000, + 0x1e80000: 0x4, + 0x1f80000: 0x10100 + }, + { + 0x0: 0x80401000, + 0x10000: 0x80001040, + 0x20000: 0x401040, + 0x30000: 0x80400000, + 0x40000: 0x0, + 0x50000: 0x401000, + 0x60000: 0x80000040, + 0x70000: 0x400040, + 0x80000: 0x80000000, + 0x90000: 0x400000, + 0xa0000: 0x40, + 0xb0000: 0x80001000, + 0xc0000: 0x80400040, + 0xd0000: 0x1040, + 0xe0000: 0x1000, + 0xf0000: 0x80401040, + 0x8000: 0x80001040, + 0x18000: 0x40, + 0x28000: 0x80400040, + 0x38000: 0x80001000, + 0x48000: 0x401000, + 0x58000: 0x80401040, + 0x68000: 0x0, + 0x78000: 0x80400000, + 0x88000: 0x1000, + 0x98000: 0x80401000, + 0xa8000: 0x400000, + 0xb8000: 0x1040, + 0xc8000: 0x80000000, + 0xd8000: 0x400040, + 0xe8000: 0x401040, + 0xf8000: 0x80000040, + 0x100000: 0x400040, + 0x110000: 0x401000, + 0x120000: 0x80000040, + 0x130000: 0x0, + 0x140000: 0x1040, + 0x150000: 0x80400040, + 0x160000: 0x80401000, + 0x170000: 0x80001040, + 0x180000: 0x80401040, + 0x190000: 0x80000000, + 0x1a0000: 0x80400000, + 0x1b0000: 0x401040, + 0x1c0000: 0x80001000, + 0x1d0000: 0x400000, + 0x1e0000: 0x40, + 0x1f0000: 0x1000, + 0x108000: 0x80400000, + 0x118000: 0x80401040, + 0x128000: 0x0, + 0x138000: 0x401000, + 0x148000: 0x400040, + 0x158000: 0x80000000, + 0x168000: 0x80001040, + 0x178000: 0x40, + 0x188000: 0x80000040, + 0x198000: 0x1000, + 0x1a8000: 0x80001000, + 0x1b8000: 0x80400040, + 0x1c8000: 0x1040, + 0x1d8000: 0x80401000, + 0x1e8000: 0x400000, + 0x1f8000: 0x401040 + }, + { + 0x0: 0x80, + 0x1000: 0x1040000, + 0x2000: 0x40000, + 0x3000: 0x20000000, + 0x4000: 0x20040080, + 0x5000: 0x1000080, + 0x6000: 0x21000080, + 0x7000: 0x40080, + 0x8000: 0x1000000, + 0x9000: 0x20040000, + 0xa000: 0x20000080, + 0xb000: 0x21040080, + 0xc000: 0x21040000, + 0xd000: 0x0, + 0xe000: 0x1040080, + 0xf000: 0x21000000, + 0x800: 0x1040080, + 0x1800: 0x21000080, + 0x2800: 0x80, + 0x3800: 0x1040000, + 0x4800: 0x40000, + 0x5800: 0x20040080, + 0x6800: 0x21040000, + 0x7800: 0x20000000, + 0x8800: 0x20040000, + 0x9800: 0x0, + 0xa800: 0x21040080, + 0xb800: 0x1000080, + 0xc800: 0x20000080, + 0xd800: 0x21000000, + 0xe800: 0x1000000, + 0xf800: 0x40080, + 0x10000: 0x40000, + 0x11000: 0x80, + 0x12000: 0x20000000, + 0x13000: 0x21000080, + 0x14000: 0x1000080, + 0x15000: 0x21040000, + 0x16000: 0x20040080, + 0x17000: 0x1000000, + 0x18000: 0x21040080, + 0x19000: 0x21000000, + 0x1a000: 0x1040000, + 0x1b000: 0x20040000, + 0x1c000: 0x40080, + 0x1d000: 0x20000080, + 0x1e000: 0x0, + 0x1f000: 0x1040080, + 0x10800: 0x21000080, + 0x11800: 0x1000000, + 0x12800: 0x1040000, + 0x13800: 0x20040080, + 0x14800: 0x20000000, + 0x15800: 0x1040080, + 0x16800: 0x80, + 0x17800: 0x21040000, + 0x18800: 0x40080, + 0x19800: 0x21040080, + 0x1a800: 0x0, + 0x1b800: 0x21000000, + 0x1c800: 0x1000080, + 0x1d800: 0x40000, + 0x1e800: 0x20040000, + 0x1f800: 0x20000080 + }, + { + 0x0: 0x10000008, + 0x100: 0x2000, + 0x200: 0x10200000, + 0x300: 0x10202008, + 0x400: 0x10002000, + 0x500: 0x200000, + 0x600: 0x200008, + 0x700: 0x10000000, + 0x800: 0x0, + 0x900: 0x10002008, + 0xa00: 0x202000, + 0xb00: 0x8, + 0xc00: 0x10200008, + 0xd00: 0x202008, + 0xe00: 0x2008, + 0xf00: 0x10202000, + 0x80: 0x10200000, + 0x180: 0x10202008, + 0x280: 0x8, + 0x380: 0x200000, + 0x480: 0x202008, + 0x580: 0x10000008, + 0x680: 0x10002000, + 0x780: 0x2008, + 0x880: 0x200008, + 0x980: 0x2000, + 0xa80: 0x10002008, + 0xb80: 0x10200008, + 0xc80: 0x0, + 0xd80: 0x10202000, + 0xe80: 0x202000, + 0xf80: 0x10000000, + 0x1000: 0x10002000, + 0x1100: 0x10200008, + 0x1200: 0x10202008, + 0x1300: 0x2008, + 0x1400: 0x200000, + 0x1500: 0x10000000, + 0x1600: 0x10000008, + 0x1700: 0x202000, + 0x1800: 0x202008, + 0x1900: 0x0, + 0x1a00: 0x8, + 0x1b00: 0x10200000, + 0x1c00: 0x2000, + 0x1d00: 0x10002008, + 0x1e00: 0x10202000, + 0x1f00: 0x200008, + 0x1080: 0x8, + 0x1180: 0x202000, + 0x1280: 0x200000, + 0x1380: 0x10000008, + 0x1480: 0x10002000, + 0x1580: 0x2008, + 0x1680: 0x10202008, + 0x1780: 0x10200000, + 0x1880: 0x10202000, + 0x1980: 0x10200008, + 0x1a80: 0x2000, + 0x1b80: 0x202008, + 0x1c80: 0x200008, + 0x1d80: 0x0, + 0x1e80: 0x10000000, + 0x1f80: 0x10002008 + }, + { + 0x0: 0x100000, + 0x10: 0x2000401, + 0x20: 0x400, + 0x30: 0x100401, + 0x40: 0x2100401, + 0x50: 0x0, + 0x60: 0x1, + 0x70: 0x2100001, + 0x80: 0x2000400, + 0x90: 0x100001, + 0xa0: 0x2000001, + 0xb0: 0x2100400, + 0xc0: 0x2100000, + 0xd0: 0x401, + 0xe0: 0x100400, + 0xf0: 0x2000000, + 0x8: 0x2100001, + 0x18: 0x0, + 0x28: 0x2000401, + 0x38: 0x2100400, + 0x48: 0x100000, + 0x58: 0x2000001, + 0x68: 0x2000000, + 0x78: 0x401, + 0x88: 0x100401, + 0x98: 0x2000400, + 0xa8: 0x2100000, + 0xb8: 0x100001, + 0xc8: 0x400, + 0xd8: 0x2100401, + 0xe8: 0x1, + 0xf8: 0x100400, + 0x100: 0x2000000, + 0x110: 0x100000, + 0x120: 0x2000401, + 0x130: 0x2100001, + 0x140: 0x100001, + 0x150: 0x2000400, + 0x160: 0x2100400, + 0x170: 0x100401, + 0x180: 0x401, + 0x190: 0x2100401, + 0x1a0: 0x100400, + 0x1b0: 0x1, + 0x1c0: 0x0, + 0x1d0: 0x2100000, + 0x1e0: 0x2000001, + 0x1f0: 0x400, + 0x108: 0x100400, + 0x118: 0x2000401, + 0x128: 0x2100001, + 0x138: 0x1, + 0x148: 0x2000000, + 0x158: 0x100000, + 0x168: 0x401, + 0x178: 0x2100400, + 0x188: 0x2000001, + 0x198: 0x2100000, + 0x1a8: 0x0, + 0x1b8: 0x2100401, + 0x1c8: 0x100401, + 0x1d8: 0x400, + 0x1e8: 0x2000400, + 0x1f8: 0x100001 + }, + { + 0x0: 0x8000820, + 0x1: 0x20000, + 0x2: 0x8000000, + 0x3: 0x20, + 0x4: 0x20020, + 0x5: 0x8020820, + 0x6: 0x8020800, + 0x7: 0x800, + 0x8: 0x8020000, + 0x9: 0x8000800, + 0xa: 0x20800, + 0xb: 0x8020020, + 0xc: 0x820, + 0xd: 0x0, + 0xe: 0x8000020, + 0xf: 0x20820, + 0x80000000: 0x800, + 0x80000001: 0x8020820, + 0x80000002: 0x8000820, + 0x80000003: 0x8000000, + 0x80000004: 0x8020000, + 0x80000005: 0x20800, + 0x80000006: 0x20820, + 0x80000007: 0x20, + 0x80000008: 0x8000020, + 0x80000009: 0x820, + 0x8000000a: 0x20020, + 0x8000000b: 0x8020800, + 0x8000000c: 0x0, + 0x8000000d: 0x8020020, + 0x8000000e: 0x8000800, + 0x8000000f: 0x20000, + 0x10: 0x20820, + 0x11: 0x8020800, + 0x12: 0x20, + 0x13: 0x800, + 0x14: 0x8000800, + 0x15: 0x8000020, + 0x16: 0x8020020, + 0x17: 0x20000, + 0x18: 0x0, + 0x19: 0x20020, + 0x1a: 0x8020000, + 0x1b: 0x8000820, + 0x1c: 0x8020820, + 0x1d: 0x20800, + 0x1e: 0x820, + 0x1f: 0x8000000, + 0x80000010: 0x20000, + 0x80000011: 0x800, + 0x80000012: 0x8020020, + 0x80000013: 0x20820, + 0x80000014: 0x20, + 0x80000015: 0x8020000, + 0x80000016: 0x8000000, + 0x80000017: 0x8000820, + 0x80000018: 0x8020820, + 0x80000019: 0x8000020, + 0x8000001a: 0x8000800, + 0x8000001b: 0x0, + 0x8000001c: 0x20800, + 0x8000001d: 0x820, + 0x8000001e: 0x20020, + 0x8000001f: 0x8020800 + } + ]; + + // Masks that select the SBOX input + var SBOX_MASK = [ + 0xf8000001, 0x1f800000, 0x01f80000, 0x001f8000, + 0x0001f800, 0x00001f80, 0x000001f8, 0x8000001f + ]; + + /** + * DES block cipher algorithm. + */ + var DES = C_algo.DES = BlockCipher.extend({ + _doReset: function () { + // Shortcuts + var key = this._key; + var keyWords = key.words; + + // Select 56 bits according to PC1 + var keyBits = []; + for (var i = 0; i < 56; i++) { + var keyBitPos = PC1[i] - 1; + keyBits[i] = (keyWords[keyBitPos>>> 5]>>> (31 - keyBitPos % 32)) & 1; + } + + // Assemble 16 subkeys + var subKeys = this._subKeys = []; + for (var nSubKey = 0; nSubKey < 16; nSubKey++) { + // Create subkey + var subKey = subKeys[nSubKey] = []; + + // Shortcut + var bitShift = BIT_SHIFTS[nSubKey]; + + // Select 48 bits according to PC2 + for (var i = 0; i < 24; i++) { + // Select from the left 28 key bits + subKey[(i / 6) | 0] |= keyBits[((PC2[i] - 1) + bitShift) % 28] << (31 - i % 6); + + // Select from the right 28 key bits + subKey[4 + ((i / 6) | 0)] |= keyBits[28 + (((PC2[i + 24] - 1) + bitShift) % 28)] << (31 - i % 6); + } + + // Since each subkey is applied to an expanded 32-bit input, + // the subkey can be broken into 8 values scaled to 32-bits, + // which allows the key to be used without expansion + subKey[0] = (subKey[0] << 1) | (subKey[0]>>> 31); + for (var i = 1; i < 7; i++) { + subKey[i] = subKey[i]>>> ((i - 1) * 4 + 3); + } + subKey[7] = (subKey[7] << 5) | (subKey[7]>>> 27); + } + + // Compute inverse subkeys + var invSubKeys = this._invSubKeys = []; + for (var i = 0; i < 16; i++) { + invSubKeys[i] = subKeys[15 - i]; + } + }, + + encryptBlock: function (M, offset) { + this._doCryptBlock(M, offset, this._subKeys); + }, + + decryptBlock: function (M, offset) { + this._doCryptBlock(M, offset, this._invSubKeys); + }, + + _doCryptBlock: function (M, offset, subKeys) { + // Get input + this._lBlock = M[offset]; + this._rBlock = M[offset + 1]; + + // Initial permutation + exchangeLR.call(this, 4, 0x0f0f0f0f); + exchangeLR.call(this, 16, 0x0000ffff); + exchangeRL.call(this, 2, 0x33333333); + exchangeRL.call(this, 8, 0x00ff00ff); + exchangeLR.call(this, 1, 0x55555555); + + // Rounds + for (var round = 0; round < 16; round++) { + // Shortcuts + var subKey = subKeys[round]; + var lBlock = this._lBlock; + var rBlock = this._rBlock; + + // Feistel function + var f = 0; + for (var i = 0; i < 8; i++) { + f |= SBOX_P[i][((rBlock ^ subKey[i]) & SBOX_MASK[i])>>> 0]; + } + this._lBlock = rBlock; + this._rBlock = lBlock ^ f; + } + + // Undo swap from last round + var t = this._lBlock; + this._lBlock = this._rBlock; + this._rBlock = t; + + // Final permutation + exchangeLR.call(this, 1, 0x55555555); + exchangeRL.call(this, 8, 0x00ff00ff); + exchangeRL.call(this, 2, 0x33333333); + exchangeLR.call(this, 16, 0x0000ffff); + exchangeLR.call(this, 4, 0x0f0f0f0f); + + // Set output + M[offset] = this._lBlock; + M[offset + 1] = this._rBlock; + }, + + keySize: 64/32, + + ivSize: 64/32, + + blockSize: 64/32 + }); + + // Swap bits across the left and right words + function exchangeLR(offset, mask) { + var t = ((this._lBlock>>> offset) ^ this._rBlock) & mask; + this._rBlock ^= t; + this._lBlock ^= t << offset; + } + + function exchangeRL(offset, mask) { + var t = ((this._rBlock>>> offset) ^ this._lBlock) & mask; + this._lBlock ^= t; + this._rBlock ^= t << offset; + } + + /** + * Shortcut functions to the cipher's object interface. + * + * @example + * + * var ciphertext = CryptoJS.DES.encrypt(message, key, cfg); + * var plaintext = CryptoJS.DES.decrypt(ciphertext, key, cfg); + */ + C.DES = BlockCipher._createHelper(DES); + + /** + * Triple-DES block cipher algorithm. + */ + var TripleDES = C_algo.TripleDES = BlockCipher.extend({ + _doReset: function () { + // Shortcuts + var key = this._key; + var keyWords = key.words; + + // Create DES instances + this._des1 = DES.createEncryptor(WordArray.create(keyWords.slice(0, 2))); + this._des2 = DES.createEncryptor(WordArray.create(keyWords.slice(2, 4))); + this._des3 = DES.createEncryptor(WordArray.create(keyWords.slice(4, 6))); + }, + + encryptBlock: function (M, offset) { + this._des1.encryptBlock(M, offset); + this._des2.decryptBlock(M, offset); + this._des3.encryptBlock(M, offset); + }, + + decryptBlock: function (M, offset) { + this._des3.decryptBlock(M, offset); + this._des2.encryptBlock(M, offset); + this._des1.decryptBlock(M, offset); + }, + + keySize: 192/32, + + ivSize: 64/32, + + blockSize: 64/32 + }); + + /** + * Shortcut functions to the cipher's object interface. + * + * @example + * + * var ciphertext = CryptoJS.TripleDES.encrypt(message, key, cfg); + * var plaintext = CryptoJS.TripleDES.decrypt(ciphertext, key, cfg); + */ + C.TripleDES = BlockCipher._createHelper(TripleDES); +}()); + + +(function () { + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var StreamCipher = C_lib.StreamCipher; + var C_algo = C.algo; + + /** + * RC4 stream cipher algorithm. + */ + var RC4 = C_algo.RC4 = StreamCipher.extend({ + _doReset: function () { + // Shortcuts + var key = this._key; + var keyWords = key.words; + var keySigBytes = key.sigBytes; + + // Init sbox + var S = this._S = []; + for (var i = 0; i < 256; i++) { + S[i] = i; + } + + // Key setup + for (var i = 0, j = 0; i < 256; i++) { + var keyByteIndex = i % keySigBytes; + var keyByte = (keyWords[keyByteIndex>>> 2]>>> (24 - (keyByteIndex % 4) * 8)) & 0xff; + + j = (j + S[i] + keyByte) % 256; + + // Swap + var t = S[i]; + S[i] = S[j]; + S[j] = t; + } + + // Counters + this._i = this._j = 0; + }, + + _doProcessBlock: function (M, offset) { + M[offset] ^= generateKeystreamWord.call(this); + }, + + keySize: 256/32, + + ivSize: 0 + }); + + function generateKeystreamWord() { + // Shortcuts + var S = this._S; + var i = this._i; + var j = this._j; + + // Generate keystream word + var keystreamWord = 0; + for (var n = 0; n < 4; n++) { + i = (i + 1) % 256; + j = (j + S[i]) % 256; + + // Swap + var t = S[i]; + S[i] = S[j]; + S[j] = t; + + keystreamWord |= S[(S[i] + S[j]) % 256] << (24 - n * 8); + } + + // Update counters + this._i = i; + this._j = j; + + return keystreamWord; + } + + /** + * Shortcut functions to the cipher's object interface. + * + * @example + * + * var ciphertext = CryptoJS.RC4.encrypt(message, key, cfg); + * var plaintext = CryptoJS.RC4.decrypt(ciphertext, key, cfg); + */ + C.RC4 = StreamCipher._createHelper(RC4); + + /** + * Modified RC4 stream cipher algorithm. + */ + var RC4Drop = C_algo.RC4Drop = RC4.extend({ + /** + * Configuration options. + * + * @property {number} drop The number of keystream words to drop. Default 192 + */ + cfg: RC4.cfg.extend({ + drop: 192 + }), + + _doReset: function () { + RC4._doReset.call(this); + + // Drop + for (var i = this.cfg.drop; i> 0; i--) { + generateKeystreamWord.call(this); + } + } + }); + + /** + * Shortcut functions to the cipher's object interface. + * + * @example + * + * var ciphertext = CryptoJS.RC4Drop.encrypt(message, key, cfg); + * var plaintext = CryptoJS.RC4Drop.decrypt(ciphertext, key, cfg); + */ + C.RC4Drop = StreamCipher._createHelper(RC4Drop); +}()); + + +/** @preserve + * Counter block mode compatible with Dr Brian Gladman fileenc.c + * derived from CryptoJS.mode.CTR + * Jan Hruby jhruby.web@gmail.com + */ +CryptoJS.mode.CTRGladman = (function () { + var CTRGladman = CryptoJS.lib.BlockCipherMode.extend(); + + function incWord(word) + { + if (((word>> 24) & 0xff) === 0xff) { //overflow + var b1 = (word>> 16)&0xff; + var b2 = (word>> 8)&0xff; + var b3 = word & 0xff; + + if (b1 === 0xff) // overflow b1 + { + b1 = 0; + if (b2 === 0xff) + { + b2 = 0; + if (b3 === 0xff) + { + b3 = 0; + } + else + { + ++b3; + } + } + else + { + ++b2; + } + } + else + { + ++b1; + } + + word = 0; + word += (b1 << 16); + word += (b2 << 8); + word += b3; + } + else + { + word += (0x01 << 24); + } + return word; + } + + function incCounter(counter) + { + if ((counter[0] = incWord(counter[0])) === 0) + { + // encr_data in fileenc.c from Dr Brian Gladman's counts only with DWORD j < 8 + counter[1] = incWord(counter[1]); + } + return counter; + } + + var Encryptor = CTRGladman.Encryptor = CTRGladman.extend({ + processBlock: function (words, offset) { + // Shortcuts + var cipher = this._cipher + var blockSize = cipher.blockSize; + var iv = this._iv; + var counter = this._counter; + + // Generate keystream + if (iv) { + counter = this._counter = iv.slice(0); + + // Remove IV for subsequent blocks + this._iv = undefined; + } + + incCounter(counter); + + var keystream = counter.slice(0); + cipher.encryptBlock(keystream, 0); + + // Encrypt + for (var i = 0; i < blockSize; i++) { + words[offset + i] ^= keystream[i]; + } + } + }); + + CTRGladman.Decryptor = Encryptor; + + return CTRGladman; +}()); + + + + +(function () { + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var StreamCipher = C_lib.StreamCipher; + var C_algo = C.algo; + + // Reusable objects + var S = []; + var C_ = []; + var G = []; + + /** + * Rabbit stream cipher algorithm + */ + var Rabbit = C_algo.Rabbit = StreamCipher.extend({ + _doReset: function () { + // Shortcuts + var K = this._key.words; + var iv = this.cfg.iv; + + // Swap endian + for (var i = 0; i < 4; i++) { + K[i] = (((K[i] << 8) | (K[i]>>> 24)) & 0x00ff00ff) | + (((K[i] << 24) | (K[i]>>> 8)) & 0xff00ff00); + } + + // Generate initial state values + var X = this._X = [ + K[0], (K[3] << 16) | (K[2]>>> 16), + K[1], (K[0] << 16) | (K[3]>>> 16), + K[2], (K[1] << 16) | (K[0]>>> 16), + K[3], (K[2] << 16) | (K[1]>>> 16) + ]; + + // Generate initial counter values + var C = this._C = [ + (K[2] << 16) | (K[2]>>> 16), (K[0] & 0xffff0000) | (K[1] & 0x0000ffff), + (K[3] << 16) | (K[3]>>> 16), (K[1] & 0xffff0000) | (K[2] & 0x0000ffff), + (K[0] << 16) | (K[0]>>> 16), (K[2] & 0xffff0000) | (K[3] & 0x0000ffff), + (K[1] << 16) | (K[1]>>> 16), (K[3] & 0xffff0000) | (K[0] & 0x0000ffff) + ]; + + // Carry bit + this._b = 0; + + // Iterate the system four times + for (var i = 0; i < 4; i++) { + nextState.call(this); + } + + // Modify the counters + for (var i = 0; i < 8; i++) { + C[i] ^= X[(i + 4) & 7]; + } + + // IV setup + if (iv) { + // Shortcuts + var IV = iv.words; + var IV_0 = IV[0]; + var IV_1 = IV[1]; + + // Generate four subvectors + var i0 = (((IV_0 << 8) | (IV_0>>> 24)) & 0x00ff00ff) | (((IV_0 << 24) | (IV_0>>> 8)) & 0xff00ff00); + var i2 = (((IV_1 << 8) | (IV_1>>> 24)) & 0x00ff00ff) | (((IV_1 << 24) | (IV_1>>> 8)) & 0xff00ff00); + var i1 = (i0>>> 16) | (i2 & 0xffff0000); + var i3 = (i2 << 16) | (i0 & 0x0000ffff); + + // Modify counter values + C[0] ^= i0; + C[1] ^= i1; + C[2] ^= i2; + C[3] ^= i3; + C[4] ^= i0; + C[5] ^= i1; + C[6] ^= i2; + C[7] ^= i3; + + // Iterate the system four times + for (var i = 0; i < 4; i++) { + nextState.call(this); + } + } + }, + + _doProcessBlock: function (M, offset) { + // Shortcut + var X = this._X; + + // Iterate the system + nextState.call(this); + + // Generate four keystream words + S[0] = X[0] ^ (X[5]>>> 16) ^ (X[3] << 16); + S[1] = X[2] ^ (X[7]>>> 16) ^ (X[5] << 16); + S[2] = X[4] ^ (X[1]>>> 16) ^ (X[7] << 16); + S[3] = X[6] ^ (X[3]>>> 16) ^ (X[1] << 16); + + for (var i = 0; i < 4; i++) { + // Swap endian + S[i] = (((S[i] << 8) | (S[i]>>> 24)) & 0x00ff00ff) | + (((S[i] << 24) | (S[i]>>> 8)) & 0xff00ff00); + + // Encrypt + M[offset + i] ^= S[i]; + } + }, + + blockSize: 128/32, + + ivSize: 64/32 + }); + + function nextState() { + // Shortcuts + var X = this._X; + var C = this._C; + + // Save old counter values + for (var i = 0; i < 8; i++) { + C_[i] = C[i]; + } + + // Calculate new counter values + C[0] = (C[0] + 0x4d34d34d + this._b) | 0; + C[1] = (C[1] + 0xd34d34d3 + ((C[0]>>> 0) < (C_[0]>>> 0) ? 1 : 0)) | 0; + C[2] = (C[2] + 0x34d34d34 + ((C[1]>>> 0) < (C_[1]>>> 0) ? 1 : 0)) | 0; + C[3] = (C[3] + 0x4d34d34d + ((C[2]>>> 0) < (C_[2]>>> 0) ? 1 : 0)) | 0; + C[4] = (C[4] + 0xd34d34d3 + ((C[3]>>> 0) < (C_[3]>>> 0) ? 1 : 0)) | 0; + C[5] = (C[5] + 0x34d34d34 + ((C[4]>>> 0) < (C_[4]>>> 0) ? 1 : 0)) | 0; + C[6] = (C[6] + 0x4d34d34d + ((C[5]>>> 0) < (C_[5]>>> 0) ? 1 : 0)) | 0; + C[7] = (C[7] + 0xd34d34d3 + ((C[6]>>> 0) < (C_[6]>>> 0) ? 1 : 0)) | 0; + this._b = (C[7]>>> 0) < (C_[7]>>> 0) ? 1 : 0; + + // Calculate the g-values + for (var i = 0; i < 8; i++) { + var gx = X[i] + C[i]; + + // Construct high and low argument for squaring + var ga = gx & 0xffff; + var gb = gx>>> 16; + + // Calculate high and low result of squaring + var gh = ((((ga * ga)>>> 17) + ga * gb)>>> 15) + gb * gb; + var gl = (((gx & 0xffff0000) * gx) | 0) + (((gx & 0x0000ffff) * gx) | 0); + + // High XOR low + G[i] = gh ^ gl; + } + + // Calculate new state values + X[0] = (G[0] + ((G[7] << 16) | (G[7]>>> 16)) + ((G[6] << 16) | (G[6]>>> 16))) | 0; + X[1] = (G[1] + ((G[0] << 8) | (G[0]>>> 24)) + G[7]) | 0; + X[2] = (G[2] + ((G[1] << 16) | (G[1]>>> 16)) + ((G[0] << 16) | (G[0]>>> 16))) | 0; + X[3] = (G[3] + ((G[2] << 8) | (G[2]>>> 24)) + G[1]) | 0; + X[4] = (G[4] + ((G[3] << 16) | (G[3]>>> 16)) + ((G[2] << 16) | (G[2]>>> 16))) | 0; + X[5] = (G[5] + ((G[4] << 8) | (G[4]>>> 24)) + G[3]) | 0; + X[6] = (G[6] + ((G[5] << 16) | (G[5]>>> 16)) + ((G[4] << 16) | (G[4]>>> 16))) | 0; + X[7] = (G[7] + ((G[6] << 8) | (G[6]>>> 24)) + G[5]) | 0; + } + + /** + * Shortcut functions to the cipher's object interface. + * + * @example + * + * var ciphertext = CryptoJS.Rabbit.encrypt(message, key, cfg); + * var plaintext = CryptoJS.Rabbit.decrypt(ciphertext, key, cfg); + */ + C.Rabbit = StreamCipher._createHelper(Rabbit); +}()); + + +/** + * Counter block mode. + */ +CryptoJS.mode.CTR = (function () { + var CTR = CryptoJS.lib.BlockCipherMode.extend(); + + var Encryptor = CTR.Encryptor = CTR.extend({ + processBlock: function (words, offset) { + // Shortcuts + var cipher = this._cipher + var blockSize = cipher.blockSize; + var iv = this._iv; + var counter = this._counter; + + // Generate keystream + if (iv) { + counter = this._counter = iv.slice(0); + + // Remove IV for subsequent blocks + this._iv = undefined; + } + var keystream = counter.slice(0); + cipher.encryptBlock(keystream, 0); + + // Increment counter + counter[blockSize - 1] = (counter[blockSize - 1] + 1) | 0 + + // Encrypt + for (var i = 0; i < blockSize; i++) { + words[offset + i] ^= keystream[i]; + } + } + }); + + CTR.Decryptor = Encryptor; + + return CTR; +}()); + + +(function () { + // Shortcuts + var C = CryptoJS; + var C_lib = C.lib; + var StreamCipher = C_lib.StreamCipher; + var C_algo = C.algo; + + // Reusable objects + var S = []; + var C_ = []; + var G = []; + + /** + * Rabbit stream cipher algorithm. + * + * This is a legacy version that neglected to convert the key to little-endian. + * This error doesn't affect the cipher's security, + * but it does affect its compatibility with other implementations. + */ + var RabbitLegacy = C_algo.RabbitLegacy = StreamCipher.extend({ + _doReset: function () { + // Shortcuts + var K = this._key.words; + var iv = this.cfg.iv; + + // Generate initial state values + var X = this._X = [ + K[0], (K[3] << 16) | (K[2]>>> 16), + K[1], (K[0] << 16) | (K[3]>>> 16), + K[2], (K[1] << 16) | (K[0]>>> 16), + K[3], (K[2] << 16) | (K[1]>>> 16) + ]; + + // Generate initial counter values + var C = this._C = [ + (K[2] << 16) | (K[2]>>> 16), (K[0] & 0xffff0000) | (K[1] & 0x0000ffff), + (K[3] << 16) | (K[3]>>> 16), (K[1] & 0xffff0000) | (K[2] & 0x0000ffff), + (K[0] << 16) | (K[0]>>> 16), (K[2] & 0xffff0000) | (K[3] & 0x0000ffff), + (K[1] << 16) | (K[1]>>> 16), (K[3] & 0xffff0000) | (K[0] & 0x0000ffff) + ]; + + // Carry bit + this._b = 0; + + // Iterate the system four times + for (var i = 0; i < 4; i++) { + nextState.call(this); + } + + // Modify the counters + for (var i = 0; i < 8; i++) { + C[i] ^= X[(i + 4) & 7]; + } + + // IV setup + if (iv) { + // Shortcuts + var IV = iv.words; + var IV_0 = IV[0]; + var IV_1 = IV[1]; + + // Generate four subvectors + var i0 = (((IV_0 << 8) | (IV_0>>> 24)) & 0x00ff00ff) | (((IV_0 << 24) | (IV_0>>> 8)) & 0xff00ff00); + var i2 = (((IV_1 << 8) | (IV_1>>> 24)) & 0x00ff00ff) | (((IV_1 << 24) | (IV_1>>> 8)) & 0xff00ff00); + var i1 = (i0>>> 16) | (i2 & 0xffff0000); + var i3 = (i2 << 16) | (i0 & 0x0000ffff); + + // Modify counter values + C[0] ^= i0; + C[1] ^= i1; + C[2] ^= i2; + C[3] ^= i3; + C[4] ^= i0; + C[5] ^= i1; + C[6] ^= i2; + C[7] ^= i3; + + // Iterate the system four times + for (var i = 0; i < 4; i++) { + nextState.call(this); + } + } + }, + + _doProcessBlock: function (M, offset) { + // Shortcut + var X = this._X; + + // Iterate the system + nextState.call(this); + + // Generate four keystream words + S[0] = X[0] ^ (X[5]>>> 16) ^ (X[3] << 16); + S[1] = X[2] ^ (X[7]>>> 16) ^ (X[5] << 16); + S[2] = X[4] ^ (X[1]>>> 16) ^ (X[7] << 16); + S[3] = X[6] ^ (X[3]>>> 16) ^ (X[1] << 16); + + for (var i = 0; i < 4; i++) { + // Swap endian + S[i] = (((S[i] << 8) | (S[i]>>> 24)) & 0x00ff00ff) | + (((S[i] << 24) | (S[i]>>> 8)) & 0xff00ff00); + + // Encrypt + M[offset + i] ^= S[i]; + } + }, + + blockSize: 128/32, + + ivSize: 64/32 + }); + + function nextState() { + // Shortcuts + var X = this._X; + var C = this._C; + + // Save old counter values + for (var i = 0; i < 8; i++) { + C_[i] = C[i]; + } + + // Calculate new counter values + C[0] = (C[0] + 0x4d34d34d + this._b) | 0; + C[1] = (C[1] + 0xd34d34d3 + ((C[0]>>> 0) < (C_[0]>>> 0) ? 1 : 0)) | 0; + C[2] = (C[2] + 0x34d34d34 + ((C[1]>>> 0) < (C_[1]>>> 0) ? 1 : 0)) | 0; + C[3] = (C[3] + 0x4d34d34d + ((C[2]>>> 0) < (C_[2]>>> 0) ? 1 : 0)) | 0; + C[4] = (C[4] + 0xd34d34d3 + ((C[3]>>> 0) < (C_[3]>>> 0) ? 1 : 0)) | 0; + C[5] = (C[5] + 0x34d34d34 + ((C[4]>>> 0) < (C_[4]>>> 0) ? 1 : 0)) | 0; + C[6] = (C[6] + 0x4d34d34d + ((C[5]>>> 0) < (C_[5]>>> 0) ? 1 : 0)) | 0; + C[7] = (C[7] + 0xd34d34d3 + ((C[6]>>> 0) < (C_[6]>>> 0) ? 1 : 0)) | 0; + this._b = (C[7]>>> 0) < (C_[7]>>> 0) ? 1 : 0; + + // Calculate the g-values + for (var i = 0; i < 8; i++) { + var gx = X[i] + C[i]; + + // Construct high and low argument for squaring + var ga = gx & 0xffff; + var gb = gx>>> 16; + + // Calculate high and low result of squaring + var gh = ((((ga * ga)>>> 17) + ga * gb)>>> 15) + gb * gb; + var gl = (((gx & 0xffff0000) * gx) | 0) + (((gx & 0x0000ffff) * gx) | 0); + + // High XOR low + G[i] = gh ^ gl; + } + + // Calculate new state values + X[0] = (G[0] + ((G[7] << 16) | (G[7]>>> 16)) + ((G[6] << 16) | (G[6]>>> 16))) | 0; + X[1] = (G[1] + ((G[0] << 8) | (G[0]>>> 24)) + G[7]) | 0; + X[2] = (G[2] + ((G[1] << 16) | (G[1]>>> 16)) + ((G[0] << 16) | (G[0]>>> 16))) | 0; + X[3] = (G[3] + ((G[2] << 8) | (G[2]>>> 24)) + G[1]) | 0; + X[4] = (G[4] + ((G[3] << 16) | (G[3]>>> 16)) + ((G[2] << 16) | (G[2]>>> 16))) | 0; + X[5] = (G[5] + ((G[4] << 8) | (G[4]>>> 24)) + G[3]) | 0; + X[6] = (G[6] + ((G[5] << 16) | (G[5]>>> 16)) + ((G[4] << 16) | (G[4]>>> 16))) | 0; + X[7] = (G[7] + ((G[6] << 8) | (G[6]>>> 24)) + G[5]) | 0; + } + + /** + * Shortcut functions to the cipher's object interface. + * + * @example + * + * var ciphertext = CryptoJS.RabbitLegacy.encrypt(message, key, cfg); + * var plaintext = CryptoJS.RabbitLegacy.decrypt(ciphertext, key, cfg); + */ + C.RabbitLegacy = StreamCipher._createHelper(RabbitLegacy); +}()); + + +/** + * Zero padding strategy. + */ +CryptoJS.pad.ZeroPadding = { + pad: function (data, blockSize) { + // Shortcut + var blockSizeBytes = blockSize * 4; + + // Pad + data.clamp(); + data.sigBytes += blockSizeBytes - ((data.sigBytes % blockSizeBytes) || blockSizeBytes); + }, + + unpad: function (data) { + // Shortcut + var dataWords = data.words; + + // Unpad + var i = data.sigBytes - 1; + while (!((dataWords[i>>> 2]>>> (24 - (i % 4) * 8)) & 0xff)) { + i--; + } + data.sigBytes = i + 1; + } +}; +var l = { + md5: function(e) { + return CryptoJS.MD5(e).toString() + }, + k: function(e) { + var l = this.md5("www.maomaozu.com".replace(/\./g, "_")); + return l = 0 == e ? l.substring(0, 16) : l.substring(16, 32) + }, + e: function(e, l) { + return e = CryptoJS.enc.Utf8.parse(e), + l = CryptoJS.enc.Utf8.parse(l), + CryptoJS.AES.encrypt(l, e, { + mode: CryptoJS.mode.CBC, + padding: CryptoJS.pad.Pkcs7, + iv: e + }).toString() + }, + d: function(e, l) { + e = CryptoJS.enc.Utf8.parse(e); + var a = CryptoJS.AES.decrypt(l, e, { + mode: CryptoJS.mode.CBC, + padding: CryptoJS.pad.Pkcs7, + iv: e + }); + return CryptoJS.enc.Utf8.stringify(a).toString() + }, + aes_encrypt: function(e) { + return this.e(this.k(0), e) + }, + aes_decrypt: function(e) { + var l = this.k(0).split("").reverse().join(""); + return this.d(l, e) + }, + token_parse: function(e) { + var l = this.d(this.k(1), e); + return "" != l && JSON.parse(l) + }, + token_serial: function(e) { + return e = JSON.stringify(e), + this.e(this.k(1), e) + } +} +var aaa = JSON.stringify({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Y5EcvAqjaMbalunaY72F5gXKJnmJjQe5LFRAbbnPfWp3SbXA2GL0k4UBf3dCY0sOkTav3qp8+uYhQJ4TMGKMDtugJ3kkdC96Do88pBA4Utb2FsCy" +function encrypt(data) { + return l.aes_encrypt(data) +} +function decrypt(response) { + return l.aes_decrypt(response) +} +console.log(encrypt(aaa)) +console.log(decrypt(bbb)) From c6364207566f943c3cd6cf83b4f144512485ce14 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月13日 10:38:47 +0800 Subject: [PATCH 34/59] Update tc58.js --- .../tc58.js" | 1054 +++++++---------- 1 file changed, 435 insertions(+), 619 deletions(-) diff --git "a/06-58345円220円214円345円237円216円347円231円273円345円275円225円(RSA)/tc58.js" "b/06-58345円220円214円345円237円216円347円231円273円345円275円225円(RSA)/tc58.js" index d5dd99c..ea568a4 100644 --- "a/06-58345円220円214円345円237円216円347円231円273円345円275円225円(RSA)/tc58.js" +++ "b/06-58345円220円214円345円237円216円347円231円273円345円275円225円(RSA)/tc58.js" @@ -1,630 +1,446 @@ -var $w = {}; // 这句为自己添加 -// (function($w) { 原来为立即执行函数,无法调用里面的函数,所以注释掉 - if (typeof $w.RSAUtils === 'undefined') - var RSAUtils = $w.RSAUtils = {}; - var biRadixBase = 2; - var biRadixBits = 16; - var bitsPerDigit = biRadixBits; - var biRadix = 1 << 16; - var biHalfRadix = biRadix>>> 1; - var biRadixSquared = biRadix * biRadix; - var maxDigitVal = biRadix - 1; - var maxInteger = 9999999999999998; - var maxDigits; - var ZERO_ARRAY; - var bigZero, bigOne; - var BigInt = $w.BigInt = function(flag) { - if (typeof flag == "boolean" && flag == true) { - this.digits = null - } else { - this.digits = ZERO_ARRAY.slice(0) - } - this.isNeg = false - } - ; - RSAUtils.setMaxDigits = function(value) { - maxDigits = value; - ZERO_ARRAY = new Array(maxDigits); - for (var iza = 0; iza < ZERO_ARRAY.length; iza++) - ZERO_ARRAY[iza] = 0; - bigZero = new BigInt(); - bigOne = new BigInt(); - bigOne.digits[0] = 1 - } - ; +window = global; +!function(e) { + void 0 === e.RSAUtils && (e.RSAUtils = {}); + var s, l, v, c = 16, N = 65536, m = N - 1, M = e.BigInt = function(i) { + this.digits = "boolean" == typeof i && 1 == i ? null : s.slice(0), + this.isNeg = !1 + } + ; + RSAUtils.setMaxDigits = function(i) { + s = new Array(i); + for (var t = 0; t < s.length; t++) + s[t] = 0; + l = new M, + (v = new M).digits[0] = 1 + } + , RSAUtils.setMaxDigits(20); - var dpl10 = 15; RSAUtils.biFromNumber = function(i) { - var result = new BigInt(); - result.isNeg = i < 0; + var t = new M; + t.isNeg = i < 0, i = Math.abs(i); - var j = 0; - while (i> 0) { - result.digits[j++] = i & maxDigitVal; - i = Math.floor(i / biRadix) - } - return result - } - ; - var lr10 = RSAUtils.biFromNumber(1000000000000000); - RSAUtils.biFromDecimal = function(s) { - var isNeg = s.charAt(0) == '-'; - var i = isNeg ? 1 : 0; - var result; - while (i < s.length && s.charAt(i) == '0') - ++i; - if (i == s.length) { - result = new BigInt() - } else { - var digitCount = s.length - i; - var fgl = digitCount % dpl10; - if (fgl == 0) - fgl = dpl10; - result = RSAUtils.biFromNumber(Number(s.substr(i, fgl))); - i += fgl; - while (i < s.length) { - result = RSAUtils.biAdd(RSAUtils.biMultiply(result, lr10), RSAUtils.biFromNumber(Number(s.substr(i, dpl10)))); - i += dpl10 - } - result.isNeg = isNeg - } - return result - } - ; - RSAUtils.biCopy = function(bi) { - var result = new BigInt(true); - result.digits = bi.digits.slice(0); - result.isNeg = bi.isNeg; - return result - } - ; - RSAUtils.reverseStr = function(s) { - var result = ""; - for (var i = s.length - 1; i> -1; --i) { - result += s.charAt(i) - } - return result - } - ; - var hexatrigesimalToChar = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']; - RSAUtils.biToString = function(x, radix) { - var b = new BigInt(); - b.digits[0] = radix; - var qr = RSAUtils.biDivideModulo(x, b); - var result = hexatrigesimalToChar[qr[1].digits[0]]; - while (RSAUtils.biCompare(qr[0], bigZero) == 1) { - qr = RSAUtils.biDivideModulo(qr[0], b); - digit = qr[1].digits[0]; - result += hexatrigesimalToChar[qr[1].digits[0]] - } - return (x.isNeg ? "-" : "") + RSAUtils.reverseStr(result) - } - ; - RSAUtils.biToDecimal = function(x) { - var b = new BigInt(); - b.digits[0] = 10; - var qr = RSAUtils.biDivideModulo(x, b); - var result = String(qr[1].digits[0]); - while (RSAUtils.biCompare(qr[0], bigZero) == 1) { - qr = RSAUtils.biDivideModulo(qr[0], b); - result += String(qr[1].digits[0]) - } - return (x.isNeg ? "-" : "") + RSAUtils.reverseStr(result) - } - ; - var hexToChar = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f']; - RSAUtils.digitToHex = function(n) { - var mask = 0xf; - var result = ""; - for (i = 0; i < 4; ++i) { - result += hexToChar[n & mask]; - n>>>= 4 - } - return RSAUtils.reverseStr(result) - } - ; - RSAUtils.biToHex = function(x) { - var result = ""; - var n = RSAUtils.biHighIndex(x); - for (var i = RSAUtils.biHighIndex(x); i> -1; --i) { - result += RSAUtils.digitToHex(x.digits[i]) - } - return result - } - ; - RSAUtils.charToHex = function(c) { - var ZERO = 48; - var NINE = ZERO + 9; - var littleA = 97; - var littleZ = littleA + 25; - var bigA = 65; - var bigZ = 65 + 25; - var result; - if (c>= ZERO && c <= NINE) { - result = c - ZERO - } else if (c>= bigA && c <= bigZ) { - result = 10 + c - bigA - } else if (c>= littleA && c <= littleZ) { - result = 10 + c - littleA - } else { - result = 0 - } - return result - } - ; - RSAUtils.hexToDigit = function(s) { - var result = 0; - var sl = Math.min(s.length, 4); - for (var i = 0; i < sl; ++i) { - result <<= 4; - result |= RSAUtils.charToHex(s.charCodeAt(i)) - } - return result - } - ; - RSAUtils.biFromHex = function(s) { - var result = new BigInt(); - var sl = s.length; - for (var i = sl, j = 0; i> 0; i -= 4, - ++j) { - result.digits[j] = RSAUtils.hexToDigit(s.substr(Math.max(i - 4, 0), Math.min(i, 4))) - } - return result - } - ; - RSAUtils.biFromString = function(s, radix) { - var isNeg = s.charAt(0) == '-'; - var istop = isNeg ? 1 : 0; - var result = new BigInt(); - var place = new BigInt(); - place.digits[0] = 1; - for (var i = s.length - 1; i>= istop; i--) { - var c = s.charCodeAt(i); - var digit = RSAUtils.charToHex(c); - var biDigit = RSAUtils.biMultiplyDigit(place, digit); - result = RSAUtils.biAdd(result, biDigit); - place = RSAUtils.biMultiplyDigit(place, radix) - } - result.isNeg = isNeg; - return result - } - ; - RSAUtils.biDump = function(b) { - return (b.isNeg ? "-" : "") + b.digits.join(" ") - } - ; - RSAUtils.biAdd = function(x, y) { - var result; - if (x.isNeg != y.isNeg) { - y.isNeg = !y.isNeg; - result = RSAUtils.biSubtract(x, y); - y.isNeg = !y.isNeg - } else { - result = new BigInt(); - var c = 0; - var n; - for (var i = 0; i < x.digits.length; ++i) { - n = x.digits[i] + y.digits[i] + c; - result.digits[i] = n % biRadix; - c = Number(n>= biRadix) - } - result.isNeg = x.isNeg - } - return result - } - ; - RSAUtils.biSubtract = function(x, y) { - var result; - if (x.isNeg != y.isNeg) { - y.isNeg = !y.isNeg; - result = RSAUtils.biAdd(x, y); - y.isNeg = !y.isNeg - } else { - result = new BigInt(); - var n, c; - c = 0; - for (var i = 0; i < x.digits.length; ++i) { - n = x.digits[i] - y.digits[i] + c; - result.digits[i] = n % biRadix; - if (result.digits[i] < 0) - result.digits[i] += biRadix; - c = 0 - Number(n < 0) - } - if (c == -1) { - c = 0; - for (var i = 0; i < x.digits.length; ++i) { - n = 0 - result.digits[i] + c; - result.digits[i] = n % biRadix; - if (result.digits[i] < 0) - result.digits[i] += biRadix; - c = 0 - Number(n < 0) - } - result.isNeg = !x.isNeg - } else { - result.isNeg = x.isNeg - } - } - return result - } - ; - RSAUtils.biHighIndex = function(x) { - var result = x.digits.length - 1; - while (result> 0 && x.digits[result] == 0) - --result; - return result - } - ; - RSAUtils.biNumBits = function(x) { - var n = RSAUtils.biHighIndex(x); - var d = x.digits[n]; - var m = (n + 1) * bitsPerDigit; - var result; - for (result = m; result> m - bitsPerDigit; --result) { - if ((d & 0x8000) != 0) - break; - d <<= 1 - } - return result - } - ; - RSAUtils.biMultiply = function(x, y) { - var result = new BigInt(); - var c; - var n = RSAUtils.biHighIndex(x); - var t = RSAUtils.biHighIndex(y); - var u, uv, k; - for (var i = 0; i <= t; ++i) { - c = 0; - k = i; - for (j = 0; j <= n; ++j, - ++k) { - uv = result.digits[k] + x.digits[j] * y.digits[i] + c; - result.digits[k] = uv & maxDigitVal; - c = uv>>> biRadixBits - } - result.digits[i + n + 1] = c - } - result.isNeg = x.isNeg != y.isNeg; - return result - } - ; - RSAUtils.biMultiplyDigit = function(x, y) { - var n, c, uv; - result = new BigInt(); - n = RSAUtils.biHighIndex(x); - c = 0; - for (var j = 0; j <= n; ++j) { - uv = result.digits[j] + x.digits[j] * y + c; - result.digits[j] = uv & maxDigitVal; - c = uv>>> biRadixBits - } - result.digits[1 + n] = c; - return result - } - ; - RSAUtils.arrayCopy = function(src, srcStart, dest, destStart, n) { - var m = Math.min(srcStart + n, src.length); - for (var i = srcStart, j = destStart; i < m; ++i, - ++j) { - dest[j] = src[i] - } - } - ; - var highBitMasks = [0x0000, 0x8000, 0xC000, 0xE000, 0xF000, 0xF800, 0xFC00, 0xFE00, 0xFF00, 0xFF80, 0xFFC0, 0xFFE0, 0xFFF0, 0xFFF8, 0xFFFC, 0xFFFE, 0xFFFF]; - RSAUtils.biShiftLeft = function(x, n) { - var digitCount = Math.floor(n / bitsPerDigit); - var result = new BigInt(); - RSAUtils.arrayCopy(x.digits, 0, result.digits, digitCount, result.digits.length - digitCount); - var bits = n % bitsPerDigit; - var rightBits = bitsPerDigit - bits; - for (var i = result.digits.length - 1, i1 = i - 1; i> 0; --i, - --i1) { - result.digits[i] = ((result.digits[i] << bits) & maxDigitVal) | ((result.digits[i1] & highBitMasks[bits])>>> (rightBits)) - } - result.digits[0] = ((result.digits[i] << bits) & maxDigitVal); - result.isNeg = x.isNeg; - return result - } - ; - var lowBitMasks = [0x0000, 0x0001, 0x0003, 0x0007, 0x000F, 0x001F, 0x003F, 0x007F, 0x00FF, 0x01FF, 0x03FF, 0x07FF, 0x0FFF, 0x1FFF, 0x3FFF, 0x7FFF, 0xFFFF]; - RSAUtils.biShiftRight = function(x, n) { - var digitCount = Math.floor(n / bitsPerDigit); - var result = new BigInt(); - RSAUtils.arrayCopy(x.digits, digitCount, result.digits, 0, x.digits.length - digitCount); - var bits = n % bitsPerDigit; - var leftBits = bitsPerDigit - bits; - for (var i = 0, i1 = i + 1; i < result.digits.length - 1; ++i, - ++i1) { - result.digits[i] = (result.digits[i]>>> bits) | ((result.digits[i1] & lowBitMasks[bits]) << leftBits) - } - result.digits[result.digits.length - 1]>>>= bits; - result.isNeg = x.isNeg; - return result - } - ; - RSAUtils.biMultiplyByRadixPower = function(x, n) { - var result = new BigInt(); - RSAUtils.arrayCopy(x.digits, 0, result.digits, n, result.digits.length - n); - return result - } - ; - RSAUtils.biDivideByRadixPower = function(x, n) { - var result = new BigInt(); - RSAUtils.arrayCopy(x.digits, n, result.digits, 0, result.digits.length - n); - return result - } - ; - RSAUtils.biModuloByRadixPower = function(x, n) { - var result = new BigInt(); - RSAUtils.arrayCopy(x.digits, 0, result.digits, 0, n); - return result - } - ; - RSAUtils.biCompare = function(x, y) { - if (x.isNeg != y.isNeg) { - return 1 - 2 * Number(x.isNeg) - } - for (var i = x.digits.length - 1; i>= 0; --i) { - if (x.digits[i] != y.digits[i]) { - if (x.isNeg) { - return 1 - 2 * Number(x.digits[i]> y.digits[i]) - } else { - return 1 - 2 * Number(x.digits[i] < y.digits[i]) - } - } - } + for (var s = 0; 0 < i; ) + t.digits[s++] = i & m, + i = Math.floor(i / N); + return t + } + ; + var g = RSAUtils.biFromNumber(1e15); + RSAUtils.biFromDecimal = function(i) { + for (var t, s = "-" == i.charAt(0), r = s ? 1 : 0; r < i.length && "0" == i.charAt(r); ) + ++r; + if (r == i.length) + t = new M; + else { + var e = (i.length - r) % 15; + for (0 == e && (e = 15), + t = RSAUtils.biFromNumber(Number(i.substr(r, e))), + r += e; r < i.length; ) + t = RSAUtils.biAdd(RSAUtils.biMultiply(t, g), RSAUtils.biFromNumber(Number(i.substr(r, 15)))), + r += 15; + t.isNeg = s + } + return t + } + , + RSAUtils.biCopy = function(i) { + var t = new M(!0); + return t.digits = i.digits.slice(0), + t.isNeg = i.isNeg, + t + } + , + RSAUtils.reverseStr = function(i) { + for (var t = "", s = i.length - 1; -1 < s; --s) + t += i.charAt(s); + return t + } + ; + var n = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]; + RSAUtils.biToString = function(i, t) { + var s = new M; + s.digits[0] = t; + for (var r = RSAUtils.biDivideModulo(i, s), e = n[r[1].digits[0]]; 1 == RSAUtils.biCompare(r[0], l); ) + r = RSAUtils.biDivideModulo(r[0], s), + digit = r[1].digits[0], + e += n[r[1].digits[0]]; + return (i.isNeg ? "-" : "") + RSAUtils.reverseStr(e) + } + , + RSAUtils.biToDecimal = function(i) { + var t = new M; + t.digits[0] = 10; + for (var s = RSAUtils.biDivideModulo(i, t), r = String(s[1].digits[0]); 1 == RSAUtils.biCompare(s[0], l); ) + s = RSAUtils.biDivideModulo(s[0], t), + r += String(s[1].digits[0]); + return (i.isNeg ? "-" : "") + RSAUtils.reverseStr(r) + } + ; + var r = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"]; + RSAUtils.digitToHex = function(t) { + var s = ""; + for (i = 0; i < 4; ++i) + s += r[15 & t], + t>>>= 4; + return RSAUtils.reverseStr(s) + } + , + RSAUtils.biToHex = function(i) { + for (var t = "", s = (RSAUtils.biHighIndex(i), + RSAUtils.biHighIndex(i)); -1 < s; --s) + t += RSAUtils.digitToHex(i.digits[s]); + return t + } + , + RSAUtils.charToHex = function(i) { + return 48 <= i && i <= 57 ? i - 48 : 65 <= i && i <= 90 ? 10 + i - 65 : 97 <= i && i <= 122 ? 10 + i - 97 : 0 + } + , + RSAUtils.hexToDigit = function(i) { + for (var t = 0, s = Math.min(i.length, 4), r = 0; r < s; ++r) + t <<= 4, + t |= RSAUtils.charToHex(i.charCodeAt(r)); + return t + } + , + RSAUtils.biFromHex = function(i) { + for (var t = new M, s = i.length, r = 0; 0 < s; s -= 4, + ++r) + t.digits[r] = RSAUtils.hexToDigit(i.substr(Math.max(s - 4, 0), Math.min(s, 4))); + return t + } + , + RSAUtils.biFromString = function(i, t) { + var s = "-" == i.charAt(0) + , r = s ? 1 : 0 + , e = new M + , l = new M; + l.digits[0] = 1; + for (var g = i.length - 1; r <= g; g--) { + var n = i.charCodeAt(g) + , d = RSAUtils.charToHex(n) + , o = RSAUtils.biMultiplyDigit(l, d); + e = RSAUtils.biAdd(e, o), + l = RSAUtils.biMultiplyDigit(l, t) + } + return e.isNeg = s, + e + } + , + RSAUtils.biDump = function(i) { + return (i.isNeg ? "-" : "") + i.digits.join(" ") + } + , + RSAUtils.biAdd = function(i, t) { + var s; + if (i.isNeg != t.isNeg) + t.isNeg = !t.isNeg, + s = RSAUtils.biSubtract(i, t), + t.isNeg = !t.isNeg; + else { + s = new M; + for (var r, e = 0, l = 0; l < i.digits.length; ++l) + r = i.digits[l] + t.digits[l] + e, + s.digits[l] = r % N, + e = Number(N <= r); + s.isNeg = i.isNeg + } + return s + } + , + RSAUtils.biSubtract = function(i, t) { + var s; + if (i.isNeg != t.isNeg) + t.isNeg = !t.isNeg, + s = RSAUtils.biAdd(i, t), + t.isNeg = !t.isNeg; + else { + var r, e; + s = new M; + for (var l = e = 0; l < i.digits.length; ++l) + r = i.digits[l] - t.digits[l] + e, + s.digits[l] = r % N, + s.digits[l] < 0 && (s.digits[l] += N), + e = 0 - Number(r < 0); + if (-1 == e) { + for (l = e = 0; l < i.digits.length; ++l) + r = 0 - s.digits[l] + e, + s.digits[l] = r % N, + s.digits[l] < 0 && (s.digits[l] += N), + e = 0 - Number(r < 0); + s.isNeg = !i.isNeg + } else + s.isNeg = i.isNeg + } + return s + } + , + RSAUtils.biHighIndex = function(i) { + for (var t = i.digits.length - 1; 0 < t && 0 == i.digits[t]; ) + --t; + return t + } + , + RSAUtils.biNumBits = function(i) { + var t, s = RSAUtils.biHighIndex(i), r = i.digits[s], e = (s + 1) * c; + for (t = e; e - c < t && 0 == (32768 & r); --t) + r <<= 1; + return t + } + , + RSAUtils.biMultiply = function(i, t) { + for (var s, r, e, l = new M, g = RSAUtils.biHighIndex(i), n = RSAUtils.biHighIndex(t), d = 0; d <= n; ++d) { + for (e = d, + j = s = 0; j <= g; ++j, + ++e) + r = l.digits[e] + i.digits[j] * t.digits[d] + s, + l.digits[e] = r & m, + s = r>>> 16; + l.digits[d + g + 1] = s + } + return l.isNeg = i.isNeg != t.isNeg, + l + } + , + RSAUtils.biMultiplyDigit = function(i, t) { + var s, r, e; + result = new M, + s = RSAUtils.biHighIndex(i); + for (var l = r = 0; l <= s; ++l) + e = result.digits[l] + i.digits[l] * t + r, + result.digits[l] = e & m, + r = e>>> 16; + return result.digits[1 + s] = r, + result + } + , + RSAUtils.arrayCopy = function(i, t, s, r, e) { + for (var l = Math.min(t + e, i.length), g = t, n = r; g < l; ++g, + ++n) + s[n] = i[g] + } + ; + var d = [0, 32768, 49152, 57344, 61440, 63488, 64512, 65024, 65280, 65408, 65472, 65504, 65520, 65528, 65532, 65534, 65535]; + RSAUtils.biShiftLeft = function(i, t) { + var s = Math.floor(t / c) + , r = new M; + RSAUtils.arrayCopy(i.digits, 0, r.digits, s, r.digits.length - s); + for (var e = t % c, l = c - e, g = r.digits.length - 1, n = g - 1; 0 < g; --g, + --n) + r.digits[g] = r.digits[g] << e & m | (r.digits[n] & d[e])>>> l; + return r.digits[0] = r.digits[g] << e & m, + r.isNeg = i.isNeg, + r + } + ; + var o = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535]; + function u(i) { + var t = RSAUtils + , s = t.biDivideByRadixPower(i, this.k - 1) + , r = t.biMultiply(s, this.mu) + , e = t.biDivideByRadixPower(r, this.k + 1) + , l = t.biModuloByRadixPower(i, this.k + 1) + , g = t.biMultiply(e, this.modulus) + , n = t.biModuloByRadixPower(g, this.k + 1) + , d = t.biSubtract(l, n); + d.isNeg && (d = t.biAdd(d, this.bkplus1)); + for (var o = 0 <= t.biCompare(d, this.modulus); o; ) + d = t.biSubtract(d, this.modulus), + o = 0 <= t.biCompare(d, this.modulus); + return d + } + function S(i, t) { + var s = RSAUtils.biMultiply(i, t); + return this.modulo(s) + } + function a(i, t) { + var s = new M; + s.digits[0] = 1; + for (var r = i, e = t; 0 != (1 & e.digits[0]) && (s = this.multiplyMod(s, r)), + 0 != (e = RSAUtils.biShiftRight(e, 1)).digits[0] || 0 != RSAUtils.biHighIndex(e); ) + r = this.multiplyMod(r, r); + return s + } + RSAUtils.biShiftRight = function(i, t) { + var s = Math.floor(t / c) + , r = new M; + RSAUtils.arrayCopy(i.digits, s, r.digits, 0, i.digits.length - s); + for (var e = t % c, l = c - e, g = 0, n = g + 1; g < r.digits.length - 1; ++g, + ++n) + r.digits[g] = r.digits[g]>>> e | (r.digits[n] & o[e]) << l; + return r.digits[r.digits.length - 1]>>>= e, + r.isNeg = i.isNeg, + r + } + , + RSAUtils.biMultiplyByRadixPower = function(i, t) { + var s = new M; + return RSAUtils.arrayCopy(i.digits, 0, s.digits, t, s.digits.length - t), + s + } + , + RSAUtils.biDivideByRadixPower = function(i, t) { + var s = new M; + return RSAUtils.arrayCopy(i.digits, t, s.digits, 0, s.digits.length - t), + s + } + , + RSAUtils.biModuloByRadixPower = function(i, t) { + var s = new M; + return RSAUtils.arrayCopy(i.digits, 0, s.digits, 0, t), + s + } + , + RSAUtils.biCompare = function(i, t) { + if (i.isNeg != t.isNeg) + return 1 - 2 * Number(i.isNeg); + for (var s = i.digits.length - 1; 0 <= s; --s) + if (i.digits[s] != t.digits[s]) + return i.isNeg ? 1 - 2 * Number(i.digits[s]> t.digits[s]) : 1 - 2 * Number(i.digits[s] < t.digits[s]); return 0 } - ; - RSAUtils.biDivideModulo = function(x, y) { - var nb = RSAUtils.biNumBits(x); - var tb = RSAUtils.biNumBits(y); - var origYIsNeg = y.isNeg; - var q, r; - if (nb < tb) { - if (x.isNeg) { - q = RSAUtils.biCopy(bigOne); - q.isNeg = !y.isNeg; - x.isNeg = false; - y.isNeg = false; - r = biSubtract(y, x); - x.isNeg = true; - y.isNeg = origYIsNeg - } else { - q = new BigInt(); - r = RSAUtils.biCopy(x) - } - return [q, r] - } - q = new BigInt(); - r = x; - var t = Math.ceil(tb / bitsPerDigit) - 1; - var lambda = 0; - while (y.digits[t] < biHalfRadix) { - y = RSAUtils.biShiftLeft(y, 1); - ++lambda; - ++tb; - t = Math.ceil(tb / bitsPerDigit) - 1 - } - r = RSAUtils.biShiftLeft(r, lambda); - nb += lambda; - var n = Math.ceil(nb / bitsPerDigit) - 1; - var b = RSAUtils.biMultiplyByRadixPower(y, n - t); - while (RSAUtils.biCompare(r, b) != -1) { - ++q.digits[n - t]; - r = RSAUtils.biSubtract(r, b) - } - for (var i = n; i> t; --i) { - var ri = (i>= r.digits.length) ? 0 : r.digits[i]; - var ri1 = (i - 1>= r.digits.length) ? 0 : r.digits[i - 1]; - var ri2 = (i - 2>= r.digits.length) ? 0 : r.digits[i - 2]; - var yt = (t>= y.digits.length) ? 0 : y.digits[t]; - var yt1 = (t - 1>= y.digits.length) ? 0 : y.digits[t - 1]; - if (ri == yt) { - q.digits[i - t - 1] = maxDigitVal - } else { - q.digits[i - t - 1] = Math.floor((ri * biRadix + ri1) / yt) - } - var c1 = q.digits[i - t - 1] * ((yt * biRadix) + yt1); - var c2 = (ri * biRadixSquared) + ((ri1 * biRadix) + ri2); - while (c1> c2) { - --q.digits[i - t - 1]; - c1 = q.digits[i - t - 1] * ((yt * biRadix) | yt1); - c2 = (ri * biRadix * biRadix) + ((ri1 * biRadix) + ri2) - } - b = RSAUtils.biMultiplyByRadixPower(y, i - t - 1); - r = RSAUtils.biSubtract(r, RSAUtils.biMultiplyDigit(b, q.digits[i - t - 1])); - if (r.isNeg) { - r = RSAUtils.biAdd(r, b); - --q.digits[i - t - 1] - } - } - r = RSAUtils.biShiftRight(r, lambda); - q.isNeg = x.isNeg != origYIsNeg; - if (x.isNeg) { - if (origYIsNeg) { - q = RSAUtils.biAdd(q, bigOne) - } else { - q = RSAUtils.biSubtract(q, bigOne) - } - y = RSAUtils.biShiftRight(y, lambda); - r = RSAUtils.biSubtract(y, r) - } - if (r.digits[0] == 0 && RSAUtils.biHighIndex(r) == 0) - r.isNeg = false; - return [q, r] - } - ; - RSAUtils.biDivide = function(x, y) { - return RSAUtils.biDivideModulo(x, y)[0] - } - ; - RSAUtils.biModulo = function(x, y) { - return RSAUtils.biDivideModulo(x, y)[1] - } - ; - RSAUtils.biMultiplyMod = function(x, y, m) { - return RSAUtils.biModulo(RSAUtils.biMultiply(x, y), m) - } - ; - RSAUtils.biPow = function(x, y) { - var result = bigOne; - var a = x; - while (true) { - if ((y & 1) != 0) - result = RSAUtils.biMultiply(result, a); - y>>= 1; - if (y == 0) - break; - a = RSAUtils.biMultiply(a, a) - } - return result - } - ; - RSAUtils.biPowMod = function(x, y, m) { - var result = bigOne; - var a = x; - var k = y; - while (true) { - if ((k.digits[0] & 1) != 0) - result = RSAUtils.biMultiplyMod(result, a, m); - k = RSAUtils.biShiftRight(k, 1); - if (k.digits[0] == 0 && RSAUtils.biHighIndex(k) == 0) - break; - a = RSAUtils.biMultiplyMod(a, a, m) - } - return result - } - ; - $w.BarrettMu = function(m) { - this.modulus = RSAUtils.biCopy(m); - this.k = RSAUtils.biHighIndex(this.modulus) + 1; - var b2k = new BigInt(); - b2k.digits[2 * this.k] = 1; - this.mu = RSAUtils.biDivide(b2k, this.modulus); - this.bkplus1 = new BigInt(); - this.bkplus1.digits[this.k + 1] = 1; - this.modulo = BarrettMu_modulo; - this.multiplyMod = BarrettMu_multiplyMod; - this.powMod = BarrettMu_powMod - } - ; - function BarrettMu_modulo(x) { - var $dmath = RSAUtils; - var q1 = $dmath.biDivideByRadixPower(x, this.k - 1); - var q2 = $dmath.biMultiply(q1, this.mu); - var q3 = $dmath.biDivideByRadixPower(q2, this.k + 1); - var r1 = $dmath.biModuloByRadixPower(x, this.k + 1); - var r2term = $dmath.biMultiply(q3, this.modulus); - var r2 = $dmath.biModuloByRadixPower(r2term, this.k + 1); - var r = $dmath.biSubtract(r1, r2); - if (r.isNeg) { - r = $dmath.biAdd(r, this.bkplus1) - } - var rgtem = $dmath.biCompare(r, this.modulus)>= 0; - while (rgtem) { - r = $dmath.biSubtract(r, this.modulus); - rgtem = $dmath.biCompare(r, this.modulus)>= 0 - } + , + RSAUtils.biDivideModulo = function(i, t) { + var s, r, e = RSAUtils.biNumBits(i), l = RSAUtils.biNumBits(t), g = t.isNeg; + if (e < l) + return i.isNeg ? ((s = RSAUtils.biCopy(v)).isNeg = !t.isNeg, + i.isNeg = !1, + t.isNeg = !1, + r = biSubtract(t, i), + i.isNeg = !0, + t.isNeg = g) : (s = new M, + r = RSAUtils.biCopy(i)), + [s, r]; + s = new M, + r = i; + for (var n = Math.ceil(l / c) - 1, d = 0; t.digits[n] < 32768; ) + t = RSAUtils.biShiftLeft(t, 1), + ++d, + ++l, + n = Math.ceil(l / c) - 1; + r = RSAUtils.biShiftLeft(r, d), + e += d; + for (var o = Math.ceil(e / c) - 1, u = RSAUtils.biMultiplyByRadixPower(t, o - n); -1 != RSAUtils.biCompare(r, u); ) + ++s.digits[o - n], + r = RSAUtils.biSubtract(r, u); + for (var S = o; n < S; --S) { + var a = S>= r.digits.length ? 0 : r.digits[S] + , b = S - 1>= r.digits.length ? 0 : r.digits[S - 1] + , A = S - 2>= r.digits.length ? 0 : r.digits[S - 2] + , R = n>= t.digits.length ? 0 : t.digits[n] + , h = n - 1>= t.digits.length ? 0 : t.digits[n - 1]; + s.digits[S - n - 1] = a == R ? m : Math.floor((a * N + b) / R); + for (var U = s.digits[S - n - 1] * (R * N + h), f = 4294967296 * a + (b * N + A); f < U; ) + --s.digits[S - n - 1], + U = s.digits[S - n - 1] * (R * N | h), + f = a * N * N + (b * N + A); + u = RSAUtils.biMultiplyByRadixPower(t, S - n - 1), + (r = RSAUtils.biSubtract(r, RSAUtils.biMultiplyDigit(u, s.digits[S - n - 1]))).isNeg && (r = RSAUtils.biAdd(r, u), + --s.digits[S - n - 1]) + } + return r = RSAUtils.biShiftRight(r, d), + s.isNeg = i.isNeg != g, + i.isNeg && (s = g ? RSAUtils.biAdd(s, v) : RSAUtils.biSubtract(s, v), + t = RSAUtils.biShiftRight(t, d), + r = RSAUtils.biSubtract(t, r)), + 0 == r.digits[0] && 0 == RSAUtils.biHighIndex(r) && (r.isNeg = !1), + [s, r] + } + , + RSAUtils.biDivide = function(i, t) { + return RSAUtils.biDivideModulo(i, t)[0] + } + , + RSAUtils.biModulo = function(i, t) { + return RSAUtils.biDivideModulo(i, t)[1] + } + , + RSAUtils.biMultiplyMod = function(i, t, s) { + return RSAUtils.biModulo(RSAUtils.biMultiply(i, t), s) + } + , + RSAUtils.biPow = function(i, t) { + for (var s = v, r = i; 0 != (1 & t) && (s = RSAUtils.biMultiply(s, r)), + 0 != (t>>= 1); ) + r = RSAUtils.biMultiply(r, r); + return s + } + , + RSAUtils.biPowMod = function(i, t, s) { + for (var r = v, e = i, l = t; 0 != (1 & l.digits[0]) && (r = RSAUtils.biMultiplyMod(r, e, s)), + 0 != (l = RSAUtils.biShiftRight(l, 1)).digits[0] || 0 != RSAUtils.biHighIndex(l); ) + e = RSAUtils.biMultiplyMod(e, e, s); return r } - function BarrettMu_multiplyMod(x, y) { - var xy = RSAUtils.biMultiply(x, y); - return this.modulo(xy) - } - function BarrettMu_powMod(x, y) { - var result = new BigInt(); - result.digits[0] = 1; - var a = x; - var k = y; - while (true) { - if ((k.digits[0] & 1) != 0) - result = this.multiplyMod(result, a); - k = RSAUtils.biShiftRight(k, 1); - if (k.digits[0] == 0 && RSAUtils.biHighIndex(k) == 0) - break; - a = this.multiplyMod(a, a) - } - return result - } - var RSAKeyPair = function(encryptionExponent, decryptionExponent, modulus) { - var $dmath = RSAUtils; - this.e = $dmath.biFromHex(encryptionExponent); - this.d = $dmath.biFromHex(decryptionExponent); - this.m = $dmath.biFromHex(modulus); - this.chunkSize = 2 * $dmath.biHighIndex(this.m); - this.radix = 16; - this.barrett = new $w.BarrettMu(this.m) - }; - RSAUtils.getKeyPair = function(encryptionExponent, decryptionExponent, modulus) { - return new RSAKeyPair(encryptionExponent,decryptionExponent,modulus) - } - ; - if (typeof $w.twoDigit === 'undefined') { - $w.twoDigit = function(n) { - return (n < 10 ? "0" : "") + String(n) - } - } - RSAUtils.encryptedString = function(key, s) { - var a = []; - var sl = s.length; - var i = 0; - while (i < sl) { - a[i] = s.charCodeAt(i); - i++ - } - while (a.length % key.chunkSize != 0) { - a[i++] = 0 - } - var al = a.length; - var result = ""; - var j, k, block; - for (i = 0; i < al; i += key.chunkSize) { - block = new BigInt(); - j = 0; - for (k = i; k < i + key.chunkSize; ++j) { - block.digits[j] = a[k++]; - block.digits[j] += a[k++] << 8 - } - var crypt = key.barrett.powMod(block, key.e); - var text = key.radix == 16 ? RSAUtils.biToHex(crypt) : RSAUtils.biToString(crypt, key.radix); - result += text + " " - } - return result.substring(0, result.length - 1) - } - ; - RSAUtils.decryptedString = function(key, s) { - var blocks = s.split(" "); - var result = ""; - var i, j, block; - for (i = 0; i < blocks.length; ++i) { - var bi; - if (key.radix == 16) { - bi = RSAUtils.biFromHex(blocks[i]) - } else { - bi = RSAUtils.biFromString(blocks[i], key.radix) - } - block = key.barrett.powMod(bi, key.d); - for (j = 0; j <= RSAUtils.biHighIndex(block); ++j) { - result += String.fromCharCode(block.digits[j] & 255, block.digits[j]>> 8) - } - } - if (result.charCodeAt(result.length - 1) == 0) { - result = result.substring(0, result.length - 1) + , + e.BarrettMu = function(i) { + this.modulus = RSAUtils.biCopy(i), + this.k = RSAUtils.biHighIndex(this.modulus) + 1; + var t = new M; + t.digits[2 * this.k] = 1, + this.mu = RSAUtils.biDivide(t, this.modulus), + this.bkplus1 = new M, + this.bkplus1.digits[this.k + 1] = 1, + this.modulo = u, + this.multiplyMod = S, + this.powMod = a + } + ; + function b(i, t, s) { + var r = RSAUtils; + this.e = r.biFromHex(i), + this.d = r.biFromHex(t), + this.m = r.biFromHex(s), + this.chunkSize = 2 * r.biHighIndex(this.m), + this.radix = 16, + this.barrett = new e.BarrettMu(this.m) + } + RSAUtils.getKeyPair = function(i, t, s) { + return new b(i,t,s) + } + , + void 0 === e.twoDigit && (e.twoDigit = function(i) { + return (i < 10 ? "0" : "") + String(i) + } + ), + RSAUtils.encryptedString = function(i, t) { + for (var s = [], r = t.length, e = 0; e < r; ) + s[e] = t.charCodeAt(e), + e++; + for (; s.length % i.chunkSize != 0; ) + s[e++] = 0; + var l, g, n, d = s.length, o = ""; + for (e = 0; e < d; e += i.chunkSize) { + for (n = new M, + l = 0, + g = e; g < e + i.chunkSize; ++l) + n.digits[l] = s[g++], + n.digits[l] += s[g++] << 8; + var u = i.barrett.powMod(n, i.e); + o += (16 == i.radix ? RSAUtils.biToHex(u) : RSAUtils.biToString(u, i.radix)) + " " + } + return o.substring(0, o.length - 1) + } + , + RSAUtils.decryptedString = function(i, t) { + var s, r, e, l = t.split(" "), g = ""; + for (s = 0; s < l.length; ++s) { + var n; + for (n = 16 == i.radix ? RSAUtils.biFromHex(l[s]) : RSAUtils.biFromString(l[s], i.radix), + e = i.barrett.powMod(n, i.d), + r = 0; r <= RSAUtils.biHighIndex(e); ++r) + g += String.fromCharCode(255 & e.digits[r], e.digits[r]>> 8) } - return result + return 0 == g.charCodeAt(g.length - 1) && (g = g.substring(0, g.length - 1)), + g } - ; + , RSAUtils.setMaxDigits(130) - function encryptString(str) { - // e为指数,m为模量,皆可通过JS中找出,固定不变 - var e = "010001"; - var m = "008baf14121377fc76eaf7794b8a8af17085628c3590df47e6534574efcfd81ef8635fcdc67d141c15f51649a89533df0db839331e30b8f8e4440ebf7ccbcc494f4ba18e9f492534b8aafc1b1057429ac851d3d9eb66e86fce1b04527c7b95a2431b07ea277cde2365876e2733325df04389a9d891c5d36b7bc752140db74cb69f"; - var key = RSAUtils.getKeyPair(e, '', m); - return RSAUtils.encryptedString(key, str) - } -// } 注释掉这两行,将立即执行函数改为普通函数,方便下面调用 -// )(window); -function aaa(str) { - return encryptString("1411093327735" + encodeURIComponent(str)) +}(window); +function encryptString(i) { + var t = "010001" + , s = "008baf14121377fc76eaf7794b8a8af17085628c3590df47e6534574efcfd81ef8635fcdc67d141c15f51649a89533df0db839331e30b8f8e4440ebf7ccbcc494f4ba18e9f492534b8aafc1b1057429ac851d3d9eb66e86fce1b04527c7b95a2431b07ea277cde2365876e2733325df04389a9d891c5d36b7bc752140db74cb69f"; + var r = RSAUtils.getKeyPair(t, "", s); + return RSAUtils.encryptedString(r, 1411093327735 + i) } +console.log(encryptString('111111')) From acc1420b536ed986ce1278966452cb284e3e070a Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月13日 10:40:22 +0800 Subject: [PATCH 35/59] Update tc58.py --- .../tc58.py" | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git "a/06-58345円220円214円345円237円216円347円231円273円345円275円225円(RSA)/tc58.py" "b/06-58345円220円214円345円237円216円347円231円273円345円275円225円(RSA)/tc58.py" index fc3e390..c1490b2 100644 --- "a/06-58345円220円214円345円237円216円347円231円273円345円275円225円(RSA)/tc58.py" +++ "b/06-58345円220円214円345円237円216円347円231円273円345円275円225円(RSA)/tc58.py" @@ -8,7 +8,7 @@ def get_password(a): # 获取加密后的密文 with open("tc58.js", "r") as f: ctx = execjs.compile(f.read()) - password = ctx.call("aaa", a) + password = ctx.call("encryptString", a) return password @@ -49,7 +49,7 @@ def mobile_login(mobilecode, tokencode, token): ('tokencode', tokencode), ('token', token), ('finger2', 'zh-CN|24|1.25|4|1536_864|1536_826|-480|1|1|1|undefined|1|unknown|Win32|unknown|3|false|false|false|false|false|0_false_false|d41d8cd98f00b204e9800998ecf8427e|86c75e61215ed0736aa38d1a4dadb102'), - ('fingerprint', 'iMaJiSCrQD0j5Ie2T8tinSg6oh02-zDe'), + ('fingerprint', 'iMaJiSCrQD0j5Ie2T8tinSg6oh02-zDe'), # 可以写死 ('psdk-d', 'jsdk'), ('psdk-v', '1.0.2'), ) @@ -76,6 +76,7 @@ def get_phone_code(token, codetype, mobile, warnkey, path): mobilecode = input("请输入手机验证码:") return mobilecode + def get_params(warnkey, path): # 获取手机验证码时需要的参数 url = "https://passport.58.com/sec/58/frontend/pc/warndata" @@ -122,4 +123,3 @@ def get_code(vcodekey): } print(dologin(data)) - From 7c4249d7000653fe4dc1fcb14c04994ba75b2648 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月13日 10:59:26 +0800 Subject: [PATCH 36/59] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0de06a3..fb233ca 100644 --- a/README.md +++ b/README.md @@ -12,3 +12,4 @@ JS逆向实战、教程持续更新,欢迎star,求关注公众号"逆向 - [x] [【合肥市房产信息平台、百变IP】面向小白之eval混淆](https://mp.weixin.qq.com/s/c_-yghD8sEqgaeLO8NfkgQ) - [x] [【安徽省雨水情监视平台】一个简单易懂的练手网站](https://mp.weixin.qq.com/s/IgaU9dzLcRzCk97Qs7phYA) - [x] [【TAPD模拟登录】非常简单的AES加密练手网站](https://mp.weixin.qq.com/s/vF3P-PBZz-qkxTGJkiQONg) +- [x] [【58同城模拟登录】RSA加密及浏览器指纹分析](https://mp.weixin.qq.com/s/kfDpGlVuUwciyhTBdyrf5A) From 2e5daa959cee30880c833c9e51fc80210cdee686 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月15日 14:32:29 +0800 Subject: [PATCH 37/59] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index fb233ca..01c3936 100644 --- a/README.md +++ b/README.md @@ -13,3 +13,4 @@ JS逆向实战、教程持续更新,欢迎star,求关注公众号"逆向 - [x] [【安徽省雨水情监视平台】一个简单易懂的练手网站](https://mp.weixin.qq.com/s/IgaU9dzLcRzCk97Qs7phYA) - [x] [【TAPD模拟登录】非常简单的AES加密练手网站](https://mp.weixin.qq.com/s/vF3P-PBZz-qkxTGJkiQONg) - [x] [【58同城模拟登录】RSA加密及浏览器指纹分析](https://mp.weixin.qq.com/s/kfDpGlVuUwciyhTBdyrf5A) +- [x] [【毛毛租】AES加密,较难分析的网站](https://mp.weixin.qq.com/s/3_sRSVidVy47-ZipArbCmg) From c23611c7f31f47170948373de3508f6071ee1337 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月20日 16:38:54 +0800 Subject: [PATCH 38/59] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 01c3936..3b21e5b 100644 --- a/README.md +++ b/README.md @@ -14,3 +14,4 @@ JS逆向实战、教程持续更新,欢迎star,求关注公众号"逆向 - [x] [【TAPD模拟登录】非常简单的AES加密练手网站](https://mp.weixin.qq.com/s/vF3P-PBZz-qkxTGJkiQONg) - [x] [【58同城模拟登录】RSA加密及浏览器指纹分析](https://mp.weixin.qq.com/s/kfDpGlVuUwciyhTBdyrf5A) - [x] [【毛毛租】AES加密,较难分析的网站](https://mp.weixin.qq.com/s/3_sRSVidVy47-ZipArbCmg) +- [x] [JS逆向 | 骚操作教你如何伪造浏览器环境](https://mp.weixin.qq.com/s/secmduSgSjuhbBuTrNxZkQ) From 09f3847fb0cbcf649ba46ef5b2ce61f998e66de4 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年4月20日 16:39:21 +0800 Subject: [PATCH 39/59] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b21e5b..f2ec019 100644 --- a/README.md +++ b/README.md @@ -14,4 +14,4 @@ JS逆向实战、教程持续更新,欢迎star,求关注公众号"逆向 - [x] [【TAPD模拟登录】非常简单的AES加密练手网站](https://mp.weixin.qq.com/s/vF3P-PBZz-qkxTGJkiQONg) - [x] [【58同城模拟登录】RSA加密及浏览器指纹分析](https://mp.weixin.qq.com/s/kfDpGlVuUwciyhTBdyrf5A) - [x] [【毛毛租】AES加密,较难分析的网站](https://mp.weixin.qq.com/s/3_sRSVidVy47-ZipArbCmg) -- [x] [JS逆向 | 骚操作教你如何伪造浏览器环境](https://mp.weixin.qq.com/s/secmduSgSjuhbBuTrNxZkQ) +- [x] [ JS逆向 | 骚操作教你如何伪造浏览器环境](https://mp.weixin.qq.com/s/secmduSgSjuhbBuTrNxZkQ) From f6353d840b85c3f325298f3b01362b0522dc6c90 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: Sat, 9 May 2020 20:02:34 +0800 Subject: [PATCH 40/59] Update ysq.js --- .../ysq.js" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/04-345円256円211円345円276円275円347円234円201円351円233円250円346円260円264円346円203円205円JS351円200円206円345円220円221円/ysq.js" "b/04-345円256円211円345円276円275円347円234円201円351円233円250円346円260円264円346円203円205円JS351円200円206円345円220円221円/ysq.js" index 298aab7..d8b289f 100644 --- "a/04-345円256円211円345円276円275円347円234円201円351円233円250円346円260円264円346円203円205円JS351円200円206円345円220円221円/ysq.js" +++ "b/04-345円256円211円345円276円275円347円234円201円351円233円250円346円260円264円346円203円205円JS351円200円206円345円220円221円/ysq.js" @@ -63,7 +63,7 @@ WaterSecurity.prototype = { var result = ""; for (var i = 0; i < tags.length; i++) result += content[tags[i]]; -// result = this.utf8to16(this.base64decode(result)); + result = this.utf8to16(this.base64decode(result)); return result }, getTagsPosition: function(data, tags) { From d554dedf39b6d06f843ebe2fb28393e647e1808f Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年5月11日 17:44:31 +0800 Subject: [PATCH 41/59] Create toutiao.py --- .../toutiao.py" | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 "18-344円273円212円346円227円245円345円244円264円346円235円241円/toutiao.py" diff --git "a/18-344円273円212円346円227円245円345円244円264円346円235円241円/toutiao.py" "b/18-344円273円212円346円227円245円345円244円264円346円235円241円/toutiao.py" new file mode 100644 index 0000000..5369d22 --- /dev/null +++ "b/18-344円273円212円346円227円245円345円244円264円346円235円241円/toutiao.py" @@ -0,0 +1,35 @@ +# https://www.toutiao.com/ch/news_hot/ +import requests + + +session = requests.Session() +ua = 'Mozilla/5.0 (Windows NT 6.1; ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4142.0 Safari/537.36' +headers = { + 'referer': 'https://www.toutiao.com', + 'sec-fetch-dest': 'empty', + 'sec-fetch-mode': 'cors', + 'sec-fetch-site': 'same-origin', + 'user-agent': ua, + 'x-requested-with': 'XMLHttpRequest', + 'accept': 'text/javascript, text/html, application/xml, text/xml, */*', + 'accept-language': 'zh-CN,zh;q=0.9', + 'content-type': 'application/x-www-form-urlencoded', +} +data = { + # 热点,其它需要作相应修改。JS文件同样需要修改 + "category": "news_hot", + "userAgent": ua, + "max_behot": 0 +} +for i in range(5): + # 这里仅获取前5页 + param = requests.post("http://127.0.0.1:8919/get_param", data=data).json() + url = "https://www.toutiao.com/api/pc/feed/" + res = session.get(url, params=param, headers=headers) + result = res.json() + print(result) + print("已获取第" + str(i+1) + "页") + if not result['has_more']: + data["max_behot"] = result['next']['max_behot_time'] + else: + break From 24a721b2cc46a1ff5d83f85b7cb19b8d5571d2d8 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年5月11日 17:46:09 +0800 Subject: [PATCH 42/59] Create toutiao.js --- .../toutiao.js" | 778 ++++++++++++++++++ 1 file changed, 778 insertions(+) create mode 100644 "18-344円273円212円346円227円245円345円244円264円346円235円241円/toutiao.js" diff --git "a/18-344円273円212円346円227円245円345円244円264円346円235円241円/toutiao.js" "b/18-344円273円212円346円227円245円345円244円264円346円235円241円/toutiao.js" new file mode 100644 index 0000000..98970b6 --- /dev/null +++ "b/18-344円273円212円346円227円245円345円244円264円346円235円241円/toutiao.js" @@ -0,0 +1,778 @@ +window = global; +window.global = undefined; +Object.prototype.toString.call = function(){return "[object Window]"}; +document = { + addEventListener: function(){}, + removeEventListener: function(){}, + getElementsByTagName: function(){ + var head = { + appendChild: function(){}, + } + return [head]; + }, + createElement: function(name){ + if (name === "canvas") { + return canvas + } + var script = {} + return script; + }, + toString: function(){return "[object HTMLDocument]"}, + cookie:"tt_webid=6825408079360001549; s_v_web_id=verify_ka1vbe1k_GubxxV1k_sbBs_4GJN_97J3_d9DEaAlScSnw; csrftoken=d491c7930e77ad510b88f9e0b4769ca4" +}; +canvas = { + getContext: function getContext() { + return CanvasRenderingContext2D + }, + toDataURL: function toDataURL() { + // 实际为canvas画布填充了"˜ 1⁄2"字样后,转成的图片链接 + return "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAQCAYAAABQrvyxAAAA8UlEQVRIS9XWMWoCQRSA4c9GMGDtAbyAdxDSpkxhYRByDj2AkFrIJVKFeIuAjR4glV7AxjAwC8OSRd3d7LKv2oVh3v/PvHkzPR2PXsI/wCM+EL4fcLrid0E6R/7/35cnTf6EETb4xjP2dwg0Dh/YUoEyq5VCd1qgFfg6d6CzAlnZZQKNi1Q9A0EgD9+oRFWBFZZJM2gUvq4z8Ir3WEudFJjEeyPAZ1F1Z29u6VUSzTCPt/fNCeseWFZgiAMW+Kwb6p75yggE+C9sEQ5xq/GXQB/nAqpQNuv4XmodvqgLhUfdC474iX1+jCl2eGu7bNLF/QWCjSoR0K0uZAAAAABJRU5ErkJggg==" + }, +}; +canvas.toDataURL.toString = function(){return "function toDataURL() { [native code] }"}; +CanvasRenderingContext2D = { + arc: function arc() {}, + stroke: function stroke() {}, + fillText: function fillText() {}, +}; +PluginArray = function(){}; +navigator = { + toString: function(){return "[object Navigator]"}, + plugins: new PluginArray() +}; +navigator.plugins.toString = function(){return "[object PluginArray]"}; +navigator.toString.toString = function(){return "function toString() { [native code] }"}; +history = { + toString: function(){return "[object History]"} +}; +Audio = {}; +CanvasRenderingContext2D = {}; +Image = function(){}; +location = { + href: "https://www.toutiao.com/ch/news_hot/", + protocol: "https:", + +}; +sessionStorage = { + getItem: function (key) { + return this[key] ? this[key]: null; + }, + setItem: function (key, value) { + this[key] = "" + value; + }, +}; +localStorage = { + removeItem: function (key) { + delete this[key] + }, + getItem: function (key) { + return this[key] ? this[key]: null; + }, + setItem: function (key, value) { + this[key] = "" + value; + }, +}; +HTMLElement = function(){}; +setTimeout = function(){}; + + +var _typeof = function(f){return typeof f}; +TAC = function() { + function f(f, a, b, d, c, r) { + null == r && (r = this); + var n, i, o = {}, l = o.d = c ? c.d + 1 : 0; + for (o["$" + l] = o, + i = 0; i < l; i++) + o[n = "$" + i] = c[n]; + for (i = 0, + l = o.length = d.length; i < l; i++) + o[i] = d[i]; + return e(f, a, b, o, r)[1] + } + function e(r, o, l, t, v, y) { + function h(f) { + S[++A] = f + } + function k() { + return S[A--] + } + function m(f, e) { + for (var a = b, d = "", c = 0; c < f.length; c++) { + var r = f.charCodeAt(c); + d += String.fromCharCode(a ^ r), + a = (a << 1) + c + e + 1 + (a>> 1) & 255 + } + return d + } + null == v && (v = this); + var g, C, x, I, S = [], A = 0; + y && (g = y); + for (var w = o + 2 * l; o < w; ) { + var z = 13 * i(r, o) % 241; + if (o += 2, + 0 == (3 & z)) + if (0 == (3 & (z>>= 2))) { + if (0 == (z>>= 2)) + return [1, S[A--]]; + if (2 == z) + oprand = n(r, o), + o += 2 * oprand[0], + I = oprand[1], + S[++A] = +I; + else if (4 == z) + g = S[A--], + S[A] = S[A] * g; + else if (6 == z) + g = S[A--], + S[A] = S[A] != g; + else if (13 == z) + C = S[A--], + x = S[A--], + (I = S[A--]).x === e ? S[++A] = f(r, I.pc, I.len, C, I.z, x) : S[++A] = I.apply(x, C); + else { + if (15 != z) + break; + oprand = n(r, o), + I = oprand[1], + S[A] = function(a, b) { + var d = function e() { + var a = arguments; + return f(r, e.pc, e.len, a, e.z, this) + }; + return d.pc = a, + d.len = b, + d.x = e, + d.z = t, + d + }(o + 6, I - 4), + o += 2 * I - 2 + } + } else if (1 == (3 & z)) + if (3 == (z>>= 2)) + g = S[--A], + S[A] = g(S[A + 1]); + else if (5 == z) + S[A -= 1] = S[A][S[A + 1]]; + else if (7 == z) + S[A] = --S[A]; + else { + if (9 != z) + break; + g = S[A--], + S[A] = typeof g + } + else if (2 == (3 & z)) + if (6 == (z>>= 2)) + S[A] = u(S[A]); + else if (8 == z) + g = S[A--], + oprand = n(r, o), + o += 2 * oprand[0], + S[A--][m(a[oprand[1]], oprand[1])] = g; + else { + if (10 != z) { + if (12 == z) + throw S[A--]; + break + } + S[A] = ~S[A] + } + else if (0 == (z>>= 2)) + S[++A] = null; + else if (2 == z) + g = S[A--], + S[A] = S[A]>= g; + else if (9 == z) + g = k(), + C = k(), + t[0] = 65599 * t[0] + t[g].charCodeAt(C)>>> 0; + else if (11 == z) + S[++A] = void 0; + else { + if (13 != z) + break; + g = S[A--], + S[A] = S[A] && g + } + else if (1 == (3 & z)) + if (0 == (3 & (z>>= 2))) { + if (4 == (z>>= 2)) { + oprand = n(r, o), + I = oprand[1]; + try { + if (d[c][2] = 1, + 1 == (g = e(r, o + 6, I - 4, t, v))[0]) + return g + } catch (y) { + if (d[c] && d[c][1] && 1 == (g = e(r, d[c][1][0], d[c][1][1], t, v, y))[0]) + return g + } finally { + if (d[c] && d[c][0] && 1 == (g = e(r, d[c][0][0], d[c][0][1], t, v))[0]) + return g; + d[c] = 0, + c-- + } + o += 2 * I - 2 + } else if (6 == z) + oprand = n(r, o), + o += 2 * oprand[0], + I = oprand[1], + S[A -= I] = p("x,y", "return new x[y](" + Array(I + 1).join(",x[++y]").substr(1) + ")")(S, A); + else if (8 == z) + g = S[A--], + S[A] = S[A] & g; + else if (10 != z) + break + } else if (1 == (3 & z)) + if (0 == (z>>= 2)) + S[A] = !S[A]; + else if (7 == z) + C = S[A--], + g = delete S[A--][C]; + else if (9 == z) + oprand = n(r, o), + o += 2 * oprand[0], + S[A] = S[A][m(a[oprand[1]], oprand[1])]; + else { + if (11 != z) + break; + g = S[A--], + S[A] = S[A] << g + } + else if (2 == (3 & z)) + if (1 == (z>>= 2)) + S[++A] = g; + else if (3 == z) + g = S[A--], + S[A] = S[A] <= g; + else if (10 == z) + g = S[A -= 2][S[A + 1]] = S[A + 2], + A--; + else if (12 == z) + g = S[A], + S[++A] = g; + else { + if (14 != z) + break; + g = S[A--], + S[A] = S[A] || g + } + else if (0 == (z>>= 2)) + S[A] = !S[A]; + else if (2 == z) + oprand = n(r, o), + o += 2 * (I = oprand[1]) - 2; + else if (4 == z) + g = S[A--], + S[A] = S[A] / g; + else if (6 == z) + g = S[A--], + S[A] = S[A] !== g; + else { + if (13 != z) + break; + S[++A] = v + } + else if (2 == (3 & z)) + if (0 == (3 & (z>>= 2))) + if (1 == (z>>= 2)) + g = S[A--], + S[A] = S[A]> g; + else if (8 == z) + oprand = n(r, o), + o += 2 * oprand[0], + I = oprand[1], + C = A + 1, + S[A -= I - 1] = I ? S.slice(A, C) : []; + else if (10 == z) + oprand = n(r, o), + o += 2 * oprand[0], + I = oprand[1], + g = S[A--], + t[I] = g; + else { + if (12 != z) + break; + g = S[A--], + S[A] = S[A]>> g + } + else if (1 == (3 & z)) + if (0 == (z>>= 2)) + S[++A] = s; + else if (2 == z) + g = S[A--], + S[A] = S[A] + g; + else if (4 == z) + g = S[A--], + S[A] = S[A] == g; + else if (11 == z) + oprand = n(r, o), + o += 2 * oprand[0], + I = oprand[1], + S[--A] = p("x,y", "return x " + m(a[I], I) + " y")(S[A], S[A + 1]); + else { + if (13 != z) + break; + g = S[A - 1], + C = S[A], + S[++A] = g, + S[++A] = C + } + else if (2 == (3 & z)) + if (1 == (z>>= 2)) + oprand = n(r, o), + o += 2 * oprand[0], + S[++A] = m(a[oprand[1]], oprand[1]); + else if (3 == z) + S[A--] ? o += 6 : (oprand = n(r, o), + o += 2 * (I = oprand[1]) - 2); + else if (5 == z) + g = S[A--], + S[A] = S[A] % g; + else if (7 == z) + g = S[A--], + S[A] = S[A]instanceof g; + else { + if (14 != z) + break; + S[++A] = !1 + } + else if (4 == (z>>= 2)) + oprand = n(r, o), + I = oprand[1], + d[c][0] && !d[c][2] ? d[c][1] = [o + 6, I - 4] : d[c++] = [0, [o + 6, I - 4], 0], + o += 2 * I - 2; + else if (6 == z) + oprand = n(r, o), + o += 2 * oprand[0], + I = oprand[1], + S[++A] = t["$" + I]; + else { + if (8 != z) + break; + g = S[A--], + S[A] = S[A] | g + } + else if (0 == (3 & (z>>= 2))) + if (1 == (z>>= 2)) + oprand = n(r, o), + o += 2 * oprand[0], + I = oprand[1], + S[++A] = +m(a[I], I); + else if (3 == z) + g = S[A--], + S[A] = S[A] - g; + else if (5 == z) + g = S[A--], + S[A] = S[A] === g; + else if (12 == z) + C = S[A--], + x = S[A--], + (I = S[A--]).x === e ? S[++A] = f(r, I.pc, I.len, C, I.z, x) : S[++A] = I.apply(x, C); + else { + if (14 != z) + break; + g = S[A], + S[A] = S[A - 1], + S[A - 1] = g + } + else if (1 == (3 & z)) + if (2 == (z>>= 2)) + h(function(f) { + var e = 0 + , a = f.length; + return function() { + var b = e < a; + b && h(f[e++]), + h(b) + } + }(S[A])); + else if (4 == z) + oprand = n(r, o), + o += 2 * oprand[0], + I = oprand[1], + g = t[I], + S[++A] = g; + else if (6 == z) + S[A] = ++S[A]; + else { + if (8 != z) + break; + g = S[A--], + S[A] = S[A]in g + } + else if (2 == (3 & z)) + if (5 == (z>>= 2)) + ; + else if (7 == z) + g = S[A--]; + else if (9 == z) + g = S[A--], + S[A] = S[A] ^ g; + else { + if (11 != z) + break; + oprand = n(r, o), + I = oprand[1], + d[++c] = [[o + 6, I - 4], 0, 0], + o += 2 * I - 2 + } + else if (1 == (z>>= 2)) + g = S[A--], + S[A] = S[A] < g; + else if (8 == z) + oprand = n(r, o), + o += 2 * oprand[0], + I = oprand[1], + S[A] = S[A][I]; + else if (10 == z) + S[++A] = !0; + else { + if (12 != z) + break; + g = S[A--], + S[A] = S[A]>>> g + } + } + return [0, null] + } + var a = [] + , b = 0 + , d = [] + , c = 0 + , r = function(f, e) { + var a = "" + f[e++] + f[e]; + return parseInt(a, 16) + } + , n = function(f, e) { + var a = f[e++] + , b = f[e] + , d = parseInt("" + a + b, 16); + if (d>> 7 == 0) + return d>> 6 != 0 && (d = -64 | 63 & d), + [1, d]; + if (d>> 6 == 2) { + var c = parseInt("" + f[++e] + f[++e], 16); + return 0 != (32 & d) ? d = -32 | 31 & d : d &= 31, + d <<= 8, + c = d + c, + [2, c] + } + if (d>> 6 == 3) { + var r = parseInt("" + f[++e] + f[++e], 16) + , n = parseInt("" + f[++e] + f[++e], 16); + return 0 != (32 & d) ? d = -32 | 31 & d : d &= 31, + d <<= 16, + r <<= 8, + n = d + r + n, + [3, n] + } + } + , i = function(f, e) { + var a = f[e++] + , b = f[e]; + return parseInt("" + a + b, 16) + } + , o = function(f, e) { + var a = "" + f[e++] + f[e]; + return a = parseInt(a, 16), + String.fromCharCode(a) + } + , l = function(f, e, a) { + for (var b = "", d = 0; d < a; d++) + b += o(f, e), + e += 2; + return b + } + , t = function(f, e, b) { + for (var d = 0; d < b; d++) { + var c = n(f, e); + e += 2 * c[0]; + var r = l(f, e, c[1]); + a.push(r), + e += 2 * c[1] + } + } + , s = this + , p = s.Function + , u = Object.keys || function(f) { + var e = {} + , a = 0; + for (var b in f) + e[a++] = b; + return e.length = a, + e + } + ; + return function(e) { + e.length; + for (var d = 0, c = "", i = d; i < d + 16; ) + c += o(e, i), + i += 2; + if ("HNOJ@?RC" != c) + throw new Error("error magic number " + c); + n(e, d += 16); + d += 8, + b = 0; + for (var l = 0; l < 4; l++) { + var s = r(e, d + 2 * l); + b += (3 & s) << 2 * l + } + d += 16; + var p = n(e, d += 16) + , u = p[1] + , v = d += 2 * p[0]; + d += p[1]; + var y = n(e, d); + y[1]; + d += 2 * y[0], + a = [], + t(e, d, y[1]), + f(e, v, u, []) + } +}(); +TAC("484e4f4a403f524300101e172f68af3071ba554d0000000000000000c08c8c020025806d4421131e014302023e22170d44441c21131e0343020440170f44441801131e01041c1680474421131e054302063e22170a44441c131e051e0717164444131e052602010a0118010a02101c161e444418002201170644441c131f0018011800131e081a001d0927041c002611020025c045ce020a250c4444131e0b1e0c0101001f06020d250d444421131e0e43020440001f07020f25805144131e10021102121a02221e1324131e140a010f2201173744441c0200251144441800221e15240a000f02163e00131e17012201171844441c21131e174302044022170a44441c131e171e1804001f08021925114444131e1a1a00221e1b240a000f001f09021c253a44442118004302043e2201170944441c1800263e1707444402000021180043021d3e171344441800170a4444021e16064444021f001800001f0a022025804b441801011708444402211f0102001f0618001f071807150039172c444418061801131e22221e2324131e22221e24240a000f18011e252a0a010f19281f0618072e1f0716511806001f0b02262580ce4402041f0621134318063e2201171044441c13221e15240a000f0227402201171744441c131e081e281e15221e2924130a010f0227402201170d44441c21131e0b4318063e2201171b44441c131e0b221e15240a000f221e2a24022b0a010f15003a2201170d44441c21131e2c4318063e2201171244441c131e2c221e15240a000f022d402201170d44441c21131e2e4318063e1706444420001b010b06260a0010011726444421131e2f4318063e2201171244441c131e2f221e15240a000f02304017064444200012001f0c023125809744131e321a001f06131e08221e332418060234131e081a00220200250c44441b020b00201d35001d360a030f1c131e37221e3824023918060a020f1c1322170844441c131e3722170a44441c131e371e3a170944441800201d351b010b07260a0010173144441322172244441c131e3b131e3c29158064392201171044441c131e3d131e3e2915806439170944441800201d35001f0d023f252d444421131e80404302044022171e44441c131e081e281e15221e2924131e80401e80410a010f0280423e001f0e028043258065441b010b06260a00100117805644028044131e2c42012201171144441c131e2c1e8044131e804541012201170a44441c02804613422201170a44441c02804713422201170a44441c02804813422201171044441c028049134202804a13423a0012001f0f02804b25810444131e2c1e804c1706444420004604444406094444271f062000052f44440233131e084217244444131e08221e3324131e2c02804c131e081a0022211d804d22121d804e0a030f1c0702804f0280500280510280520280530280540280550280560280570280580280590a0b1f0602805a02805b02805c0a031f07180708031f0818082104171944441f0918071809191f0a13180a191706444420001665180608031f0818082104171b44441f0918061809191f0a131e0b180a191706444420001663131e0b08031f0818082104173144441f091809221e805d24131e1002805e02001a020a010f22170e44441c131e0b1809191e805f170644442000164d12001f100280602580c9441b010b07260a001017284444131e8061221e80622402130a010f1f0618060200250d44441b020b00201d8063001d80641b010b08260a001017805c4446044444062d4444271f0618061e8065131e80661e80673e22170e44441c131e80681e2515003e170a44441800201d806305274444131e8068221e80692402806a02000a020f1c131e8068221e806b2402806a0a010f1c071b010b06260a001017284444131e80610122171444441c131e806c2201170944441c131e806d170a44441800201d8063001f1102806e25809f441b010b06260a00100117809044131e0b221e806f240280700a010f1f0618061e8071221e15240a000f221e807224131e100280730280741a0202000a020f221e2a240280750a010f15003a2201173344441c131e2c1e15221e15240a000f221e807224131e100280730280741a0202000a020f221e2a240280750a010f15003a2201171644441c131e2c1e8044221e15240a000f028076400012001f1202807725807144131e1002807802001a021f061322170844441c131e2e22170b44441c131e2e1e807917804944131e2e1e80791f071807221e2a2402807a0a010f15003e2201171444441c1807221e2a2402807b0a010f15003e2201171044441c1806221e132418070a010f17064444200012001f1302807c2580d144261f0646044444060f4444271f07131e0b1e807d1f0605174444131e0b221e807e2402807f0a010f0b001f06071806263e1705444400131e0b221e806f240280800a010f1f07028081131e80822615c02710131e22221e24240a000f2a150a0a02102802808128131e1a1a00221e1b240a000f281f081800028083180828281f00180718001d80841318080200253144441b020b011800041c4604444406044444051c44441b020b06221e8085241b020b070a010f1c131b020b080907000d1806221e80862418070a010f1c001f140280872580bf4418001e251f0618061502331f0718011733444418001806150129191f0818071504291f07180818071503293a2201170a44441c180818073917064444260018081f0715001f08180818063a17804a4418001808131e8088221e80892418001808191580ff2f18001808191508351580ff2f18001808191510351580ff2f18001808191518351580ff2f0a040f0d18082d1f0816bfb41800221e808a2402000a010f1f081801171344441808221e808b24150018070a020f001808001f1502808c2580814418001e251f0618061502341f07180615032f1500401709444418072d1f071801171c4444131e808d18071501281a011f081808180718060d160e4444131e808d18071a011f0815001f09180918063a172b44441808180915023423191800221e808e2418090a010f180915032f15033333300d18092d1f0916521808001f1602808f250b444418001480902f001f1702809125314444180215053518011502333118011503351802150433312818001801311805180315032f180431191802312831001f180280922518444418001e2515043a170a4444180015041d251800001f190280932580d24418001e251f0618061501291f0718001807191f0915001f0a131e22221e23241506153418062b280a010f1500301f0d180d150039178097441b010b17180a1b010b805f28041f0a180a15023515032f1f0b15001f0c180c18073a173c44441800180c150128191f081800180c1b010b171800180c191b010b1826180a18081809180c180b18010a061028040d271f09180c2d1f0c164118000b001f08180018071b010b1718001807191b010b1826180a180818091807180b18010a061028040d271f09180d2e1f0d16bf671800001f1a0280942580d34418001e251f0618061501291f0718000b001f08131e22221e23241506153418062b280a010f1f0d1b010b17180d1b010b805f2a041f0a180a15004017809144180a15023515032f1f0b18071f0c180c150039173c44441800180c150129191f091800180c1b010b171800180c191b010b1826180a18081809180c180b18010a061029040d271f08180c2e1f0c164118001807191f0918001b010b1718000b001b010b1826180a180818091500180b18010a061029041d1f271f081b010b17180a1b010b805f29041f0a16bf6d1800001f1b0280952581a744131e1002809602001a02221e132418000a010f170744441800000a001f0618001e251f0715001f0815001f09180818073a178165441800221e808e2418080a010f1f0a180a1580803a17194444180618091800221e80972418080a010f0d16812b44180a1588003a172b444418061809131e8088221e8089241580c0180a15063430158080180a153f2f300a020f0d1680fa44180a15c0d8003a2201170c44441c180a15c0dfff391737444418061809131e8088221e8089241580e0180a150c3430158080180a150634153f2f30158080180a153f2f300a030f0d1680ae44180815012818073a178098441800221e808e2418081501280a010f1f0b180a15c0dc003a22170c44441c15c0dc00180b3c22170c44441c180b15c0dfff3c17806244180a1583ff2f150a33180b1583ff2f3015c10000281f0c18061809131e8088221e8089241580f0180c151234153f2f30158080180c150c34153f2f30158080180c150634153f2f30158080180c153f2f300a040f0d18082d1f08160e4444131e80980280991a014718082d1f0818092d1f0916be991806221e808a2402000a010f001f1c02809a25825c44131e808d18011a011f0615001f0715001f0818001e251f09180718013a22170a44441c180818093a178212441800221e808e241808222d1f080a010f1f0a180a1504341f0b180b15004017806f44180b15014017806644180b15024017805d44180b15034017805444180b15044017804b44180b15054017804244180b15064017394444180b15074017304444180b150c4017324444180b150d4017294444180b150e4017805c44180b150f401780a94416816b4416817d4418061807180a0d16817244180818093a1729444418061807180a151f2f1506331800221e808e241808222d1f080a010f153f2f300d160e4444131e809802809b1a014716813644180815012818093a1780404418061807180a150f2f150c331800221e808e241808222d1f080a010f153f2f150633301800221e808e241808222d1f080a010f153f2f300d160e4444131e809802809b1a01471680e044180815022818093a1780b044180a15072f1512331800221e808e241808222d1f080a010f153f2f150c33301800221e808e241808222d1f080a010f153f2f150633301800221e808e241808222d1f080a010f153f2f3015c10000291f0c1500180c3c22170c44441c180c15cfffff3c172f444418061807222d1f07180c150a341583ff2f15c0d800300d18061807180c1583ff2f15c0dc00300d161a4444131e809802809c180c221e152415100a010f281a0147160e4444131e809802809b1a0147161a4444131e809802809d180a221e152415100a010f281a014718072d1f0716bde1180718013a170a4444180618071d25131e80881e8089131e8088180610001f1d02809e2582ad440a001f06131e808d15c080001a011f0715001f0815001f0918001e251f0a180818013a22170a44441c1809180a3a17824a441800221e808e241809222d1f090a010f1f0b180b1504341f0c180c15004017806f44180c15014017806644180c15024017805d44180c15034017805444180c15044017804b44180c15054017804244180c15064017394444180c15074017304444180c150c4017324444180c150d4017294444180c150e4017805c44180c150f401780a94416816b4416817d4418071808180b0d168172441809180a3a1729444418071808180b151f2f1506331800221e808e241809222d1f090a010f153f2f300d160e4444131e809802809b1a0147168136441809150128180a3a1780404418071808180b150f2f150c331800221e808e241809222d1f090a010f153f2f150633301800221e808e241809222d1f090a010f153f2f300d160e4444131e809802809b1a01471680e0441809150228180a3a1780b044180b15072f1512331800221e808e241809222d1f090a010f153f2f150c33301800221e808e241809222d1f090a010f153f2f150633301800221e808e241809222d1f090a010f153f2f3015c10000291f0d1500180d3c22170c44441c180d15cfffff3c172f444418071808222d1f08180d150a341583ff2f15c0d800300d18071808180d1583ff2f15c0dc00300d161a4444131e809802809c180d221e152415100a010f281a0147160e4444131e809802809b1a0147161a4444131e809802809d180b221e152415100a010f281a0147180815c07ffe3b1731444418081501281f0d1807180d1d25180618061e25131e80881e8089131e80881807100d1801180d291f01157f1f0818082d1f0816bda91808150039171f4444180718081d25180618061e25131e80881e8089131e80881807100d1806221e808a2402000a010f001f1e02809f2580ac441801213e2201170944441c1801263e2201170a44441c180115003a170a444418001e251f01180115003e17074444020000131e1002809602001a02221e132418000a010f2201171944441c131e100280a002001a02221e132418000a010f0117214444180118001e253e170744441800001800221e80a124150018010a020f00180115c0ffff3a171444441b010b1d26180018010a0210161044441b010b1e26180018010a0210001f1f0280a2258067441800213e2201170944441c1800263e2201170c44441c18001e2515003e170744441800001b010b1c1800041f001b010b1c1801041f011b010b15261b010b1a261b010b16261800200a02101b010b191b010b16261801120a0210040a0210120a0210001f200280a3258063441800213e2201170944441c1800263e2201170c44441c18001e2515003e170744441800001b010b1c1801041f011b010b1f1b010b15261b010b1b261b010b16261800120a02101b010b191b010b16261801120a0210040a0210200a021004001f210280a4258181440280a51f0618011708444418011f0602001f0715001f0918001e2518091503283b1780aa441800221e808e241809222d1f090a010f1580ff2f1510331800221e808e241809222d1f090a010f1580ff2f150833301800221e808e241809222d1f090a010f1580ff2f301f0818071806221e80972418081480a62f1512340a010f281f0718071806221e809724180815c3f0002f150c340a010f281f0718071806221e8097241808158fc02f1506340a010f281f0718071806221e8097241808153f2f0a010f281f0716bf4f18001e251809291500391780a5441800221e808e241809222d1f090a010f1580ff2f15103318001e25180939171b44441800221e808e2418090a010f1580ff2f150833160644441500301f0818071806221e80972418081480a62f1512340a010f281f0718071806221e809724180815c3f0002f150c340a010f281f07180718001e25180939171b44441806221e8097241808158fc02f1506340a010f160744440280a7281f0718070280a7281f071807001f220280a8251144440280a9221e2a2418000a010f001f230280aa2581094402001f0615001f07180718001e251503293a1780f0441b010b231800221e80972418071500280a010f041f081b010b231800221e80972418071501280a010f041f091b010b231800221e80972418071502280a010f041f0a1b010b231800221e80972418071503280a010f041f0b1806131e8088221e80892418081502331809150435300a010f281f061800221e80972418071502280a010f0280a73f172744441806131e8088221e80892418091504331580f02f180a150235150f2f300a010f281f061800221e80972418071503280a010f0280a73f172144441806131e8088221e808924180a1506331580c02f180b300a010f281f0618071504281f0716bf091806001f240280ab25804c441800153f2f1f00131e8088221e80892418001800151a3a170b444415804116254444180015343a170b4444158047161544441800153e3a170a4444157c16064444156f280a010f001f250280ac253444441b010b251f06180618001518340418061800151234042818061800150c340428180618001506340428180618000428001f260280ad258097441b010b805e1e80ae0280af281f061b010b1426180602002580774418001e2515083a1705444400460444440604444405805e441b010b21261b010b241800221e80b02415080a010f041800221e80b024150015080a020f0a02101f0618060280b13e171444441b010b28262018000a02101c161a444418060280b23e171044441b010b28261218000a02101c07000a02101c001f270280b3258050441b010b805e18001d80b4460444440604444405394444131e806817164444131e8068221e8069240280b518010a020f1c131e80b617164444131e80b6221e8069240280b518010a020f1c07001f280280b72580ab4402001f06460444440604444405804144131e806817154444131e8068221e80b8240280b50a010f1f061806012201170944441c131e80b617154444131e80b6221e80b8240280b50a010f1f0607180617805644460444440604444405804a441b010b21261b010b241806221e80b02415080a010f041806221e80b024150015080a020f0a02101f0718070280b13e170a444420001610444418070280b23e1706444412000712001f290280b92580e844121f061b010b805e1e80b4203e170b4444201f06162344441b010b805e1e80b4123e170b4444121f06160e44441b010b29260a00101f06131e081a0022121d2e2218061d80ba22121d80bb22121d3522121d80bc22121d80bd22121d804c22121d806322121d80be220280bf2506444420001f0818081d131f0718071b010b0c260a00101d80bb18071e80bb01178054441b010b0d1807041c1b010b111807041c18071b010b0e260a00101d80bc18071b010b0f260a00101d80bd18071b010b10260a00101d804c18071b010b12260a00101d80be18071b010b13260a00101d2e1807001f2a0280c025805b44131e08221e80c12418000a010f1f0615001f0718061e251501291f08180815003b173344441800180618081919170a444415011606444415001f09180918061e25180829150129331807301f0718082e1f08164a1807001f2b0280c22536444415001f06180618011e253a17244444180015c1003f2a1801221e808e2418060a010f281500351f0018062d1f0616571800001f2c0280c32536444415001f06180618011e253a1724444418001801221e808e2418060a010f3115c1003f2a1500351f0018062d1f0616571800001f2d0280c42580704418002201170744441c02001f061806221e807224131e100280c502001a0202000a020f1f061806221e2a240280af0a010f157f40172044441806221e80a12415001806221e2a240280af0a010f0a020f1606444418061f061806170a44441806160744440280c61f061806001f2e0280c72580aa4418002201170744441c02001f061806221e805d24131e100280c802001a020a010f1f0718071716444418070b00221e80a12415010a010f1606444402001f061806171544441806221e80c9240280ca0a010f16054444261f08131e081a001f0918081780414415001f0a180a18081e253a1732444418091808180a19221e80c9240280a70a010f0b001808180a19221e80c9240280a70a010f0b010d180a2d1f0a16491809001f2f0280cb25808e441800012201171744441c131e80cc221e80cd2418000a010f0280ce3e170a4444131e081a0000131e08221e80c12418000a010f221e80cf240a000f1f06131e081a001f0715001f08180818061e253a173844441801171b44441807180618081918001806180819190200280d161444441807180618081918001806180819190d18082d1f0816431807001f300280d0258078441800012201171744441c131e80cc221e80cd2418000a010f0280ce3e17074444020000131e08221e80c12418000a010f221e80cf240a000f1f0602001f0715001f08180818061e253a17284444180718061808190a010280a7281800180618081919280280ca28281f0718082d1f0816531807001f310280d12580c244131e0b221e806f240280700a010f1f07180715301d80d2180715101d80d31807221e80d4240280d50a010f1f0818080280d61d80d71808221e80d8240280d91502150c0a030f1c180815021d80da180815011d80db18080280dc1d80dd1808221e80de24150815081508150015020a050f1c1808221e80df240a000f1c1807221e8071240a000f1f0615001f09180915203a17294444180015c1003f2a1806221e808e24180018061e252c0a010f281500351f0018092d1f0916541800001f320280e02521444446044444060a4444271f06157f00050e44441b010b321480e1040007001f330280e225124444110280e21d80e31118001d80e4001f340280e5251e44444604444406094444271f062000050c4444131e806801010007001f350280e6251e44444604444406094444271f062000050c4444131e80b601010007001f360280e7251e44444604444406094444271f062000050c4444131e806101010007001f370280e8252e44441b010b0a1b010b37260a0010041b010b0a1b010b36260a001004281b010b0a1b010b35260a00100428001f380280e925244444131e80ea1f0618061e80d20280812818061e80d3280280812818061e80eb28001f390280ec251a4444131e80ea1f0618061e80ed0280812818061e80ee28001f3a0280ef25806b44131e80f0020025805e440280f1131e2c4217804c44131e2c221e80f1240a000f221e80f2240200252e44441b030b0018001e80f30280812818001e80f4280280812818001e80f5280280812818001e80f628041c000a010f1c160a444418000200041c001a01001f3b0280f725807c440280f81f0615001f0721131e2c1806194302044017104444131e2c1806191f07161b444421131e2c18061943020440170c4444131e2c1806191f0746044444060a4444271f09121f0805174444131e0b221e80f9240280fa0a010f1c201f08070280fb13421f0918070280812818082802808128180928001f3c0280fc25806044131e1a1a001f061806221e80fd2415010a010f1c1806221e80fe2415050a010f1c15001806221e80ff240a000f291f071806221e80fe24150b0a010f1c15001806221e80ff240a000f291f08131e22221e810024180718080a020f001f3d0281012580724446044444060a4444271f0602000005805f44131e0b221e806f240280700a010f1f061806221e80d4240281020a010f1f071807221e8103240281040a010f1f081807221e81052418081e81060a010f1f091807221e81052418081e81070a010f1f0a18090280c628180a280007001f3e0281082582a44402810902810a02810b0a031f06131e081a001f07131e081a001f081806031f091809210417806c441f0a131e0b221e806f2402810c0a010f1f0b180b02810d1d810e180b1e810f0281101d8111180b1e810f180a1d8112131e0b1e807d221e808624180b0a010f1c1807180a180b1e81130d1808180a180b1e81140d131e0b1e807d221e808524180b0a010f1c16bf9302811502811602811702811802811902811a02811b02811c02811d02811e02811f02812002812102812202812302812402812502812602812702812802812902812a02812b02812c02812d02812e02812f02813002813102813202813302813402813502813602813702813802813902813a02813b02813c02813d02813e02813f02814002814102814202814302814402814502814602814702814802814902814a02814b02814c02814d02814e02814f02815002815102815202815302815402815502815602815702815802815902815a02815b0a80471f0915001f0b271f0a271f0c15001f0d180d18091e253a1780f2441806031f0e180e21041780dd441f0f131e0b221e806f2402810c0a010f1f10181002810d1d810e18101e810f0281101d811118101e810f1809180d1902815c28180f281d8112131e0b1e807d221e80862418100a010f1c18101e81131807180f19402201171044441c18101e81141808180f19401f11131e0b1e807d221e80852418100a010f1c181117805a44180d151e3a171244441501180d33180a301f0a163f4444180d151e3b22170a44441c180d153c3a171544441501180d151e2933180b301f0b161a4444180d153c3b171144441501180d153c2933180c301f0c1607444416bf22180d2d1f0d16bf0a180a221e152415100a010f180b221e152415100a010f180c221e152415100a010f0a03221e808a2402815c0a010f001f3f02815d2580f44415051f060a001f07131e2c1e80441f0818082201170744441c0a001f0915001f0a180a18063a1780af44460444440604444405809b441809180a191f0b0a001f0c15001f0d180d180b1e253a17354444180b221e815e24180d0a010f171e4444180c221e815f24180b221e815e24180d0a010f1e81600a010f1c180d2d1f0d1646180b1e80e30200281f0d180b1e816117114444180d180b1e8161020028281f0d180d180b1e8162020028281f0d180d180c221e808a2402000a010f281f0d1807221e815f24180d0a010f1c07180a2d1f0a16bf4f1807221e808a240281630a010f221e80b02415001584000a020f001f804002816425809b442118014302816540170544440018000280a7281f061801221e80c924131e1002816602001a020a010f1f0715001f09180918071e253a1780604418071809191f081808221e80972415000a010f0281673e171844441808221e808b24150118081e250a020f1f08165a1808221e2a2418060a010f15003e171744441808221e808b2418061e2518081e250a020f0018092d1f0916bf9c001f80410281682580744446044444060a4444271f060200000580614402001f06131e8068171d4444131e8068221e80b82418000a010f1f06180617074444180600131e80b6171d4444131e80b6221e80b82418000a010f1f061806170744441806001b010b8041261800131e0b1e81690a02101f0618060007001f804202816a25808944460444440604444405807c44131e806817154444131e8068221e806924180018010a020f1c131e80b617154444131e80b6221e806924180018010a020f1c14816b1f06131e0b180002816c281d8169131e0b18000280a72818012802816d28131e1a131e1a1a00221e1b240a000f1806281a01221e816e240a000f2802816f281d816907001f80430281702525444446044444060d4444271f0618061e80e400050f4444131e81710281721a011c07001f804402817325124444131e8174221e15240a000f1e25001f80450281752581bb441b010b06260a00102201170d44441c1b010b08260a001017074444020000131e81762201170944441c131e81772201170944441c131e81781f06131e80f002002581744446044444060d4444271f0618000200041c05815e441b020b0617814f441b020b06131e081a0022131e081a00220281791d817a0a011d817b1a011f06020025054444001f07131e1002817c02001a021f08131e1002817d0280741a021f091806221e817e2402000a010f1c131e817f260200250d44441b030b000200041c001581f40a02101c1806221e8180240a000f1f0a180a131e80f04117374444180a221e80f2240200251344441b030b06221e81812418000a010f000a010f221e80f224020025054444000a010f1c162f44441806221e8180240200251c44441b030b06221e81812418001b030b071b030b070a030f1c0018070a020f1c1806020025806244180022170a44441c18001e818222170d44441c18001e81821e8182178042441b030b08221e81832418001e81821e81820a010f1f0618061726444418060b00221e805d241b030b090a010f1f071807170e44441b030b0018060b00041c001d8184160a444418000200041c07001a01001f804602818525805944028186221e807224131e100281870280741a020200253c4444131e22221e24240a000f15102a1500301f0618000281883d170a44441806160c4444180615032f1508301f071807221e152415100a010f000a020f001f80470281892580504418001e2515223e178043441b010b2c2615001800221e808b24150015200a020f0a02101f061806221e15240a000f221e808b24150015020a020f1800221e808b24152015220a020f3e0012001f804802818a258060441b010b804202818b041f06180622170d44441c1b010b8048180604170744441806001b010b8047260a00101f0618061b010b2c26150018060a021028221e808b24150015220a020f1f061b010b80432602818b18060a02101c1806001f804902818c25324444180001170744440200001b010b0b1504041f0618061b010b22261b010b2026180018060a021002818d0a021028001f804a02818e258155441801173b444415001f0615001f07180718001e253a1728444418001807191e818f17154444180018071918011806222d1f06191d819018072d1f07165302001f061800221e8191240200251c44441b02220b061b010b0a18001e81900402819228281d8193000a010f1c18061b010b09260a0010281f061b010b8047260a00101f07131e22221e23241807221e808e2415030a010f15082b0a010f1807221e808e2415030a010f15082c281f081807221e808b24150415041808280a020f1f091b010b221b010b2026180618090a0210180728041f061b010b805e221e8194028195131e8196180604280280ca28281d8194271f0a1b010b1426180a020025804e4418001e819715003d22170a44441c18001e8198173644441b010b805e1b010b804a18001e8198041d81991b010b805e18001e81981d819a1b010b80432602819b18001e81980a02101c000a02101c001f804b02819c25848744131e2c22170644441c1322170844441c131e0b011705444400131e081a002202819d1d819e2215041d819f221b010b805e1e819d1d8190131e081a00220281a01d819e2215031d819f221b010b091d81a1131e081a00220281a21d819e2215031d819f221b010b381d81a1131e081a00220280701d819e2215031d819f221b010b331d81a1131e081a00220281a31d819e2215031d819f221b010b091d81a1131e081a00220281a41d819e2215001d819f131e081a00220281a51d819e2215001d819f131e081a00220281a61d819e2215001d819f131e081a00220281a71d819e2215001d819f131e081a00220281a81d819e2215001d819f131e081a00220281a91d819e2215031d819f221b010b391d81a1131e081a00220281aa1d819e2215031d819f221b010b3a1d81a1131e081a00220281ab1d819e2215011d819f131e081a00220281ac1d819e2215011d819f131e081a00220281ad1d819e2215011d819f131e081a00220281ae1d819e2215001d819f131e081a00220281af1d819e2215031d819f221b010b3b1d81a12215011d818f131e081a00220281b01d819e2215031d819f221b010b3c1d81a1131e081a00220281b11d819e2215031d819f221b010b3d1d81a1131e081a00220281b21d819e2215031d819f221b010b091d81a1131e081a00220281b31d819e2215031d819f221b010b3e1d81a1131e081a00220281b41d819e2215031d819f221b010b3f1d81a1131e081a00220281b51d819e2215031d819f221b010b80401d81a1131e081a00220281b61d819e2215031d819f221b010b091d81a1131e081a00220281b71d819e2215001d819f131e081a00220281b81d819e2215031d819f221b010b80421d81a12202819b1d81b9131e081a00220281ba1d819e2215031d819f221b010b80441d81a1131e081a00220281bb1d819e2215031d819f221b010b80451d81a1131e081a00220281bc1d819e2215031d819f221b010b80461d81a12215011d818f131e081a0022022e1d819e2215011d819f131e081a00220281bd1d819e2215041d819f221b010b805d1e81be1d8190131e081a00220281bf1d819e2215031d819f221b010b80491d81a1131e081a00220281c01d819e2215031d819f221b010b091d81a1131e081a00220281c11d819e2215041d819f0a221f060a001f07180608031f08180821041780e0441f0918061809191e819f1f0a180a15004017234444180a15014017374444180a15024017804444180a150340178053441680a94418061809191b010b0a131e2c18061809191e819e19041d819016808c4418061809191318061809191e819e191d8190168076441806180919131e0b18061809191e819e191d819016805e4418061809191e818f17324444131e80f0172644441807221e815f2418061809191e81a1221e292418061809191e81b90a010f0a010f1c16244444180618091918061809191e81a1221e29242618061809191e81b90a020f1d819016bf1f131e80f017364444131e80f0221e81c22418070a010f221e80f2240200251544441b010b804b261b020b0618000a02101c000a010f1c160d44441b010b804b1806041c001f804c0281c325834d441b010b805e1e819d15003e17134444131e37221e81c4240281c50a010f1c2118004302024022170a44441c18001e81c6170e44441b010b340281c71a014715001f0615001f0715c0fff11f08131e1a1a00221e1b240a000f1583e82b1500351f091b010b805d1e81c80122173844441c1b010b2d261b010b2d26150018090200280a0210131e2e1e8079221e808b24131e2e1e81c91e251502280a010f0a021018082c1f071809180718082a31150035221e152415020a010f1f0a180a1f0b180a1e25152039171b4444180a221e808b24180a1e251520290a010f1f0b163a4444180a1e2515203a172f444402001f0c15001f0d180d1520180a1e25293a17124444180c021f281f0c180d2d1f0d1666180c180b281f0b0281ca1f0c0281cb1f0d0281cb1f0e0281cc1f0f180f180e28180d28180c28180b281f06131e808226180615020a02101f061b010b2d26150018060200280a02101f101b010b2a260a00101f111b010b8065221e81cd240281ce18000a020f1c02001f1218001e807d22171a44441c131e80cc221e80cd2418001e807d0a010f0280ce40173644440281cf1b010b2c261500131e80cc221e80cd241b010b302618001e807d18001e81d00a02100a010f0a0210280280ca281f121b010b2f18001e81c6041f1318001e81d1171a4444131e08221e81d224181318001e81d10a020f1606444418131f1318121b010b31181304281f1218120281d3281b010b2e18001e81c604280280ca281f1218120281d4280281d5281f121b010b8065221e81cd240281d618120a020f1c1b010b2b1811041f141b010b805d1e81c80122170d44441c1b010b33260a00101f151b010b805e1e819c22170e44441c1b010b805d1e81c80122172344441c1b010b805e1e81992201171444441c1b010b804a1b010b804202819b04041f161b010b80611806041b010b806118061481d72b15003504281b010b8061181518063104281b010b80611b010b2d2618101b010b805d1e81c80122170b44441c131e2c1e81b7221e15240a000f0a021018082c1510331b010b2d26181018120200280a021018082c3004281b010b806118141508331b010b805d1e81d81504333018063104281b010b26180704281f171b010b80611500041c1816170b444418171816281f171817001f804d0281d9253c444415001f0618061b010b805e1e81da1e253a172544441b010b805e1e81da180619221e132418000a010f17064444200018062d1f06165012001f804e0281db25845a44131e81dc1e281f0618061e80621f0718061e81dd1f0818061e81de1f0918061e81df1f0a1806020025804944111e81e0221e815f24131e081a00220281dd1d81e1221b031d81e20a010f1c131e100281e302121a02221e132418000a010f170a44441118011d81e41b020b08111b0310001d81dd1806020025134444111b031d81e51b020b0a111b0310001d81df18060200253e4444110a001d81e0111e81e0221e815f24131e081a00220280621d81e1221b031d81e20a010f1c1118001d81e61118011d81e71b020b07111b0310001d80620281e80280640281e90281ea0281eb0281ec0281ed0a071f0b18060200258362441b010b804e111e81e70417834b44111e81e7221e2a240281ee0a010f157f39170d44441b020b09111b0310001118001d81ef111e81f01f06111e81e81f07111e80641f08111e81e91f09111e81ea1f0a111e81eb1f0b111e81ec1f0c111e81ed1f0d111e81f11f0e111e81f21f0f131e081a001f1015001f1118111b020b0b1e253a1721444418101b020b0b181119111e81f31b020b0b181119190d18112d1f111658131e081a001f11111e81e60281f43d1780d644131e100281f502121a02221e1324111e81e40a010f178082441811201d81d0111e81ef17174444111e81ef221e80c9240280ca0a010f16054444261f12131e081a001f1318121780464415001f14181418121e253a1737444418131812181419221e80c9240280a70a010f0b00131e81f61812181419221e80c9240280a70a010f0b01040d18142d1f141644181118131d807d163f4444131e100281f702121a02221e1324111e81e40a010f171d44441811131e80cc221e81f824111e81ef0a010f1d807d160d44441b020b09111b031000111e81e71f121b010b805e1e81f91e251500391780754415001f1318131b010b805e1e81f91e253a17804d441b010b805e1e81f91813190b001f141814221e1324111e81e70a010f17254444111e81e7221e80722418141b010b805e1e81f91813190b010a020f1f12160c444418132d1f1316bfa91b010b8065221e81cd240281fa18120a020f1c181118121d81c6131e81f618111e81c60418111e81c63d171344441811131e81fb18111e81c6041d81c61b010b804d1811041f13111e81e7111e81e7221e2a240280af0a010f157f40170e44440281fc181328160a44440281fd181328281f14111e81e022171244441c111e81e00b001e81e10280623f170644442600111e81e01f1515001f16181618151e253a17354444181615003e1710444418151816191e81e218141d1e1118151816191e81e1191118151816191e81e2101c18162d1f161646111e81e5170f4444111e81df11111e81e5101c110281e0091118061d81f01118071d81e81118081d80641118091d81e911180a1d81ea11180b1d81eb11180c1d81ec11180d1d81ed11180e1d81f111180f1d81f215001f1618161b020b0b1e253a17214444111e81f31b020b0b18161918101b020b0b181619190d18162d1f1616581b020b09111b0310001d81de001f804f0281fe25804844131e81dc1a001f061806221e8062240281f41801200a030f1c1806221e81dd240281ff0282000a020f1c1806221e81de24131e80cc221e80cd2418000a010f0a010f1c001f805002820125807244131e0b22170b44441c131e0b1e82020117054444001b01131e1a221e8203240a000f1d82041b010b807008031f0618062104171e44441f07131e0b221e82022418071b010b80701807190a020f1c1660131e817f260200250d44441b010b805620041c001b010b806b0a02101c001f80510282052580644415001f0618001e82062201170a44441c18001e82072201170a44441c18001e82082201170a44441c18001e82091708444415011f061b010b8054131e081a002218001e81601d81a12218061d818822131e1a221e8203240a000f1d820a041c001f805202820b2580a74418001f0618001e81601f0718001e820c17804e44180702820d3e2201170b44441c180702820e3e1718444418001e820f0b001f0618061e82101f081623444418070282113e1718444418001e820c0b001f0618061e82101f081605444400131e081a002218071d81a12218061e82121d81882218061e82131d821422131e1a221e8203240a000f1d820a1f091808170b4444180918081d819f1b010b80541809041c001f8053028215258078441b010b8056260a0010170544440018001f0618061e820a1f071b010b806c15003f17144444180618061e820a1b010b806c291d820a18061b010b805518061e81a1041d81a11b0118071d821618001e8217123e171044441b01220b806f1501281d82181b010b806d221e815f2418060a010f1c001f805402821925804144131e081a002215001d821a2215011d821b2215021d821c2215031d821d2215041d821e2215051d820d2215061d82112215071d820e1f061806180019001f805502821f258070441b010b806d1e251b010b80693b171044441b010b8058260a00101c200018002201171c44441c131e1a221e8203240a000f1b010b806e291b010b806b3b172d44441b010b806d1e251b010b806a3b171044441b010b8058260a00101c20001b010b8059260a00101c200012001f80560282202580bd441b010b806d1e2515003d1705444400131e081a00221b010b805e1e819a1d820a22131e2c1e81b71d822122131e2e1e80791d819022131e081a00221b010b806d1d8222221b010b806f1d121d81a11f061b010b0b1508041f07131e081a002218061d82231f08131e081a002218071b010b22261b010b20261b010b8068221e822424131e80cc221e80cd2418060a010f0a010f18070a02100280a90a0210281d82231f081b010b80502618081b010b805e1e82250a02101c001f8057028226252044441b010b8059260a00101c1b010b8057260a00101c1b010a001d8227001f8058028228253044441b010b807008031f0618062104171e44441f07131e0b221e82292418071b010b80701807190a020f1c1660001f805902822a2580424415001f0618061b010b805e1e822b1e253a172c44441b010b805e1e81da221e815f24131e101b010b805e1e822b1806191a010a010f1c18062d1f061649001f805a02822c2580404415001f0618061b010b805e1e81f91e253a172a44441b010b805e1e81f9180619131e101b010b805e1e81f91806190b001a011d1f18062d1f06164b001f805b02822d258100441b010b805d1e81c8170644442600131e08221e81d2241b010b805e18000a020f1c1b010b805e1e819d15003e2201172044441c131e22221e23241b010b805e1e819d0a010f1b010b805e1e819d3f170e44441b010b3402822e1a01471b010b805e1e819c170e44441b010b8051260a00101c1b010b805e1e819c170d44441b010b27260a00101c1b010b805e1e81db178050441b010b805e1e822b1e2515003e2201171144441c1b010b805e1e822b1e815f01170e44441b010b3402822f1a01471b010b805a260a00101c1b010b805b260a00101c1b010b804f260a00101c1b010b805e1e819c17144444131e817f261b010b804c15000a02101c001f805c21131e081e81d2430206401780c044131e08221e3324131e080281d2131e081a00220281d225808f441800263e2201170944441c1800213e170e4444131e82300282311a0147131e081800041f0615011f0718071b021e253a178058441b021807191f081808264022170944441c1808214017374444180808031f0918092104172944441f0a131e081e281e8232221e29241808180a0a020f170e44441806180a1808180a190d165518072d1f0716bfa41806001f805d18805d1d804d22201d804e22201d82330a030f1c131e081e80c10117810644131e0802002580f644131e081e281e82321f06131e081a0022261d15221e82342402150a010f011f07021502823502823602823202823702823402110a071f0818081e251f0902002580b2442118004302064022171744441c211800430202402201170944441c1800263e170e4444131e82300282381a01470a001f06180008031f0918092104172844441f071b020b06221e2924180018070a020f171144441806221e815f2418070a010f1c16561b020b071780444415001f0818081b020b093a173544441b020b06221e292418001b020b081808190a020f171644441806221e815f241b020b081808190a010f1c18082d1f08164618060000260a00101d80c1131e081a00220282391d81be2215011d81d822121d81c81f805d131e081a0022121d823a2215001d819d22121d819c22121d81db220a001d822b220a001d81da220a001d81f92202823b1d81942202823c1d80ae2202823d1d82251f805e14823e1f805f15001f80600200252044441b011b010b80631d823f1b0118001d82401b010b26180015023404001f8062271f80610200252d44441b011b010b80641d823f1b010b8060151c331800150435301f061b0118001d82401b010b26180604001f80630200252a44441b011b010b80621d823f1b010b261b010b8060151a33180015063530041b010b2518000428001f8064131e081a00220200252d44441b010b805e1e823a22171e44441c131e37221e38240282411800280282422802824318010a030f1c001d81cd1f8065131e80881e80891f80660282441f8067131e081a00220200258086441800263d170744440200001b010b8068221e824524180015060200251444441b010b8067221e80972418000a010f000a030f1f0618061e2515042c1f07162c44441807150040172344441807150140171d44441807150240171b4444180715034017194444161c4444180600180602824628001806028247280018060280a72800001d8224220200252544441b010b8068221e824524180015100200250d44441b010b8066180004000a030f001d82482202002585f1441800263d17074444020000131e081a001f08131e081a001f0902001f0a02001f0b02001f0c15021f0d15031f0e15021f0f0a001f1015001f1115001f1215001f13181318001e253a1782c1441800221e80972418130a010f1f0a131e081e281e8232221e29241808180a0a020f01171544441808180a180e222d1f0e0d1809180a200d180c180a281f0b131e081e281e8232221e29241808180b0a020f170c4444180b1f0c16825a44131e081e281e8232221e29241809180c0a020f1781ae44180c221e808e2415000a010f1581003a1780b54415001f061806180f3a1780404418111501331f11181218011501293d1720444415001f121810221e815f2418021811040a010f1c15001f111609444418122d1f1218062d1f0616bfbe180c221e808e2415000a010f1f0715001f06180615083a17804d441811150133180715012f301f11181218011501293d1720444415001f121810221e815f2418021811040a010f1c15001f111609444418122d1f1218071501341f0718062d1f0616bfb11680bc4415011f0715001f061806180f3a1780474418111501331807301f11181218011501293d1720444415001f121810221e815f2418021811040a010f1c15001f111609444418122d1f1215001f0718062d1f0616bfb7180c221e808e2415000a010f1f0715001f06180615103a17804d441811150133180715012f301f11181218011501293d1720444415001f121810221e815f2418021811040a010f1c15001f111609444418122d1f1218071501341f0718062d1f0616bfb1180d2e1f0d180d15003d171a4444131e22221e8249241502180f0a020f1f0d180f2d1f0f1809180c09168061441808180c191f0715001f061806180f3a17804d441811150133180715012f301f11181218011501293d1720444415001f121810221e815f2418021811040a010f1c15001f111609444418122d1f1218071501341f0718062d1f0616bfb1180d2e1f0d180d15003d171a4444131e22221e8249241502180f0a020f1f0d180f2d1f0f1808180b180e222d1f0e0d131e8088180a041f0c18131501281f1316bd3b180c02004017824644131e081e281e8232221e29241809180c0a020f1781ae44180c221e808e2415000a010f1581003a1780b54415001f061806180f3a1780404418111501331f11181218011501293d1720444415001f121810221e815f2418021811040a010f1c15001f111609444418122d1f1218062d1f0616bfbe180c221e808e2415000a010f1f0715001f06180615083a17804d441811150133180715012f301f11181218011501293d1720444415001f121810221e815f2418021811040a010f1c15001f111609444418122d1f1218071501341f0718062d1f0616bfb11680bc4415011f0715001f061806180f3a1780474418111501331807301f11181218011501293d1720444415001f121810221e815f2418021811040a010f1c15001f111609444418122d1f1215001f0718062d1f0616bfb7180c221e808e2415000a010f1f0715001f06180615103a17804d441811150133180715012f301f11181218011501293d1720444415001f121810221e815f2418021811040a010f1c15001f111609444418122d1f1218071501341f0718062d1f0616bfb1180d2e1f0d180d15003d171a4444131e22221e8249241502180f0a020f1f0d180f2d1f0f1809180c09168061441808180c191f0715001f061806180f3a17804d441811150133180715012f301f11181218011501293d1720444415001f121810221e815f2418021811040a010f1c15001f111609444418122d1f1218071501341f0718062d1f0616bfb1180d2e1f0d180d15003d171a4444131e22221e8249241502180f0a020f1f0d180f2d1f0f15021f0715001f061806180f3a17804d441811150133180715012f301f11181218011501293d1720444415001f121810221e815f2418021811040a010f1c15001f111609444418122d1f1218071501341f0718062d1f0616bfb118111501331f11181218011501293d171c44441810221e815f2418021811040a010f1c160f44441609444418122d1f1216501810221e808a2402000a010f001d82451f806815812c1f806915141f806a15c927c01f806b15001f806c0a001f806d15001f806e15001f806f131e081a00221880531d821a221880531d821b221880531d821c221880521d821d221880521d821e221880531d820d221880531d8211221880531d820e1f807018805d1222170b44441c180c260a00101d81c818804d1f8071180018805c1d822d18001880711d824a131e08221e3324180002824b131e081a0022201d804d0a030f1c000a02101c00824c000756f935dfcfaa41065ce023deba51065eec28b19d070946ea34aa6b401e46070657e035be4c3a0855f339814bc1dfab0352ea3e067cea349310580e51f0159bec3d657920be37d8b25d045af92c4c0857e40b6751c3debe0c57e30f6835880c7c651620a4095afe294c1f470e77290e7ae00044eb004e3e6d0d7521ac63085afc2558c7c7c6b10661f51d01c6800b50fe133fa7570654d6c0a2015a0447f6f7140b7bc0c527661c57f5fdf7e80847fad8074acfd48a2168f9ed14308c0517f4a16640062c8248fbf1c78d2051b3771f347b0c36b13f93f30640f6f4e61e431043ede5fac71c49de8f0e401b2190fbf70c54fcedcef7c4a07f4bde6d540477fbe9c00754fed4fabb40f40854f9d0ef8f1831a80751f2c8ad6648e7010201030c41c1dc843b9adcf8f41138653e039087db5d19a3ab97e6396a22b452df98c781120a44f6d5632866071244c27f2063ffe9f54a186ff14a2e1a53c5ff5e33c3fc43d5f2b4cd82252dd5e46c047ec3cd9b0555cfd393ef0641c5ae6356da065fc0ad683a850957c9aa5e0e42d68f080f68c8a849e71233ff0b7f0652d5721c0943daa15af0ce86dcbb0450c8bd5a075ac4b124a878df0877c4bb3f85113d75095dcdaa3c635ab170f31268c2bd377c133fcfc4eeead7730d3d9de8e2085fc1800942d36a2f075bc695052286ee1068df88160f5da5619233680a1814448a0e57d48ff11814337d1a40e3d06234057adf90e8fe0e57d692f1dd92f2bd2fac0647b75e025ad00857d099de831338560354d38b0750d86c4cb7347c035fd7610216da0755d37f3844ebac0a5cce64034c8c0d58ad0a0a5ad27a142875fed86eee0b5cc8631c1d1f79e3f9b9250b5ad075e1fee9b3354bdd780a5dd07ae8e7be1c2f633c0654ac4dfaa1490743b34ac3b0295b1068ad4bc194c2ae4a2368e2ce9bb93a5a0d43ab4dda7d3159882c763778e60743a845d84ccb950b63a946a053b52f2d48be05086cb65fb33950c9810b50a656b73e375bb108e9cd0b6c97508fecc086c19fbe350572bc2587cf1870ab2b8fdd56fe9aa13c55bf3f40ac1743a7264fbf241a810f44ae2a66264bd094df403a379bb01c0944a92e6902002e4abb0545ac2360e00844bc3a54c38af4b4146c90214cdb46d896a20f101045da6a15f8a13561136c8f2951ba090a3857c3521ef9a32f730e02ec1b6c8e2a5989c59bf792f1bf03306619021c0424f1abffb206efd657176c8d1622650c2e5681a134530ff6a61af1d15f0317322d156c8c13357dc187d74086e68f14022158adf89c2b49136c8b0e235f9ec189bc09ceac205982c34aa40b126c8a0f113954d566d0b62878f4d06ddc76f1156c89180b0f0f15373f70e68c0413eb99d051ca5f9f116c881605edd099a62e1fe4ae041d081810146c8705e7cd8add77de61dfd695aff0cd66d09fb8146c861ff2d257d24585e08f191df2c146ba130705096ca918f9b7020701e90c50baecf2b9cc6b16ecc07eec166c8fe1c5631e13e1bb23d5a9fd6abcdb2471cb596df7055ebcf3d2730a6ffad0dd1595e45786fc0650beedad2a760f5a8ef1bf0b1decc7488e0616043c2f095a8ff1bdf9cd6fc7f2045c92fc8d095a8dff83d242bef7dd075c8ac585a31cfb04508ac79a0c77a9ea4ffbd14ca309ce7ef51262b2e547dbb2f81e5dfe0158fc0645f2124a0e408ddd6dde599b800bc157ae1ec607408cc56fb80910104085d854a3d656aed45f81ed5296c84d0a418ed5557615c0bc02180c6383d52b68d24943f5d922410e7ebeef225882b5333e718f83d6320a5b81ac330a538f8dd93c0d509da3001115c8baebb6f96e0f065091a41ae3c909479e8915e38e9924ec074197a113d2559a036f80fe01540a5d94aff28a95b0e4bcff146899bdcc7cda3e1655e7aec375a73bc43f26404a0e5f9881ce449db0c56e8cb316c16d804a6d9092ce3d4e298c1b1da32fac94bbcf843c07f0429363f2ed6516634eb5a98237840d4b0a8f33e2514aad8c501c39e09be31726f1e40427a37cd7423ef5eb99d97f51c76629c5ad3c4a045b8b8ca404559381a8105b8f84a6acd8c5a711dc0317d23614ff05598f9b8fc2045192939014549b8fb188d8310eff8591fc1cd3bcd21c3d1bdd045b9a9f99064063f0a108c5016c084363fba8cc649681095062e088a30bf19cc9034076f30b4160fe9884828fe28fa1eb0b5276e767e194a7af16a0ea0e4768d862c84a8a8353e48b69fd6406607cec7fad130c557bce739bc2596e94c45a4a045965cc4709407eca4178dc2d524e0d4763f9544681c5c844d35a9a7205727fdd24440a5066d222191bd2393db9055a61c26a430a07228350b7ce35ae27d1025e6904557bb91c12567da7f2aec1273cc84064f5bc42da343308125771abf98a8872ff2c2720428833cdf285a60a4661adab4dc02d30ee920e6d4d93e615c728f53c7e3025e48206507fb3d57d4605766aa4dd2b107e78b5dc01c3341bb8e8e4699f9f60ac15466ebbfdce9d6fd01b8587df00ce0ab79097819f6f1f667586a7cc5c56967b8bda42b49ee8ae026ecc17c33b56aab4cfe57b6cdef429707485abdf1facdaf3c7889d98847abea88d28fb5d4279db72788464a6cb0af0b6c631cb0beef4e5a015717c83c186e51ba13b8d32ef889a6bb8d910f8fcd714466a8dd4b49e74b1b5d42ef15b48728b59739f6c0a466b88cd43d00ac331190e6d7bae78940f6e1213d20ae450fa064054977bcd06054b5a8d76b40757469f6e9488610e514573c27f6bc45067d2e0986c988040774e67df39fd2ba350825884987277dd7b8845060b0ac121b7c805131ad749b4a491040936995116978596be51562c309606fb3eee2b93cd7f03ea573b92615c080210328b4eeee0f4010e1051497dab9956fc2537ff4f0201aeca148040726b529281de6c53bd5eaebc409881ebdd4aa4714caa621c3297a2c913ba9743424e435f3af426e543300281472cc6e125df05683ac67aa76784ab5bcb7cb87814514b6684d6eb8eadb1d5e367b7c70b1b96706db609514a6b8fce28a8789e06511a28aa27d30854486bad486a8e6408434f5169abf73b07010c05405c437f9f025c5f035c5457094056406b3436d23af10e6c4459313ecb0aee533ae2698dc80f6c57423f11b8be9e71949f560be7420c5f595c37fd766c965e4c575c125452360cdf09d90dba8bb3cb30ef12866baa07545d3223b1cc090f575c3d17b9abad608b91583efb563506404d2409954e0357543d045d5330f407435536f74b30dd045b5134cf0b475a2dd935869d4828c2e40e523311ddfd4f5a2bd941575044450458241cb30b40260ba69eda1abd924f460440270eb9075421048f945952221b2d07937ad95efe8bc86c90491eac897cd90c7361e13ffcb003649f2aa205ed97f5011c0854220eaa4b02bca80e6877232e87870d136d52d871be64054039ed67840115075c29e2714b584e04791fc363094039fd5c3bc11b9756024833044020e43d075c32f066f5008a125030f32adada227668b266bb7a824e1f668205443bc513bf065b36cd1787590a5431dc38649a48148e300201310a0262dff61d009e22cf18045538dce3085531dace25923fe404ab4899170a4032dcd1cd03408a54470b4033afc9f5d7fd16ba6557045f35a9ac094035a8a6a8423fdcd603522ca806402bbc8a7454095405a6b35d156f44370a0056e6cd6882a74038330f700db7658450347b9220e81d9d3ed4045d02b169075e019364405c18115b04904c5302769136a2be34fe2eb875470f5b0794663cd9dca98964775f038f5d0c5b06997a049134c0dea79c4c0c540d9a7fe557e52ce81e7e450d540c8514f9077e76471b6167670640098734ddd50a50049435a2bc38aa604e12540988249a5ee63482981d657d5625ac872f0a521b9e046da33cac9d540b5218629132967a2bfc125d0e540a7243942ca5658518a22bc1f207630265617b512e0a541479564623a4658b1104471a747108501b755a3cb272270c501c7941104b21a7884a38b60f571c6858e439a57258164c3f654d36055f136923c50c5412561bafa9403d9a61400e0e5e195e0eb25039886016591543fd0b500b4c03863ea743e020b20a6715580e666723b0784e0c5c154419533c8626a37c3fb20b541940d52bcbc4ef175fe507401843cd36af4308401b4fd91b4b149d11541a4ac9e232971991ed359d7e2eb29513035ee92c0654e431f7cdab0544e72bdcb50c54e6388189169beb248c26aa1964c112884176144601717f14b9695eef0a581a26b50b6126d30c54e02787432d99155ce8f0f61566c81aa36ce3f581a5d6159774c43d752811a825431766c917aa05a801fc8461d53400fba22b78de0cb8d1cc340854ed2ab01c420836095ee60f91fb126579370a40eb0b7a091a733aaf640540ee1a7b5a0440fc0d730d5ee00248004f05753c8d2ba566095ae01d55f8247627530540fb0f55c40404a20a3c0855fe1338804c09520a55fdef23a90d4b112ab30b5cf5e213625d283e900a300c5cf2ee1846047afdf1fef4d10c67e7ee114dc5d288190edfde0667f7e711388e0d7ef8f6e21e44a62340bbb5a4aa1371f7f2fde71a1d80db4770173495f8fac7b86d1274fcf6c9f2c8a72c088f330427217a530a8a147ef3fed7d583172b96785344ec1f16e3871275150d70f4cdc7b10dc2edef1504cd340964f5cade8a1d2aaa570d7ece87926247fa5a0598eddc8b137febc8a54412639f45ef1912f2a243f5caaf4e0760e6c2b356c8bb0f7ec9d1923b84e0eaf2580f6379c2a60860c4d2870c0cc0d50f7ecdd794ea1f2ebb25c62959d374590a70ccd28fe9d18f2878370c60c1a7685c97a0e9f7102c61097ef6e34821991336790b60cfaa491e589ea904116e127ecea444ce181280145d3b75e92804a02745087efcee6be7ce8dcd0574dcbd5fd90577c5a134bd0a7fcebd268903326550dd1463c0bd3b705aa27aef122b04d1cebc2b75151c080567d8b13a78067ecb8a1a4fd50874da8a1820b7ffca0665c283120e5f0970de9fe01612035f1d0b72dc96fcfad4686fb1dd7f0972c395ead29dcbbb21077ac691d09a6e96097eda94c7a61b2f45f90a7fd389d36f54b96f4e12087dd67054b12b70110863d96a2b81c8be280b71d87a396f256e151b072b1171d562364bffa51c9733559f70eaaa34431572c9790752fb3653ac0c5eb20418980a16913358b51075ce71142956eed07fa6c6d869e5d89b127fc874100b363cc9ffbd3d7b1103043869290a70d177ebe2cfb77c61e10c70d071fdc6a948086c299ea90863ac43e1a24cceb00f78b44bd3a1364dded7e0691720742d0879ad42ce83ccbb040e7aad4adb7b3355a069503d76f3d30963a542dc4dc883e4d11071b752a356be177f72be12e280abdceb0a7e95179d2250ca83f3be1270a254af1b2d43ff2fe5c88de7c49bab2e910967bf1ea5eec6d2e1aa0c74a02d82808d1befe0e1788c067c9a11b0f1640675be3c7726430e7ba9207b151d314ca86b5fe4efbf1870a23f65e0ecae13f3b75bd3ff49ce45a43d6a55f688d0441363ab2150c79cedb04013601b03191a18bbafc10672991367f0701071b13453ba0d440243c06a1ae2e20e481160b833548acd88beb7f5a33b22684b2622147bbb132660013250d7892f621ffdbb53d1d76f2b0c72a10d317385bddb5491f1a70a60b51e34428988b39c2f0970b41817354edc75fd0e71ba0e0d060a033a2c67b49a253e1367a05234e1c8dc99255ad1a0060c0c0206e9a31270b706f2c49dc372ca78e583bcb7f6c47fc30a7e802bc3f7619b63b2dd12729e32d7974c2935d6ec59d891d0fada911d1274aeeaff98c8731aa2fa6aefce6fe1e81217011f0a54b8f3e177d09888f9ac045aaaeed10443aafdad044799e2b5074584e7abe8c76508558bf586f38ed0240210c00a5481d4b1a31ce4923a42064091d19688ce0468dd8157011309548dda5dd8599eba1a065086de4da50909408fc17287dc448fd40b00da8d093640b9f85745a9310ed79c2064c75274e6cf71789381e3a08e636d6c78b9589d0922856b730038a0c4d5d3f65f9bc1449e1160de01d54f97530a08cdda354185b3333f090b478184151a658f9ad3264b0908cfb6001118b0f9b50e5495be3ffbd43349a4da75feb5ec096494af27f88ca713d4107080b41ec753dfa184cf7f84aa1ec16f0f5496a0c6aa07f18087fd5269f79cad045682b9ff085490afc988939afb1161a29cf67cdc38756ae5b5c17fbd13d923145e9898fd64b78fce4f9b841ccc77a60ee368e48b17449d84d1244944e204629a65f68ce48cd3041fb507cf701c408d9cac5800ea7ef226fbd39a916dea85b5bd986fe3c8dcd8f74dfe04468881be0a5a989585f3859cae0ccc3e1ba7c4cc8b6366fa53f116baa9c3819c172784d6711d3fcc672341c92621aabb75fcb11ca16ceaeaa769f0f9d46fe0cd67abc47a6aeaf9f3d878fbc05c22356dd5c6d0f52f8c28f555cb2ff7d4f1449954f2459d64319df6b7b4f2c346f3b4b0c2c5c1a226e6a66f5fcc7f64d66725d8c351e79d11508c9e9590d8180ae590a1d604e9b3d03e0a409a8aa9929a8bb6d0500b5072e7a90cd40f418faafd134064f19ce285a71bf6224f4190aa06c3331cdc095063e7bfc04999818b04567be9870e5c6af98cb8d2255b74dc363d02dd044670fa93204b7eef7af7889cbf07b4f68cc08d8079e16bbff28b8275c50ebef77ec925f47b04687fe356014b0d5061c47db3e95475b2c54a666e0b546fd16a98988fb4c71b0505477fcb5b680d5662cf4f518582a960c26c926f8040724fec01786cbb42e703061438f03993d5bab083ef2595d1a24384868085b8b2d8e363a3cc3fef974c7da6a3b0d5380a84657eabfb8ca97442d82136f3fc9abb0e527dc0353716da392cacea74a3ed0143014107557ecf29c24e6f026d4c01050c556498f99c9e6fc6201c261d030c64f6125678acf1419250fb0d0a3915bec92d290ad5084172a6f85f5d7eba0255680e6c7ba0ce0bd5060db9abc87984920c6c68bcb2d58b69dc2084bdd307476fbfbdc15c4103577a9403527483015d01550940549372d06b2a230e0147095240907fbccf12b9a30a474a91799e8c74b3a6f208434861d32f30e549135b4471cb29f46d9c589e67a5d5302af5739d4b0c574371d318bb9aa3f0584b46085f4664a4e7788c9c095f4960a9da03c4232c0a414c62b9a8ed5f729b7a0f525c74888c8db8aabfd7f272accc210940486a8f9d72a374860a404f6e90718da59c447e10574869944a7dbf60b3d41d80a7dd08c10a435c4c6cb3c13d38b4fb07514e5265b8aea209475f5f7f926f7b8d6c084758404175b4b4bc0a475b5c4a58566cb4a8e507544341712d39c90b59477e2c31d22ad5533df50b43594e2c1db292a279958a0a475f5233e25179945c1e094644272de907c800a60a564e231886c60bd2e741015e0b40432309975e5a7c9790330c5d5a24ef7886b44b582cf46e05414837d87a09554d01fc4d2cd913950b6c612dc12eda03a1a7e2ff08505337c81d97b5580a47290fdde3595723fb100b563911a5cb06faf731f03503522e050c54261887b08166bf82463ee904442502b11743291686798622b2b68b7cd85404b58e66e34a5d3de9420346341b2c5d2814985b47a3a4aa9a044e24569d22b523f539cfe65d64fe5f1c8e02585370812bba1b843ccca1ab7a6d050b57271348b484704f2f119a08433bee7a9f45412f04037ab52908037bb812141a0a5202027c055728ed4032055d21fd23170a5120f230d6425f02990f0b513ffe2df01594710c6263054224f82ec2065221d20eb09e094332d018814c24f57e094720f70c6e965515cb061520deea4417085d39c1ed58208f220a07658ba36d98a774b77509553de0c703842eff260d5a2afcc4e74f23c0194a454ae8146c3fd3d4c01867b6404100a54526c8eda2bb7762095a35b4dbc8d2fe15ab0e6b118881a28c3ef4e65d21dcc5c4104038b3838e5c26d6d7f46f2cfe13716c04403ba5b8105c29ab976d583bb6bb26c3f827727867156c02ab84591f464c2ae73cbb814733e2389e26cbb4045514bb9b095210be7680521f77820e6d00b362719125d1aa49fc4ae5140e6c069963445f22402cfa14ba734d116c0a957a44036c9c3c81842df408a062470d6c049e5e36dee2a8bf647042060a6c0593470f910ecdc9af075c068f5ce84cfd065c079d29fd10095c04993ed9dfa6b66a0b5c059435b19c2eae7554200a5c028c178358fd3da38e095c038b046c913abd9d0b6c1d6a9f30bf6b37e91f140b6c0d7f75903c8e62980592125c1e7869734632c1c1dca66d734d3b8e571c0c41147e644839a365ad118f1c07471b7c7a2cebf706460378473abf04633b4b672152056b57e53bb6615817453723587ea4634fbe115df531df1f6524a195e63065721257137c29cdc4db32a711a26c74624a3a9d121152075223a9bf4221ba60483dda027a73230543195429b80f460b4530972c905cf12b94860865740b411f5a047c4721b04348f90956155319423abb079e0c152347e825c8c0e10d43e57a0c0c2244e030b54717890e589d08431148e03e762fbb0c701050e9ee31864eaafa20b71052f032c4c1cacdc1a5687561a56154cc0e40f524c2c9925bf621bb58f60e371052e62dfeaf400a775d5ce30157e20b56035dec3b0302b560135be43db34e3ab31d40fefae52991324bc8a8720652ea23a95ad10750f328871d863d075eed2a973849050840e10898fc2961630157135bea067650c3e0a57f5be6ea316d651c4118300e50e40d733f88065c470c27a99ff90a47e21a4605400d7f388e0947e10653e2014d1c7a0747e0035ac9c3c70555ff0827db0847fe082fbb401d530750fee83281187e0750ffed05695d26014a0952f1ef2757ead39e190302a6b7095ae4c6f51959f2084b0302a9a70c54fceddfe8ccab786bc67041095ef5e8d6df94173a8c075ef4d5ddb758e1095ef3d1ca8b192bbb410758f8dea56c5ee70558fbd2b9500e45fec2bc53cca15fed96cfe403340840c5dc841096fbed0146015f01521050cbad774bd280f9d1161e74174eab8f0546c7967d220c40c3a97e2a58d7af10004ded030297f31241cda341e9dfbec0b210711c3d8eef1c144b1341ccbc59c295c2f7163f89e08a1e338c1112161054cfbb11b143d1b3c69b0c334dfcde740e56c5b9288411036041d04d51b06b1254c9b2007657977af6053650f7f4bc3e7f06045ac3b6291e5cde970159d42520b1372f039deed872172e0f80bb232c0d58ba11083e0d275cdf9218229ab7ca82e7eae2fb974fc591e29dd7a9441267091a05a9abce9d818fe7f3ad2c6e4f0967c99a192f4ca32ea82a70d083ea1007766c314be1d07334ff183f680450a52a94c6fe1a1d41519ef6bd7b41b84d0a304ed775e50e5bd382c0ecd4593d90c86d237c2a0c50dc9afeda90d7bd21be0f501443c697d3aa4ca136484c9e0c40a84bc46a025aab0e47dab7c487153141c4c37a3d7d160745d793c36472b20d5ac4524db72c76080c145e9a31207cda6c2f96d5fe2c94e2b60fda721907367ca6f5a36d601d034c2b9fa63646c7050197397c3e0351d568295bcf64164de14b13a11a58b04e4bbb2d45b7371ab2355fe02f55af254aa07b5af87d4da22461ab2849235bc860012918b89362fef7dc35ffc69cd2bb10acf6aa53c1d093df5ca9321791accaea235bc963091c6d33a5e6a9337558020b3b72347ca7c49cdf3e08f6a4346e1855fb8c19920a01882eb0b892e36b1a8c020a88020af60316a205021efc0d50ac40db7b6417ae7833677fa08041728673fb60e3a1c2eca3df8d7f801a77e44bc79d1b4af7b3fea4b81ffbb9efda5d9ea40d020312c67fe593d679febe18f0be1c09a7c3e5a7dae5b0f9bbf15d8510096ca65caa4aa90b2c49030efb0a020efa0850a75396f9cd81df0343a6360440a322970a6c942d71194dc284c161", []); +; +window.byted_acrawler.init({ + aid: 24, + dfp: true +}); +!function() { + function t(e, t) { + var n = (65535 & e) + (65535 & t) + , r = (e>> 16) + (t>> 16) + (n>> 16); + return r << 16 | 65535 & n + } + function n(e, t) { + return e << t | e>>> 32 - t + } + function r(e, r, o, i, u, a) { + return t(n(t(t(r, e), t(i, a)), u), o) + } + function o(e, t, n, o, i, u, a) { + return r(t & n | ~t & o, e, t, i, u, a) + } + function i(e, t, n, o, i, u, a) { + return r(t & o | n & ~o, e, t, i, u, a) + } + function u(e, t, n, o, i, u, a) { + return r(t ^ n ^ o, e, t, i, u, a) + } + function a(e, t, n, o, i, u, a) { + return r(n ^ (t | ~o), e, t, i, u, a) + } + function s(e, n) { + e[n>> 5] |= 128 << n % 32, + e[(n + 64>>> 9 << 4) + 14] = n; + var r, s, c, l, f, p = 1732584193, d = -271733879, h = -1732584194, m = 271733878; + for (r = 0; r < e.length; r += 16) + s = p, + c = d, + l = h, + f = m, + p = o(p, d, h, m, e[r], 7, -680876936), + m = o(m, p, d, h, e[r + 1], 12, -389564586), + h = o(h, m, p, d, e[r + 2], 17, 606105819), + d = o(d, h, m, p, e[r + 3], 22, -1044525330), + p = o(p, d, h, m, e[r + 4], 7, -176418897), + m = o(m, p, d, h, e[r + 5], 12, 1200080426), + h = o(h, m, p, d, e[r + 6], 17, -1473231341), + d = o(d, h, m, p, e[r + 7], 22, -45705983), + p = o(p, d, h, m, e[r + 8], 7, 1770035416), + m = o(m, p, d, h, e[r + 9], 12, -1958414417), + h = o(h, m, p, d, e[r + 10], 17, -42063), + d = o(d, h, m, p, e[r + 11], 22, -1990404162), + p = o(p, d, h, m, e[r + 12], 7, 1804603682), + m = o(m, p, d, h, e[r + 13], 12, -40341101), + h = o(h, m, p, d, e[r + 14], 17, -1502002290), + d = o(d, h, m, p, e[r + 15], 22, 1236535329), + p = i(p, d, h, m, e[r + 1], 5, -165796510), + m = i(m, p, d, h, e[r + 6], 9, -1069501632), + h = i(h, m, p, d, e[r + 11], 14, 643717713), + d = i(d, h, m, p, e[r], 20, -373897302), + p = i(p, d, h, m, e[r + 5], 5, -701558691), + m = i(m, p, d, h, e[r + 10], 9, 38016083), + h = i(h, m, p, d, e[r + 15], 14, -660478335), + d = i(d, h, m, p, e[r + 4], 20, -405537848), + p = i(p, d, h, m, e[r + 9], 5, 568446438), + m = i(m, p, d, h, e[r + 14], 9, -1019803690), + h = i(h, m, p, d, e[r + 3], 14, -187363961), + d = i(d, h, m, p, e[r + 8], 20, 1163531501), + p = i(p, d, h, m, e[r + 13], 5, -1444681467), + m = i(m, p, d, h, e[r + 2], 9, -51403784), + h = i(h, m, p, d, e[r + 7], 14, 1735328473), + d = i(d, h, m, p, e[r + 12], 20, -1926607734), + p = u(p, d, h, m, e[r + 5], 4, -378558), + m = u(m, p, d, h, e[r + 8], 11, -2022574463), + h = u(h, m, p, d, e[r + 11], 16, 1839030562), + d = u(d, h, m, p, e[r + 14], 23, -35309556), + p = u(p, d, h, m, e[r + 1], 4, -1530992060), + m = u(m, p, d, h, e[r + 4], 11, 1272893353), + h = u(h, m, p, d, e[r + 7], 16, -155497632), + d = u(d, h, m, p, e[r + 10], 23, -1094730640), + p = u(p, d, h, m, e[r + 13], 4, 681279174), + m = u(m, p, d, h, e[r], 11, -358537222), + h = u(h, m, p, d, e[r + 3], 16, -722521979), + d = u(d, h, m, p, e[r + 6], 23, 76029189), + p = u(p, d, h, m, e[r + 9], 4, -640364487), + m = u(m, p, d, h, e[r + 12], 11, -421815835), + h = u(h, m, p, d, e[r + 15], 16, 530742520), + d = u(d, h, m, p, e[r + 2], 23, -995338651), + p = a(p, d, h, m, e[r], 6, -198630844), + m = a(m, p, d, h, e[r + 7], 10, 1126891415), + h = a(h, m, p, d, e[r + 14], 15, -1416354905), + d = a(d, h, m, p, e[r + 5], 21, -57434055), + p = a(p, d, h, m, e[r + 12], 6, 1700485571), + m = a(m, p, d, h, e[r + 3], 10, -1894986606), + h = a(h, m, p, d, e[r + 10], 15, -1051523), + d = a(d, h, m, p, e[r + 1], 21, -2054922799), + p = a(p, d, h, m, e[r + 8], 6, 1873313359), + m = a(m, p, d, h, e[r + 15], 10, -30611744), + h = a(h, m, p, d, e[r + 6], 15, -1560198380), + d = a(d, h, m, p, e[r + 13], 21, 1309151649), + p = a(p, d, h, m, e[r + 4], 6, -145523070), + m = a(m, p, d, h, e[r + 11], 10, -1120210379), + h = a(h, m, p, d, e[r + 2], 15, 718787259), + d = a(d, h, m, p, e[r + 9], 21, -343485551), + p = t(p, s), + d = t(d, c), + h = t(h, l), + m = t(m, f); + return [p, d, h, m] + } + function c(e) { + var t, n = ""; + for (t = 0; t < 32 * e.length; t += 8) + n += String.fromCharCode(e[t>> 5]>>> t % 32 & 255); + return n + } + function l(e) { + var t, n = []; + for (n[(e.length>> 2) - 1] = void 0, + t = 0; t < n.length; t += 1) + n[t] = 0; + for (t = 0; t < 8 * e.length; t += 8) + n[t>> 5] |= (255 & e.charCodeAt(t / 8)) << t % 32; + return n + } + function f(e) { + return c(s(l(e), 8 * e.length)) + } + function p(e, t) { + var n, r, o = l(e), i = [], u = []; + for (i[15] = u[15] = void 0, + o.length> 16 && (o = s(o, 8 * e.length)), + n = 0; 16> n; n += 1) + i[n] = 909522486 ^ o[n], + u[n] = 1549556828 ^ o[n]; + return r = s(i.concat(l(t)), 512 + 8 * t.length), + c(s(u.concat(r), 640)) + } + function d(e) { + var t, n, r = "0123456789abcdef", o = ""; + for (n = 0; n < e.length; n += 1) + t = e.charCodeAt(n), + o += r.charAt(t>>> 4 & 15) + r.charAt(15 & t); + return o + } + function h(e) { + return unescape(encodeURIComponent(e)) + } + function m(e) { + return f(h(e)) + } + function g(e) { + return d(m(e)) + } + function v(e, t) { + return p(h(e), h(t)) + } + function y(e, t) { + return d(v(e, t)) + } + function b(e, t, n) { + return t ? n ? v(t, e) : y(t, e) : n ? m(e) : g(e) + } + md5 = b +}(); +function isObject(e) { + var t = typeof e; + return "function" === t || "object" === t && !!e +} +function allKeys(e) { + if (!isObject(e)) + return []; + var t = []; + for (var n in e) + t.push(n); + return t +} +function extend(n) { + var r = arguments.length; + if (undefined && (n = Object(n)), + 2> r || null == n) + return n; + for (var o = 1; r> o; o++) + for (var i = arguments[o], u = allKeys(i), a = u.length, s = 0; a> s; s++) { + var c = u[s]; + undefined && void 0 !== n[c] || (n[c] = i[c]) + } + return n +} +function get_sign(t) { + var e = "/toutiao/api/pc/feed/"; + var n = ""; + e = "https://www.toutiao.com" + e; + for (var r in t) + n += "&" + r + "=" + encodeURIComponent(t[r]); + e += e.indexOf("?")> -1 ? e.indexOf("&")> -1 ? n : n.slice(1) : "?" + n.slice(1); + var o = { + url: e + } + , i = window.byted_acrawler.sign ? window.byted_acrawler.sign(o) : ""; + return i +} +function get_as_cp() { + var t = Math.floor((new Date).getTime() / 1e3) + , e = t.toString(16).toUpperCase() + , i = md5(t).toString().toUpperCase(); + if (8 != e.length) + return { + as: "479BB4B7254C150", + cp: "7E0AC8874BB0985" + }; + for (var n = i.slice(0, 5), a = i.slice(-5), s = "", o = 0; 5> o; o++) + s += n[o] + e[o]; + for (var r = "", c = 0; 5> c; c++) + r += e[c + 3] + a[c]; + return { + as: "A1" + s + e.slice(-3), + cp: e.slice(0, 3) + r + "E1" + } +} +function get_param(category, userAgent, max_behot) { + max_behot = max_behot || 0 + navigator.userAgent = userAgent; + var as_cp = get_as_cp(); + var param = { + // 热点,其它需要作相应修改 + category: category, + max_behot_time: max_behot, + max_behot_time_tmp: max_behot, + tadrequire: true, + utm_source: "toutiao", + widen: 1, + }; + param = extend({}, param, as_cp); + var _signature = get_sign(userAgent, param); + param._signature = _signature; + console.log(param) + return param; +} +module.exports = { + get_param +} +// ua = "Mozilla/5.0 (Windows NT 6.1; ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4142.0 Safari/537.36" +// category = "news_hot" +// get_param(category, ua) + From 62dcd8a12050cb05128612bd782d59211e0ce127 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年5月11日 17:47:35 +0800 Subject: [PATCH 43/59] Create index.js --- .../index.js" | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 "18-344円273円212円346円227円245円345円244円264円346円235円241円/index.js" diff --git "a/18-344円273円212円346円227円245円345円244円264円346円235円241円/index.js" "b/18-344円273円212円346円227円245円345円244円264円346円235円241円/index.js" new file mode 100644 index 0000000..1f0e0ce --- /dev/null +++ "b/18-344円273円212円346円227円245円345円244円264円346円235円241円/index.js" @@ -0,0 +1,39 @@ +var express = require('express') +var app = express() +var sign = require('./toutiao') // 导入toutiao模块,并命名为sign +var bodyParser = require('body-parser'); // 导入请求体解析器 +app.use(bodyParser()); + +// 开启get_cookie路由 +app.post('/get_param', function(req, res) { + // 获取请求的真实IP + var ip = req.headers['x-real-ip'] ? req.headers['x-real-ip'] : req.ip.replace(/::ffff:/, ''); + // 获取请求时间 + var time = new Date().toString().replace(/\+0800.*/, ''); + // 打印请求时间、IP、方法、路由 + console.log('INFO:', time, ip, req.method, req.originalUrl, '200 OK!'); + // 获取POST请求的formdata + let result = req.body; + // 取出formdata中的category + let category = result.category; + // 取出formdata中的userAgent + let userAgent = result.userAgent; + // 取出formdata中的userAgent + let max_behot = result.max_behot; + // 调用toutiao模块中的get_param方法,该方法需要提前module.exports导出 + var param = sign.get_param(category, userAgent, max_behot); + // 设置响应头,如果不设置,通过asyncio_requests请求的res.json()会报错,因为它是根据响应头解析json数据 + // 而requests可以直接使用res.json()解析,因为它是根据响应信息解析 + res.set('Content-Type', 'application/json') + // 将JSON后的数据返回客户端 + res.send(JSON.stringify(param)); +}); + + + +// 监听8919端口,所有人均可访问 +app.listen(8919, () => { + console.log("开启服务,端口8919", new Date().toString().replace(/\+0800.*/, '')) +}) + + From 824a27605f495b9f4cce50df466cb68bb34c2194 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年5月11日 17:56:36 +0800 Subject: [PATCH 44/59] Create README.md --- .../README.md" | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 "18-344円273円212円346円227円245円345円244円264円346円235円241円/README.md" diff --git "a/18-344円273円212円346円227円245円345円244円264円346円235円241円/README.md" "b/18-344円273円212円346円227円245円345円244円264円346円235円241円/README.md" new file mode 100644 index 0000000..e78c807 --- /dev/null +++ "b/18-344円273円212円346円227円245円345円244円264円346円235円241円/README.md" @@ -0,0 +1,16 @@ +# 使用说明 + +1.npm需安装express和body-parser,具体自行了解 + +2.将3个文件放于同一文件夹,cd到该目录,命令行运行 +```javascript +node index.js +``` + +3.运行toutiao.py开始食用 + + +### 由于pyexecjs运行会报以下错误,因此这里使用接口调用。如有解决办法,请联系告知,谢谢! +```python +TypeError: Cannot read property 'init' of undefined +``` From 1b219147956965a58ef8cff6609ce208b0b898a1 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年5月11日 17:59:20 +0800 Subject: [PATCH 45/59] Update README.md --- "18-344円273円212円346円227円245円345円244円264円346円235円241円/README.md" | 1 + 1 file changed, 1 insertion(+) diff --git "a/18-344円273円212円346円227円245円345円244円264円346円235円241円/README.md" "b/18-344円273円212円346円227円245円345円244円264円346円235円241円/README.md" index e78c807..8d5fb3a 100644 --- "a/18-344円273円212円346円227円245円345円244円264円346円235円241円/README.md" +++ "b/18-344円273円212円346円227円245円345円244円264円346円235円241円/README.md" @@ -14,3 +14,4 @@ node index.js ```python TypeError: Cannot read property 'init' of undefined ``` +### 实际为无法读取window.byted_acrawler对象,但node运行正常 From ac68c3f6e80550b3189701485178a399269fea84 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年5月12日 15:49:09 +0800 Subject: [PATCH 46/59] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f2ec019..8873413 100644 --- a/README.md +++ b/README.md @@ -14,4 +14,6 @@ JS逆向实战、教程持续更新,欢迎star,求关注公众号"逆向 - [x] [【TAPD模拟登录】非常简单的AES加密练手网站](https://mp.weixin.qq.com/s/vF3P-PBZz-qkxTGJkiQONg) - [x] [【58同城模拟登录】RSA加密及浏览器指纹分析](https://mp.weixin.qq.com/s/kfDpGlVuUwciyhTBdyrf5A) - [x] [【毛毛租】AES加密,较难分析的网站](https://mp.weixin.qq.com/s/3_sRSVidVy47-ZipArbCmg) -- [x] [ JS逆向 | 骚操作教你如何伪造浏览器环境](https://mp.weixin.qq.com/s/secmduSgSjuhbBuTrNxZkQ) +- [x] [ JS逆向 | 骚操作教你如何伪造浏览器环境](https://mp.weixin.qq.com/s/secmduSgSjuhbBuTrNxZkQ) +- [x] [【透明售房网】高度混淆及浏览器指纹分析(一)](https://mp.weixin.qq.com/s/UlnVU2yGjSqSeJMOihXL4A) +- [x] [【透明售房网】高度混淆及浏览器指纹分析(二)](https://mp.weixin.qq.com/s/m5hapF2O3SLWFhVW42qLkA) From e1b566852953e52acb9f4c238d781661e28ef4f2 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年5月12日 15:50:07 +0800 Subject: [PATCH 47/59] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8873413..3d42809 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,6 @@ JS逆向实战、教程持续更新,欢迎star,求关注公众号"逆向 - [x] [【TAPD模拟登录】非常简单的AES加密练手网站](https://mp.weixin.qq.com/s/vF3P-PBZz-qkxTGJkiQONg) - [x] [【58同城模拟登录】RSA加密及浏览器指纹分析](https://mp.weixin.qq.com/s/kfDpGlVuUwciyhTBdyrf5A) - [x] [【毛毛租】AES加密,较难分析的网站](https://mp.weixin.qq.com/s/3_sRSVidVy47-ZipArbCmg) -- [x] [ JS逆向 | 骚操作教你如何伪造浏览器环境](https://mp.weixin.qq.com/s/secmduSgSjuhbBuTrNxZkQ) +- [x]  [ JS逆向 | 骚操作教你如何伪造浏览器环境](https://mp.weixin.qq.com/s/secmduSgSjuhbBuTrNxZkQ) - [x] [【透明售房网】高度混淆及浏览器指纹分析(一)](https://mp.weixin.qq.com/s/UlnVU2yGjSqSeJMOihXL4A) - [x] [【透明售房网】高度混淆及浏览器指纹分析(二)](https://mp.weixin.qq.com/s/m5hapF2O3SLWFhVW42qLkA) From 2d1279e628ca6851c06e3e51945f551010f43268 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年5月15日 13:51:20 +0800 Subject: [PATCH 48/59] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3d42809..dd8a887 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,4 @@ JS逆向实战、教程持续更新,欢迎star,求关注公众号"逆向 - [x]  [ JS逆向 | 骚操作教你如何伪造浏览器环境](https://mp.weixin.qq.com/s/secmduSgSjuhbBuTrNxZkQ) - [x] [【透明售房网】高度混淆及浏览器指纹分析(一)](https://mp.weixin.qq.com/s/UlnVU2yGjSqSeJMOihXL4A) - [x] [【透明售房网】高度混淆及浏览器指纹分析(二)](https://mp.weixin.qq.com/s/m5hapF2O3SLWFhVW42qLkA) +- [x]  [ JS逆向 | ob混淆一键还原工具](https://mp.weixin.qq.com/s/KOyhktjuOaZS2GM7UDrHWw) From 9eeb1a147dc13b89a72b43ceb737381d5acb84e7 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: Thu, 4 Jun 2020 11:05:00 +0800 Subject: [PATCH 49/59] Create boss.py --- "19-BOSS347円233円264円350円201円230円/boss.py" | 100 ++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 "19-BOSS347円233円264円350円201円230円/boss.py" diff --git "a/19-BOSS347円233円264円350円201円230円/boss.py" "b/19-BOSS347円233円264円350円201円230円/boss.py" new file mode 100644 index 0000000..2b6965b --- /dev/null +++ "b/19-BOSS347円233円264円350円201円230円/boss.py" @@ -0,0 +1,100 @@ +import requests, re +from urllib.parse import unquote +# import execjs + + +def get_index(url): + # 请求列表页,获取seed、js-filename、ts + headers = { + 'authority': 'www.zhipin.com', + 'upgrade-insecure-requests': '1', + 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36', + 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', + 'sec-fetch-site': 'none', + 'sec-fetch-mode': 'navigate', + 'sec-fetch-user': '?1', + 'sec-fetch-dest': 'document', + 'accept-language': 'zh-CN,zh;q=0.9', + } + res = requests.get(url, headers=headers, allow_redirects=False) + location = res.headers['location'] + seed = unquote(re.findall(r'seed=(.*?)&', location)[0]) + name = re.findall(r'name=(.*?)&', location)[0] + ts = re.findall(r'ts=(.*?)&', location)[0] + print(res.headers) + print("seed:", seed) + print("js-filename:", name) + print("ts:", ts) + return seed, name, ts + + +def get_code(name): + # 请求js-filename,获取动态代码 + headers = { + 'authority': 'www.zhipin.com', + 'cache-control': 'max-age=0', + 'upgrade-insecure-requests': '1', + 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36', + 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', + 'sec-fetch-site': 'none', + 'sec-fetch-mode': 'navigate', + 'sec-fetch-user': '?1', + 'sec-fetch-dest': 'document', + 'accept-language': 'zh-CN,zh;q=0.9', + # 'if-modified-since': 'Tue, 26 May 2020 11:27:36 GMT', + } + url = 'https://www.zhipin.com/web/common/security-js/%s.js' % name + response = requests.get(url, headers=headers) + print("code.length:", len(response.text)) + return response.text + + +def get_cookie(seed, ts, code): + # 传入seed、ts、code代码,获取zp_stoken + data = { + "seed": seed, + "ts": ts, + "code": code + } + res = requests.post('http://127.0.0.1:8919/get_cookie', data=data).json() + zp_stoken = res["cookie"] + + # zp_stoken = ctx.call("get_cookie", seed, ts, code)["cookie"] + + print("zp_stoken:", zp_stoken) + return zp_stoken + + +def main(url): + # 主要运行逻辑 + # 1、请求列表页,获取参数 + # 2、获取js代码 + # 3、获取cookie + # 4、携带cookie重新请求列表页,获取数据 + seed, name, ts = get_index(url) + code = get_code(name) + zp_stoken = get_cookie(seed, ts, code) + headers = { + 'authority': 'www.zhipin.com', + 'upgrade-insecure-requests': '1', + 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36', + 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', + 'sec-fetch-site': 'same-origin', + 'sec-fetch-mode': 'navigate', + 'sec-fetch-dest': 'document', + 'accept-language': 'zh-CN,zh;q=0.9', + "cookie": '__zp_stoken__=' + zp_stoken + } + res = requests.get(url, headers=headers) + print(res.text) + + + +if __name__ == "__main__": + # with open("boss.js", "r", encoding="utf-8") as f: + # ctx = execjs.compile(f.read()) + + # 列表页url + url = 'https://www.zhipin.com/job_detail/?query=java&city=101280600&industry=&position=' + main(url) + From 06982576921c886cea78c504a45ac24c324d80af Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: Thu, 4 Jun 2020 11:06:53 +0800 Subject: [PATCH 50/59] Create boss.js --- "19-BOSS347円233円264円350円201円230円/boss.js" | 134 ++++++++++++++++++++++ 1 file changed, 134 insertions(+) create mode 100644 "19-BOSS347円233円264円350円201円230円/boss.js" diff --git "a/19-BOSS347円233円264円350円201円230円/boss.js" "b/19-BOSS347円233円264円350円201円230円/boss.js" new file mode 100644 index 0000000..954dbd8 --- /dev/null +++ "b/19-BOSS347円233円264円350円201円230円/boss.js" @@ -0,0 +1,134 @@ +window = { + document: { + cookie: "", + createElement: function(tag) { + if (tag == "canvas") { + return canvas + } else if (tag == "caption") { + return { + tagName: "CAPTION" + } + } + + }, + getElementById: function() { + return false + }, + title: "" + }, + moveBy: function () {}, + moveTo: function () {}, + open: function(){}, + dispatchEvent: function(){return true}, + screen: { + availHeight: 824, + availWidth: 1536 + }, + navigator: { + cookieEnabled: true, + language: "zh-CN", + userAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36", + appVersion: "5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36" + }, + decodeURI: global.decodeURI, + location: { + hostname: "www.zhipin.com", + href: "https://www.zhipin.com/" + }, + OfflineAudioContext: function () { + this.createOscillator = function() { + return { + frequency: { + setValueAtTime: function() {} + }, + connect: function (){}, + start: function (){}, + } + }, + this.createDynamicsCompressor = function() { + return { + threshold: { + setValueAtTime: function () {}, + }, + setValueAtTime: function () {}, + knee: { + setValueAtTime: function () {}, + }, + ratio: { + setValueAtTime: function () {}, + }, + reduction: { + setValueAtTime: function () {}, + }, + attack: { + setValueAtTime: function () {}, + }, + release: { + setValueAtTime: function () {}, + }, + connect: function (){}, + } + }, + this.startRendering = function (){} + }, + eval: global.eval, + history: {length: 1}, + outerHeight: 824, + innerHeight: 150, + outerWidth: 1536, + innerWidth: 0, + Math: global.Math, + Date: global.Date, +} +window.open.toString = function (){return "function open() { [native code] }"} +document = window.document +navigator = window.navigator +screen = window.screen +canvas = { + getContext: function getContext() { + return CanvasRenderingContext2D + }, + toDataURL: function toDataURL() { + // 实际为canvas画布填充了""k54kk5cA4*""字样后,转成的图片链接 + return "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAANT0lEQVR4Xu2be3BU5R2Gf2cDBAomRC4Bwi1WEEMJGIjAgBUqyowXQKp08IJFIUvGVqkzlcFiWy+tF1pbtSNsUnHEqqjcxgEpgqKC0ghYJQJauTjKRQyRBAwEcfd0zpJdNzcU2FmSlyf/hXP2nO993uWZ7/vOiWP8QAACEGgkBJxGMk6GGUcCbp65cbxco7mUU2B83xtNW3UPlAIbeYEnM3yEdTLU+ExDIICwGkILCR4DwkowcG4XNwIIK24oG8+FEFbj6YqRVieAsM7AbwTCOgNLF4mMsESKPJEYCOtEaHFuQyKAsBpSGwkaC8JKEGhuE3cCCCvuSBv+BRFWw++IEdZNAGGdgd8MhHUGli4SGWGJFHkiMRDWidDi3IZEAGE1pDYSNBaElSDQ3CbuBBBW3JE2/AsirIbfESNkD4vvQBUBhMVXobESYIbVWJs7hXEjrFOAx0dPKwGEdVrxn56bI6zTw527njqB74Q1qTDdfKE3zHWmWmHe8lqX9s/ua66z0szaRo+5zmwrzMuvdW5e4DZznZFW2XycPTOhwmr+HvuB4x3zzptcMMscd0rMR/aZ446wwJQPflD873Jtj46nvg/WNRYvd8g3zSqbTw5nEfhBWAIlnqERfriwvP/M3k+B/7HjsoqIzXXePWVhebJx3DnmOjfbPyfvPamOIhJy3HPqlbF34Zrj9v6teeWLZlYevq/jXmBms743/0kNMrEfQliJ5c3d4keglrB6nFv00M+Gz7ls566s95a+cvs0c5354VmUN9MxW+zPzzvsBu12x7FmkWG4jm0u6G/T7Ma5La15ZWHVv6fePPG21U2SK7u/MO/eT8vLOlwU+f3Zfz3YrKIi7arwTMl1LvZmY3Ue8y5UNbvJmzrh945rWdF7uvaNk2SPBmYVjI+ZgX1kId+wqNyOjceTzmPt2306YdCgly7skPHJa8HmdteTve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ckFAkADCEiyVSBBQJYCwVJslFwQECSAswVKJBAFVAghLtVlyQUCQAMISLJVIEFAlgLBUmyUXBAQJICzBUokEAVUCCEu1WXJBQJAAwhIslUgQUCWAsFSbJRcEBAkgLMFSiQQBVQIIS7VZckFAkADCEiyVSBBQJYCwVJslFwQECSAswVKJBAFVAghLtVlyQUCQAMISLJVIEFAlgLBUmyUXBAQJICzBUokEAVUCCEu1WXJBQJAAwhIslUgQUCWAsFSbJRcEBAkgLMFSiQQBVQIIS7VZckFAkADCEiyVSBBQJYCwVJslFwQECfwfXVXO0yIn8tUAAAAASUVORK5CYII=" + }, +} +CanvasRenderingContext2D = { + fillRect: function () {}, + fillText: function () {} +} +localStorage = { + removeItem: function (key) { + delete this[key] + }, + getItem: function (key) { + return this[key] ? this[key]: null; + }, + setItem: function (key, value) { + this[key] = "" + value; + }, +}; +sessionStorage = {} +setInterval = window.setInterval = function (){} +setInterval.toString = function(){return "function setInterval() { [native code] }"} +setTimeout = function (){} +top = window.top = window +global = undefined; +child_process = undefined; +closed = { + __proto__: ( 1>>3>4 )["__proto__"] +} +function get_cookie(seed, ts, code) { + var Buffer; + process = undefined; + function CustomEvent() {} + eval(code); + cookie = encodeURIComponent(new ABC().z(seed, parseInt(ts)+(480+new Date().getTimezoneOffset())*60*1000)) + console.log({cookie, cookie}) + return {cookie, cookie}; +} + +module.exports = { + get_cookie +} + From 6b16fda97e2b83108760868deec246b848a95e50 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: Thu, 4 Jun 2020 11:11:11 +0800 Subject: [PATCH 51/59] Create README.md --- "19-BOSS347円233円264円350円201円230円/README.md" | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 "19-BOSS347円233円264円350円201円230円/README.md" diff --git "a/19-BOSS347円233円264円350円201円230円/README.md" "b/19-BOSS347円233円264円350円201円230円/README.md" new file mode 100644 index 0000000..cf75d56 --- /dev/null +++ "b/19-BOSS347円233円264円350円201円230円/README.md" @@ -0,0 +1,17 @@ +# 使用说明 + +1.npm需安装express和body-parser,具体自行了解 + +2.将3个文件放于同一文件夹,cd到该目录,命令行运行 +```javascript +node index.js +``` + +3.运行boss.py开始食用 + + +### 由于pyexecjs运行会报以下错误,因此这里使用接口调用。 +```python +execjs._exceptions.ProcessExitedWithNonZeroStatus: (1, "{\n cookie: '0df7%2B9kAOY%2BdFeUde5p9NCZKtB2NXE6tIvdOfT25tAHJMiCiwrE0IJoOog04oQNba8nW0DAyd%2BjPCVgIUn3%2FXaXxYW5iqK9j1Mr%2FLAxG3sSH%2BhiM4UpIzn5XpYncEehEHLf1'\n}\n",..... +``` +### 实际为process赋值为undefined的原因,导致execjs库无法读取process From 35c5abd5cbcf1acc9e7b812935c0674437cba6f6 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: Thu, 4 Jun 2020 11:15:30 +0800 Subject: [PATCH 52/59] Create index.js --- "19-BOSS347円233円264円350円201円230円/index.js" | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 "19-BOSS347円233円264円350円201円230円/index.js" diff --git "a/19-BOSS347円233円264円350円201円230円/index.js" "b/19-BOSS347円233円264円350円201円230円/index.js" new file mode 100644 index 0000000..3d1b19c --- /dev/null +++ "b/19-BOSS347円233円264円350円201円230円/index.js" @@ -0,0 +1,33 @@ +var express = require('express') +var app = express() +var cook = require('./boss.js') // 导入boss.js模块,并命名为cook +var bodyParser = require('body-parser'); // 导入请求体解析器 +// 调整参数大小限制,否则会提示参数过大。 +app.use(bodyParser.urlencoded({limit: '50mb', extended: true})); + +// 开启get_cookie路由 +app.post('/get_cookie', function(req, res) { + // 获取请求的真实IP + var ip = req.headers['x-real-ip'] ? req.headers['x-real-ip'] : req.ip.replace(/::ffff:/, ''); + // 获取请求时间 + var time = new Date().toString().replace(/\+0800.*/, ''); + // 打印请求时间、IP、方法、路由 + console.log('INFO:', time, ip, req.method, req.originalUrl, '200 OK!'); + // 获取POST请求的formdata + let result = req.body; + let code = result.code; + let seed = result.seed; + let ts = result.ts; + + // 调用cook模块中的get_cookie方法,该方法需要提前module.exports导出 + var cooki = cook.get_cookie(seed, ts, code); + // 设置响应头,如果不设置,通过asyncio_requests请求的res.json()会报错,因为它是根据响应头解析json数据 + // 而requests可以直接使用res.json()解析,因为它是根据响应信息解析 + res.set('Content-Type', 'application/json') + // 将JSON后的数据返回客户端 + res.send(JSON.stringify(cooki)); +}); + +app.listen(8919, () => { + console.log("开启服务,端口8919", new Date().toString().replace(/\+0800.*/, '')) +}) From 2d304b21c7a2f37f0b8bc35f93a64829737c2f69 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年6月17日 11:00:39 +0800 Subject: [PATCH 53/59] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index dd8a887..26cde21 100644 --- a/README.md +++ b/README.md @@ -18,3 +18,4 @@ JS逆向实战、教程持续更新,欢迎star,求关注公众号"逆向 - [x] [【透明售房网】高度混淆及浏览器指纹分析(一)](https://mp.weixin.qq.com/s/UlnVU2yGjSqSeJMOihXL4A) - [x] [【透明售房网】高度混淆及浏览器指纹分析(二)](https://mp.weixin.qq.com/s/m5hapF2O3SLWFhVW42qLkA) - [x]  [ JS逆向 | ob混淆一键还原工具](https://mp.weixin.qq.com/s/KOyhktjuOaZS2GM7UDrHWw) +- [x]  [ JS逆向 | BOSS直聘cookie分析](https://mp.weixin.qq.com/s/0B-k1-wgNVEJZQo2I0vl_Q) From 7666169d8f9039618da777879869adb2ce0fbf74 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年6月18日 11:45:17 +0800 Subject: [PATCH 54/59] Update README.md --- "19-BOSS347円233円264円350円201円230円/README.md" | 2 ++ 1 file changed, 2 insertions(+) diff --git "a/19-BOSS347円233円264円350円201円230円/README.md" "b/19-BOSS347円233円264円350円201円230円/README.md" index cf75d56..44eaaba 100644 --- "a/19-BOSS347円233円264円350円201円230円/README.md" +++ "b/19-BOSS347円233円264円350円201円230円/README.md" @@ -1,5 +1,7 @@ # 使用说明 +### 注意:我这里只补了两套代码的环境,BOSS实际有几套不知道,补不动了,一天一变... + 1.npm需安装express和body-parser,具体自行了解 2.将3个文件放于同一文件夹,cd到该目录,命令行运行 From ba14e38c58a40a7aba07de90c616c42daf6f2a97 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年6月23日 16:24:32 +0800 Subject: [PATCH 55/59] Create douyin.py --- "20-346円212円226円351円237円263円web/douyin.py" | 155 +++++++++++++++++++++ 1 file changed, 155 insertions(+) create mode 100644 "20-346円212円226円351円237円263円web/douyin.py" diff --git "a/20-346円212円226円351円237円263円web/douyin.py" "b/20-346円212円226円351円237円263円web/douyin.py" new file mode 100644 index 0000000..0e64ea2 --- /dev/null +++ "b/20-346円212円226円351円237円263円web/douyin.py" @@ -0,0 +1,155 @@ +import requests, re, execjs, sys +from lxml import etree + + +douyin_font = { + "  ": "0", "  ": "0", "  ": "0", + "  ": "1", "  ": "1", "  ": "1", + "  ": "2", "  ": "2", "  ": "2", + "  ": "3", "  ": "3", "  ": "3", + "  ": "4", "  ": "4", "  ": "4", + "  ": "5", "  ": "5", "  ": "5", + "  ": "6", "  ": "6", "  ": "6", + "  ": "7", "  ": "7", "  ": "7", + "  ": "8", "  ": "8", "  ": "8", + "  ": "9", "  ": "9", "  ": "9", +} +UA = 'Mozilla/5.0 (Windows NT 6.1; ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4014.0 Safari/537.36' +headers = { + 'User-Agent': UA, +} + + +def num_replace(text): + # 主页字体反爬 + for key, value in douyin_font.items(): + if key in text: + text = text.replace(key, value) + return text + + +def get_index(uid): + # 获取主页源码,uid如 102064772608 + url = "https://www.iesdouyin.com/share/user/%s" % uid + try: + res = requests.get(url, headers=headers) + if res.status_code == 200 and "dytk: " in res.text: + html = num_replace(res.text) + return html + else: + print("获取主页失败:", res.status_code) + if res.status_code == 200: + print("未请求到主页源码,请重新发起请求!") + sys.exit() + return None + except Exception as e: + print("获取主页失败:", e) + sys.exit() + return None + + +def parse_index(res): + # 解析主页,获取dytk、tac、昵称、抖音ID、认证信息、签名、关注数、粉丝数、赞数、作品数、喜欢数 + dytk = re.findall("dytk: '(.*?)'", res, re.S)[0] + tac = re.findall("", res, re.S)[0] + html = etree.HTML(res) + nickname = html.xpath('//p[@class="nickname"]/text()')[0] + douyin_ID = "".join(html.xpath('//p[@class="shortid"]/i/text()')) + verify_info = html.xpath('//div[@class="verify-info"]//text()') + verify_info = verify_info[0].strip() if verify_info else "无" + signature = html.xpath('//p[@class="signature"]/text()')[0] + focus_num = "".join(html.xpath('//span[@class="focus block"]//i/text()')) + follower_num = "".join(html.xpath('//span[@class="follower block"]/span[1]//text()')).strip() + liked_num = "".join(html.xpath('//span[@class="liked-num block"]/span[1]//text()')).strip() + user_tab = "".join(html.xpath('//div[@class="user-tab active tab get-list"]/span/i/text()')) + like_tab = "".join(html.xpath('//div[@class="like-tab tab get-list"]/span/i/text()')) + return { + "nickname": nickname, + "douyin_ID": douyin_ID, + "verify_info": verify_info, + "signature": signature, + "focus_num": focus_num, + "follower_num": follower_num, + "liked_num": liked_num, + "user_tab": user_tab, + "like_tab": like_tab, + }, tac, dytk + + +def get_sign(uid, tac, ua): + # 获取_signature + result = ctx.call("get_sign", uid, tac, ua) + print("\n_signature:", result) + return result + + +def get_aweme_list(uid, dytk, _signature): + # 发起ajax请求,获取数据 + params = { + 'user_id': uid, + 'sec_uid': '', + 'count': "21", + 'max_cursor': "0", + 'aid': "1128", + '_signature': _signature, + 'dytk': dytk + } + try: + response = requests.get('https://www.iesdouyin.com/web/api/v2/aweme/post/', headers=headers, params=params) + if response.json()["aweme_list"]: + # print(response.json()) + return response.json() + else: + print(response.json()) + return False + except Exception as e: + print(e) + return False + + +def download(url, name): + # 下载视频 + header = { + "user-agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 9_2 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13C75 Safari/601.1" + } + # url = "https://aweme.snssdk.com/aweme/v1/play/?video_id=v0200fe30000bj2iv7hum7li82bk34pg&line=0&ratio=540p&media_type=4&vr_type=0&improve_bitrate=0&is_play_url=1" + try: + res = requests.get(url, headers=header) + if res.status_code == 200: + with open(name + ".mp4", "wb") as f: + f.write(res.content) + print("下载完成!") + else: + print("下载失败:", res.status_code) + except Exception as e: + print("下载失败:", e) + + +def main(uid): + # 1. 获取主页源码 + index = get_index(uid) + # 2. 解析出主页信息及tac、dytk关键字段 + info, tac, dytk = parse_index(index) + print("主页信息:", info) + print("\ntac:", tac) + print("\ndytk:", dytk) + # 3. 获取_signature + _signature = get_sign(uid, tac, UA) + # 4. 携带_signature发起ajax请求,获取数据 + aweme_list = get_aweme_list(uid, dytk, _signature) + if aweme_list: + # 5. 提取第一个无水印视频下载链接 + play_addr = aweme_list['aweme_list'][0]['video']['play_addr']['url_list'][0] + # 6. 下载视频 + download(play_addr, "抖音短视频") + + + + +if __name__ == "__main__": + with open("douyin.js", "r", encoding="utf-8") as f: + ctx = execjs.compile(f.read()) + + uid = "102064772608" + main(uid) + From 43b62fd0a49e3c9dcc5a0233e1ccc5515adc2ba3 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2020年6月23日 16:25:48 +0800 Subject: [PATCH 56/59] Create douyin.js --- "20-346円212円226円351円237円263円web/douyin.js" | 267 +++++++++++++++++++++ 1 file changed, 267 insertions(+) create mode 100644 "20-346円212円226円351円237円263円web/douyin.js" diff --git "a/20-346円212円226円351円237円263円web/douyin.js" "b/20-346円212円226円351円237円263円web/douyin.js" new file mode 100644 index 0000000..58ad4ff --- /dev/null +++ "b/20-346円212円226円351円237円263円web/douyin.js" @@ -0,0 +1,267 @@ +Audio = {} +document = { + createElement: function() { + return canvas + } +}; +canvas = { + getContext: function getContext() { + return CanvasRenderingContext2D + }, + toDataURL: function toDataURL() { + // 实际为canvas画布填充了"龘ฑภ경"字样后,转成的图片链接 + return "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAQCAYAAABQrvyxAAACyUlEQVRIS8XWTYhVZRgH8N8dkPFqJqgI4sKmTUSgaBCKihCI5dZFUEaLwHAThjujEnXjpkAUHSRc+AEtFJIWKWRBSR9QENgiggplNqkTlXBnhjveeM6cF955PXccFJ2zuPec99zz3v/X87+3ZfrRK67jslWvxb103vCxx770DN5sApSAloBLco+SzFKcxbZClmG8gw7uIdCkfnq+BDsXbmzEizhYg2p0oEn1PEK5II/SgTKPbXyE89iBt+oPDDcpWz7cbwZysq/h9Vqd9/E2fkWsn0GsJeVi/1DvE6xJQLJoNA1T7PN0wx73zMBMDsTGTXMQ1n6TAfkJ63ACr+IcDmekUr6D0FUkdb+uc18SCPCba4ILitlodGA2ik8R7Rmw2E4ThnR9oVsRjJyuxL/4FLdwJCOQE07O5CBjQONIRINk7l4iOOMQB4mkdn6eajWgM2mhYU855KhRXRMO6DqKD/Ay3sWygkCKUE6qJPAegmis3+5T0I0EEtj8PUVn+r2e+Zb52HqjPqti8ptFnnPHPhzH6lq5+KIcbOwX4AJkAtjkQK50Pi9pfWfEKR/ifjVaOjC1wcLq9ZoPXbTLZfyi7Vljlep/4nSd8ZzA9bpNokUuzYJASTSBT3Mzcr8qbO77CNBSk0ZNGrPHoO+r1plnta4YxhxcTiAAbMcPs3QgXLpSC1EmKfbd38+B/jMQ4NvuWoTlPnfNKfyIES3P142U12Y/B6oI1Kj6RSgcOIZX6lqe0YHyL0Su/tT5gJ5JbSt03PSfrl34vco//2i522fgHma5/M1Ie20KZ0oHEsj5Fhireqijra2j4wlL3HHMGrv9bC2+tKUGf1vLxMOgfNBnp89AT8sGq3xrHE/WVRo0ojQHvWSHK/Y6ab83qhz/gZsYr34V5uAoCQwYstV1F6zzlXlaxg0aMeQvq7zgqu+qno+WuYG/5xJ86PU//5znHgwZKlQAAAAASUVORK5CYII=" + }, +} + +CanvasRenderingContext2D = { + arc: function arc() {}, + stroke: function stroke() {}, + fillText: function fillText() {}, +} +window = { + document: { + location:{}, + _zid:2 + }, +} +function get_sign(uid, aaaa, ua) { + // _signature共26位 + // uid 决定倒数第8至倒数第5位的字符(共4位) + // ua 决定倒数第10至倒数第8位的字符 + // data:image决定正数第11至第16位 + aaaa = aaaa.replace(/\\u02a1/g, "\u02a1").replace(/\\x7f/g, "\x7f").replace(/\\x80/g, "\x80").replace(/\\x1c/g, "\x1c").replace(/\\x06/g, "\x06").replace(/\\x02/g, "\x02").replace(/\\\'/g, "\'").replace(/\\ufffb/g, "\ufffb").replace(/\\\\/g, "\\").replace(/\\uffce/g, "\uffce") + navigator = { + userAgent: ua, + } + tac = aaaa; + var e = {}; + (function anonymous() { + function e(e, a, r) { + return (b[e] || (b[e] = t("x,y", "return x " + e + " y")))(r, a) + } + function a(e, a, r) { + return (k[r] || (k[r] = t("x,y", "return new x[y](" + Array(r + 1).join(",x[++y]").substr(1) + ")")))(e, a) + } + function r(e, a, r) { + var n, t, s = {}, b = s.d = r ? r.d + 1 : 0; + for (s["$" + b] = s, + t = 0; t < b; t++) + s[n = "$" + t] = r[n]; + for (t = 0, + b = s.length = a.length; t < b; t++) + s[t] = a[t]; + return c(e, 0, s) + } + function c(t, b, k) { + function u(e) { + if (typeof e === "string" && e === 'canvas') { + debugger; + } + v[x++] = e + } + function f() { + return g = t.charCodeAt(b++) - 32, + t.substring(b, b += g) + } + function l() { + try { + y = c(t, b, k) + } catch (e) { + h = e, + y = l + } + } + for (var h, y, d, g, v = [], x = 0; ; ) + switch (g = t.charCodeAt(b++) - 32) { + case 1: + u(!v[--x]); + break; + case 4: + v[x++] = f(); + break; + case 5: + u(function(e) { + var a = 0 + , r = e.length; + return function() { + var c = a < r; + return c && u(e[a++]), + c + } + }(v[--x])); + break; + case 6: + y = v[--x], + u(v[--x](y)); + break; + case 8: + if (g = t.charCodeAt(b++) - 32, + l(), + b += g, + g = t.charCodeAt(b++) - 32, + y === c) + b += g; + else if (y !== l) + return y; + break; + case 9: + v[x++] = c; + break; + case 10: + u(s(v[--x])); + break; + case 11: + y = v[--x], + u(v[--x] + y); + break; + case 12: + for (y = f(), + d = [], + g = 0; g < y.length; g++) + d[g] = y.charCodeAt(g) ^ g + y.length; + u(String.fromCharCode.apply(null, d)); + break; + case 13: + y = v[--x], + h = delete v[--x][y]; + break; + case 14: + v[x++] = t.charCodeAt(b++) - 32; + break; + case 59: + u((g = t.charCodeAt(b++) - 32) ? (y = x, + v.slice(x -= g, y)) : []); + break; + case 61: + u(v[--x][t.charCodeAt(b++) - 32]); + break; + case 62: + g = v[--x], + k[0] = 65599 * k[0] + k[1].charCodeAt(g)>>> 0; + break; + case 65: + h = v[--x], + y = v[--x], + v[--x][y] = h; + break; + case 66: + u(e(t[b++], v[--x], v[--x])); + break; + case 67: + y = v[--x], + d = v[--x] + u((g = v[--x]).x === c ? r(g.y, y, k) : g.apply(d, y)); + break; + case 68: + u(e((g = t[b++]) < "<" ? (b--, + f()) : g + g, v[--x], v[--x])); + break; + case 70: + u(!1); + break; + case 71: + v[x++] = n; + break; + case 72: + v[x++] = +f(); + break; + case 73: + u(parseInt(f(), 36)); + break; + case 75: + if (v[--x]) { + b++; + break + } + case 74: + g = t.charCodeAt(b++) - 32 << 16>> 16, + b += g; + break; + case 76: + u(k[t.charCodeAt(b++) - 32]); + break; + case 77: + y = v[--x], + u(v[--x][y]); + break; + case 78: + g = t.charCodeAt(b++) - 32, + u(a(v, x -= g + 1, g)); + break; + case 79: + g = t.charCodeAt(b++) - 32, + u(k["$" + g]); + break; + case 81: + h = v[--x] + v[--x][f()] = h; + break; + case 82: + u(v[--x][f()]); + break; + case 83: + h = v[--x] + k[t.charCodeAt(b++) - 32] = h; + break; + case 84: + v[x++] = !0; + break; + case 85: + v[x++] = void 0; + break; + case 86: + u(v[x - 1]); + break; + case 88: + h = v[--x], + y = v[--x], + v[x++] = h, + v[x++] = y; + break; + case 89: + u(function() { + function e() { + return r(e.y, arguments, k) + } + return e.y = f(), + e.x = c, + e + }()); + break; + case 90: + v[x++] = null; + break; + case 91: + v[x++] = h; + break; + case 93: + h = v[--x]; + break; + case 0: + return v[--x]; + default: + u((g << 16>> 16) - 16) + } + } + var n = this + , t = n.Function + , s = Object.keys || function(e) { + var a = {} + , r = 0; + for (var c in e) + a[r++] = c; + return a.length = r, + a + } + , b = {} + , k = {}; + return r + } + ) + ()('gr$Daten Иb/s!l y͒yĹg,(lfi~ah`{mv,-n|jqewVxp{rvmmx,&effkx[!cs"l".Pq%widthl"@q&heightl"vr*getContextx$"2d[!cs#l#,*;?|u.|uc{uq$fontl#vr(fillTextx$$龘ฑภ경2<[#c}l#2q*shadowblurl#1q-shadowoffsetxl#$$limeq+shadowcolorl#vr#arcx88802[%c}l#vr&strokex[ c}l"v,)}eOmyoZB]mx[ cs!0s$l$Pb>>s!0s%yA0s"l"l!r&lengthb&l!l Bd>&+l!l &+l!l 6d>&+l!l &+ s,y=o!o!]/q"13o!l q"10o!],l 2d>& s.{s-yMo!o!]0q"13o!]*Ld>>b|s!o!l q"10o!],l!& s/yIo!o!].q"13o!],o!]*Jd>>b|&o!]+l &+ s0l-l!&l-l!i\'1z141z4b/@d Date: 2020年6月23日 17:13:53 +0800 Subject: [PATCH 57/59] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 26cde21..fa872a5 100644 --- a/README.md +++ b/README.md @@ -19,3 +19,9 @@ JS逆向实战、教程持续更新,欢迎star,求关注公众号"逆向 - [x] [【透明售房网】高度混淆及浏览器指纹分析(二)](https://mp.weixin.qq.com/s/m5hapF2O3SLWFhVW42qLkA) - [x]  [ JS逆向 | ob混淆一键还原工具](https://mp.weixin.qq.com/s/KOyhktjuOaZS2GM7UDrHWw) - [x]  [ JS逆向 | BOSS直聘cookie分析](https://mp.weixin.qq.com/s/0B-k1-wgNVEJZQo2I0vl_Q) + +### 赞赏 + +如果觉得本仓库对你有用,谢谢赞赏~ + +![](https://imgkr.cn-bj.ufileos.com/bf55aae1-f12b-4a63-9b57-94eaf2ff9798.png) From a2e1554e99c50e2ebd705377777ec8f6f5bfd0ae Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: Mon, 6 Jul 2020 17:40:02 +0800 Subject: [PATCH 58/59] Update douyin.py --- "20-346円212円226円351円237円263円web/douyin.py" | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git "a/20-346円212円226円351円237円263円web/douyin.py" "b/20-346円212円226円351円237円263円web/douyin.py" index 0e64ea2..1b0e13b 100644 --- "a/20-346円212円226円351円237円263円web/douyin.py" +++ "b/20-346円212円226円351円237円263円web/douyin.py" @@ -30,7 +30,8 @@ def num_replace(text): def get_index(uid): # 获取主页源码,uid如 102064772608 - url = "https://www.iesdouyin.com/share/user/%s" % uid + url = "https://www.amemv.com/share/user/%s" % uid + # url = "https://www.iesdouyin.com/share/user/%s" % uid try: res = requests.get(url, headers=headers) if res.status_code == 200 and "dytk: " in res.text: From 207a47e8ab5fe6ab2cc1f43bd0a98b67b30ea3f1 Mon Sep 17 00:00:00 2001 From: DingZaiHub <52557898+dingzaihub@users.noreply.github.com> Date: 2021年4月11日 15:30:48 +0800 Subject: [PATCH 59/59] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index fa872a5..391ea61 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ JS逆向实战、教程持续更新,欢迎star,求关注公众号"逆向 | Author | 丁仔 | | :-----: | :---: | -| Email | 1123279813@qq.com | | 微信公众号 | 逆向新手 | | Introduce | Python、爬虫、JS逆向 |

AltStyle によって変換されたページ (->オリジナル) /