有人可以帮忙转成C# 语法吗?
var i = 0;var g = 8;
function (j) {
return h(b(f(j), j.length * g))
};
function f(m) {
var l = Array();
var j = (1 << g) - 1;
for (var k = 0; k < m.length * g; k += g) {
l[k >> 5] |= (m.charCodeAt(k / g) & j) << (24 - k % 32)
}
return l
};
function b(A, r) {
A[r >> 5] |= 128 << (24 - r % 32);
A[((r + 64 >> 9) << 4) + 15] = r;
var B = Array(80);
var z = 1732584193;
var y = -271733879;
var v = -1732584194;
var u = 271733878;
var s = -1009589776;
for (var o = 0; o < A.length; o += 16) {
var q = z;
var p = y;
var n = v;
var m = u;
var k = s;
for (var l = 0; l < 80; l++) {
if (l < 16) {
B[l] = A[o + l]
} else {
B[l] = d(B[l - 3] ^ B[l - 8] ^ B[l - 14] ^ B[l - 16], 1)
}
var C = e(e(d(z, 5), a(l, y, v, u)), e(e(s, B[l]), c(l)));
s = u;
u = v;
v = d(y, 30);
y = z;
z = C
}
z = e(z, q);
y = e(y, p);
v = e(v, n);
u = e(u, m);
s = e(s, k)
}
return Array(z, y, v, u, s)
};
function a(k, j, m, l) {
if (k < 20) {
return (j & m) | ((~j) & l)
}
if (k < 40) {
return j ^ m ^ l
}
if (k < 60) {
return (j & m) | (j & l) | (m & l)
}
return j ^ m ^ l
};
function c(j) {
return (j < 20) ? 1518500249 : (j < 40) ? 1859775393 : (j < 60) ? -1894007588 : -899497514
};
function e(j, m) {
var l = (j & 65535) + (m & 65535);
var k = (j >> 16) + (m >> 16) + (l >> 16);
return (k << 16) | (l & 65535)
};
function d(j, k) {
return (j << k) | (j >>> (32 - k))
};
function h(l) {
var k = i ? "0123456789ABCDEF" : "0123456789abcdef";
var m = "";
for (var j = 0; j < l.length * 4; j++) {
m += k.charAt((l[j >> 2] >> ((3 - j % 4) * 8 + 4)) & 15) + k.charAt((l[j >> 2] >> ((3 - j % 4) * 8)) & 15)
}
return m
};
有人可以帮忙转成C# 语法吗? 有人可以帮忙转成C# 语法吗?
补充:.NET技术 , C#