微信公众号平台登录.js 5.2 KB
Newer Older
梦想橡皮擦's avatar
梦想橡皮擦 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
function p(e, t) {
    var n = (65535 & e) + (65535 & t);
    return (e >> 16) + (t >> 16) + (n >> 16) << 16 | 65535 & n
}

function a(e, t, n, o, r, i) {
    return p((t = p(p(t, e), p(o, i))) << r | t >>> 32 - r, n)
}

function l(e, t, n, o, r, i, s) {
    return a(t & n | ~t & o, e, t, r, i, s)
}

function m(e, t, n, o, r, i, s) {
    return a(t & o | n & ~o, e, t, r, i, s)
}

function f(e, t, n, o, r, i, s) {
    return a(t ^ n ^ o, e, t, r, i, s)
}

function g(e, t, n, o, r, i, s) {
    return a(n ^ (t | ~o), e, t, r, i, s)
}

function s(e, t) {
    e[t >> 5] |= 128 << t % 32,
        e[14 + (t + 64 >>> 9 << 4)] = t;
    for (var n, o, r, d, i = 1732584193,
            s = -271733879,
            a = -1732584194,
            c = 271733878,
            u = 0; u < e.length; u += 16) i = l(n = i, o = s, r = a, d = c, e[u], 7, -680876936),
        c = l(c, i, s, a, e[u + 1], 12, -389564586),
        a = l(a, c, i, s, e[u + 2], 17, 606105819),
        s = l(s, a, c, i, e[u + 3], 22, -1044525330),
        i = l(i, s, a, c, e[u + 4], 7, -176418897),
        c = l(c, i, s, a, e[u + 5], 12, 1200080426),
        a = l(a, c, i, s, e[u + 6], 17, -1473231341),
        s = l(s, a, c, i, e[u + 7], 22, -45705983),
        i = l(i, s, a, c, e[u + 8], 7, 1770035416),
        c = l(c, i, s, a, e[u + 9], 12, -1958414417),
        a = l(a, c, i, s, e[u + 10], 17, -42063),
        s = l(s, a, c, i, e[u + 11], 22, -1990404162),
        i = l(i, s, a, c, e[u + 12], 7, 1804603682),
        c = l(c, i, s, a, e[u + 13], 12, -40341101),
        a = l(a, c, i, s, e[u + 14], 17, -1502002290),
        i = m(i, s = l(s, a, c, i, e[u + 15], 22, 1236535329), a, c, e[u + 1], 5, -165796510),
        c = m(c, i, s, a, e[u + 6], 9, -1069501632),
        a = m(a, c, i, s, e[u + 11], 14, 643717713),
        s = m(s, a, c, i, e[u], 20, -373897302),
        i = m(i, s, a, c, e[u + 5], 5, -701558691),
        c = m(c, i, s, a, e[u + 10], 9, 38016083),
        a = m(a, c, i, s, e[u + 15], 14, -660478335),
        s = m(s, a, c, i, e[u + 4], 20, -405537848),
        i = m(i, s, a, c, e[u + 9], 5, 568446438),
        c = m(c, i, s, a, e[u + 14], 9, -1019803690),
        a = m(a, c, i, s, e[u + 3], 14, -187363961),
        s = m(s, a, c, i, e[u + 8], 20, 1163531501),
        i = m(i, s, a, c, e[u + 13], 5, -1444681467),
        c = m(c, i, s, a, e[u + 2], 9, -51403784),
        a = m(a, c, i, s, e[u + 7], 14, 1735328473),
        i = f(i, s = m(s, a, c, i, e[u + 12], 20, -1926607734), a, c, e[u + 5], 4, -378558),
        c = f(c, i, s, a, e[u + 8], 11, -2022574463),
        a = f(a, c, i, s, e[u + 11], 16, 1839030562),
        s = f(s, a, c, i, e[u + 14], 23, -35309556),
        i = f(i, s, a, c, e[u + 1], 4, -1530992060),
        c = f(c, i, s, a, e[u + 4], 11, 1272893353),
        a = f(a, c, i, s, e[u + 7], 16, -155497632),
        s = f(s, a, c, i, e[u + 10], 23, -1094730640),
        i = f(i, s, a, c, e[u + 13], 4, 681279174),
        c = f(c, i, s, a, e[u], 11, -358537222),
        a = f(a, c, i, s, e[u + 3], 16, -722521979),
        s = f(s, a, c, i, e[u + 6], 23, 76029189),
        i = f(i, s, a, c, e[u + 9], 4, -640364487),
        c = f(c, i, s, a, e[u + 12], 11, -421815835),
        a = f(a, c, i, s, e[u + 15], 16, 530742520),
        i = g(i, s = f(s, a, c, i, e[u + 2], 23, -995338651), a, c, e[u], 6, -198630844),
        c = g(c, i, s, a, e[u + 7], 10, 1126891415),
        a = g(a, c, i, s, e[u + 14], 15, -1416354905),
        s = g(s, a, c, i, e[u + 5], 21, -57434055),
        i = g(i, s, a, c, e[u + 12], 6, 1700485571),
        c = g(c, i, s, a, e[u + 3], 10, -1894986606),
        a = g(a, c, i, s, e[u + 10], 15, -1051523),
        s = g(s, a, c, i, e[u + 1], 21, -2054922799),
        i = g(i, s, a, c, e[u + 8], 6, 1873313359),
        c = g(c, i, s, a, e[u + 15], 10, -30611744),
        a = g(a, c, i, s, e[u + 6], 15, -1560198380),
        s = g(s, a, c, i, e[u + 13], 21, 1309151649),
        i = g(i, s, a, c, e[u + 4], 6, -145523070),
        c = g(c, i, s, a, e[u + 11], 10, -1120210379),
        a = g(a, c, i, s, e[u + 2], 15, 718787259),
        s = g(s, a, c, i, e[u + 9], 21, -343485551),
        i = p(i, n),
        s = p(s, o),
        a = p(a, r),
        c = p(c, d);
    return [i, s, a, c]
}

function c(e) {
    for (var t = "",
            n = 0; n < 32 * e.length; n += 8) t += String.fromCharCode(e[n >> 5] >>> n % 32 & 255);
    return t
}

function u(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 o(e) {
    for (var t, n = "0123456789abcdef",
            o = "",
            r = 0; r < e.length; r += 1) t = e.charCodeAt(r),
        o += n.charAt(t >>> 4 & 15) + n.charAt(15 & t);
    return o
}

function d(e) {
    return unescape(encodeURIComponent(e))
}

function r(e) {
    return c(s(u(e = d(e)), 8 * e.length))
}

function i(e, t) {
    var n, e = d(e),
        t = d(t),
        o = u(e),
        r = [],
        i = [];
    for (r[15] = i[15] = void 0, 16 < o.length && (o = s(o, 8 * e.length)), n = 0; n < 16; n += 1) r[n] = 909522486 ^ o[n],
        i[n] = 1549556828 ^ o[n];
    return e = s(r.concat(u(t)), 512 + 8 * t.length),
        c(s(i.concat(e), 640))
}

pwd = function (e) {
    return o(r(e))
}