python代码改写_#悬赏#将js代码改写为纯python代码

function codeSign(r) {

function n(r, n) {

return r << n | r >>> 32 - n

}

function t(r, n) {

var t, o, e, u, f;

return e = 2147483648 & r,

u = 2147483648 & n,

t = 1073741824 & r,

o = 1073741824 & n,

f = (1073741823 & r) + (1073741823 & n),

t & o ? 2147483648 ^ f ^ e ^ u : t | o ? 1073741824 & f ? 3221225472 ^ f ^ e ^ u : 1073741824 ^ f ^ e ^ u : f ^ e ^ u

}

function o(r, n, t) {

return r & n | ~r & t

}

function e(r, n, t) {

return r & t | n & ~t

}

function u(r, n, t) {

return r ^ n ^ t

}

function f(r, n, t) {

return n ^ (r | ~t)

}

function i(r, e, u, f, i, a, c) {

return r = t(r, t(t(o(e, u, f), i), c)),

t(n(r, a), e)

}

function a(r, o, u, f, i, a, c) {

return r = t(r, t(t(e(o, u, f), i), c)),

t(n(r, a), o)

}

function c(r, o, e, f, i, a, c) {

return r = t(r, t(t(u(o, e, f), i), c)),

t(n(r, a), o)

}

function C(r, o, e, u, i, a, c) {

return r = t(r, t(t(f(o, e, u), i), c)),

t(n(r, a), o)

}

function g(r) {

for (var n, t = r.length, o = t + 8, e = (o - o % 64) / 64, u = 16 * (e + 1), f = Array(u - 1), i = 0, a = 0; t > a; )

n = (a - a % 4) / 4,

i = a % 4 * 8,

f[n] = f[n] | r.charCodeAt(a) << i,

a++;

return n = (a - a % 4) / 4,

i = a % 4 * 8,

f[n] = f[n] | 128 << i,

f[u - 2] = t << 3,

f[u - 1] = t >>> 29,

f

}

function d(r) {

var n, t, o = "", e = "";

for (t = 0; 3 >= t; t++)

n = r >>> 8 * t & 255,

e = "0" + n.toString(16),

o += e.substr(e.length - 2, 2);

return o

}

function h(r) {

for (var n = "", t = 0; t < r.length; t++) {

var o = r.charCodeAt(t);

128 > o ? n += String.fromCharCode(o) : o > 127 && 2048 > o ? (n += String.fromCharCode(o >> 6 | 192),

n += String.fromCharCode(63 & o | 128)) : (n += String.fromCharCode(o >> 12 | 224),

n += String.fromCharCode(o >> 6 & 63 | 128),

n += String.fromCharCode(63 & o | 128))

}

return n

}

var m, v, S, l, s, A, p, w, y, b = Array(), j = 7, x = 12, L = 17, k = 22, q = 5, z = 9, B = 14, D = 20, E = 4, F = 11, G = 16, H = 23, I = 6, J = 10, K = 15, M = 21;

for (r = h(r),

b = g(r),

A = 1732584193,

p = 4023233417,

w = 2562383102,

y = 271733878,

m = 0; m < b.length; m += 16)

v = A,

S = p,

l = w,

s = y,

A = i(A, p, w, y, b[m + 0], j, 3614090360),

y = i(y, A, p, w, b[m + 1], x, 3905402710),

w = i(w, y, A, p, b[m + 2], L, 606105819),

p = i(p, w, y, A, b[m + 3], k, 3250441966),

A = i(A, p, w, y, b[m + 4], j, 4118548399),

y = i(y, A, p, w, b[m + 5], x, 1200080426),

w = i(w, y, A, p, b[m + 6], L, 2821735955),

p = i(p, w, y, A, b[m + 7], k, 4249261313),

A = i(A, p, w, y, b[m + 8], j, 1770035416),

y = i(y, A, p, w, b[m + 9], x, 2336552879),

w = i(w, y, A, p, b[m + 10], L, 4294925233),

p = i(p, w, y, A, b[m + 11], k, 2304563134),

A = i(A, p, w, y, b[m + 12], j, 1804603682),

y = i(y, A, p, w, b[m + 13], x, 4254626195),

w = i(w, y, A, p, b[m + 14], L, 2792965006),

p = i(p, w, y, A, b[m + 15], k, 1236535329),

A = a(A, p, w, y, b[m + 1], q, 4129170786),

y = a(y, A, p, w, b[m + 6], z, 3225465664),

w = a(w, y, A, p, b[m + 11], B, 643717713),

p = a(p, w, y, A, b[m + 0], D, 3921069994),

A = a(A, p, w, y, b[m + 5], q, 3593408605),

y = a(y, A, p, w, b[m + 10], z, 38016083),

w = a(w, y, A, p, b[m + 15], B, 3634488961),

p = a(p, w, y, A, b[m + 4], D, 3889429448),

A = a(A, p, w, y, b[m + 9], q, 568446438),

y = a(y, A, p, w, b[m + 14], z, 3275163606),

w = a(w, y, A, p, b[m + 3], B, 4107603335),

p = a(p, w, y, A, b[m + 8], D, 1163531501),

A = a(A, p, w, y, b[m + 13], q, 2850285829),

y = a(y, A, p, w, b[m + 2], z, 4243563512),

w = a(w, y, A, p, b[m + 7], B, 1735328473),

p = a(p, w, y, A, b[m + 12], D, 2368359562),

A = c(A, p, w, y, b[m + 5], E, 4294588738),

y = c(y, A, p, w, b[m + 8], F, 2272392833),

w = c(w, y, A, p, b[m + 11], G, 1839030562),

p = c(p, w, y, A, b[m + 14], H, 4259657740),

A = c(A, p, w, y, b[m + 1], E, 2763975236),

y = c(y, A, p, w, b[m + 4], F, 1272893353),

w = c(w, y, A, p, b[m + 7], G, 4139469664),

p = c(p, w, y, A, b[m + 10], H, 3200236656),

A = c(A, p, w, y, b[m + 13], E, 681279174),

y = c(y, A, p, w, b[m + 0], F, 3936430074),

w = c(w, y, A, p, b[m + 3], G, 3572445317),

p = c(p, w, y, A, b[m + 6], H, 76029189),

A = c(A, p, w, y, b[m + 9], E, 3654602809),

y = c(y, A, p, w, b[m + 12], F, 3873151461),

w = c(w, y, A, p, b[m + 15], G, 530742520),

p = c(p, w, y, A, b[m + 2], H, 3299628645),

A = C(A, p, w, y, b[m + 0], I, 4096336452),

y = C(y, A, p, w, b[m + 7], J, 1126891415),

w = C(w, y, A, p, b[m + 14], K, 2878612391),

p = C(p, w, y, A, b[m + 5], M, 4237533241),

A = C(A, p, w, y, b[m + 12], I, 1700485571),

y = C(y, A, p, w, b[m + 3], J, 2399980690),

w = C(w, y, A, p, b[m + 10], K, 4293915773),

p = C(p, w, y, A, b[m + 1], M, 2240044497),

A = C(A, p, w, y, b[m + 8], I, 1873313359),

y = C(y, A, p, w, b[m + 15], J, 4264355552),

w = C(w, y, A, p, b[m + 6], K, 2734768916),

p = C(p, w, y, A, b[m + 13], M, 1309151649),

A = C(A, p, w, y, b[m + 4], I, 4149444226),

y = C(y, A, p, w, b[m + 11], J, 3174756917),

w = C(w, y, A, p, b[m + 2], K, 718787259),

p = C(p, w, y, A, b[m + 9], M, 3951481745),

A = t(A, v),

p = t(p, S),

w = t(w, l),

y = t(y, s);

var N = d(A) + d(p) + d(w) + d(y);

return N.toLowerCase()

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值