Commit 056ae470 authored by wang's avatar wang

test

parent 5954f954
Math.random = function () {
return 0.08636862211354912
}
var HN = new RegExp("[\\u007F-\\uFFFF]", "g");
function BB(ZY) {
return "\\u" + ("0000" + ZY.charCodeAt(0).toString(16)).substr(-4);
}
function V0(QO, Y0) {
var y2 = Y0;
var l4 = QO;
return function () {
var oT = l4;
oT ^= oT << 23;
oT ^= oT >> 17;
var mu = y2;
oT ^= mu;
oT ^= mu >> 26;
y2 = oT;
l4 = mu;
return (l4 + y2) % 4294967296;
};
}
function encodeStr2(ax, key) {
var gs = Math["random"]() * 1073741824 | 0;
console.log('gs', gs)
var q7 = V0(key, gs);
var xV = [];
var QF = 0;
while (QF < 2) {
xV.push(q7() & 255);
QF += 1;
}
console.log('xV', xV)
var VI = xV;
var CB = VI;
var tY = JSON.stringify(ax, function (fd, FO) {
return FO === undefined ? null : FO;
});
var nW = tY.replace(HN, BB);
var cV = [];
var qJ = 0;
while (qJ < nW.length) {
cV.push(nW.charCodeAt(qJ));
qJ += 1;
}
console.log('cV', cV+'')
var zy = cV;
var Lr = zy;
var fk = Lr.length;
var RD = [];
var M4 = fk - 1;
while (M4 >= 0) {
RD.push(Lr[M4]);
M4 -= 1;
}
var or = RD;
var Dz = or.length;
var C5 = CB[0] % 7 + 1;
var Rz = [];
var Bw = 0;
while (Bw < Dz) {
Rz.push((or[Bw] << C5 | or[Bw] >> 8 - C5) & 255);
Bw += 1;
}
var An = Rz;
var IY = [];
for (var l5 in An) {
var bu = An[l5];
if (An.hasOwnProperty(l5)) {
var WJ = String.fromCharCode(bu);
IY.push(WJ);
}
}
var x4 = btoa(IY.join(""));
return x4;
}
console.log(encodeStr2("98d5dc67cf9daf70d1cf77a0e572ea478aed7b47", 638959349))
\ No newline at end of file
......@@ -203,7 +203,6 @@ function encodeStrObj(ax, key) {
}
console.log(encodeStr(1, 2328399149))
function encode30(ax, key) {
......@@ -265,11 +264,10 @@ function encode30(ax, key) {
}
console.log(encode30('1709003020687', 4293051610))
console.log(encode30('vq9nCA', 4293051610))
function encodeStr53(ax, key) {
console.log('ax.length', ax.length)
var gs = Math["random"]() * 1073741824 | 0;
var tt = V0(key, gs);
......@@ -279,11 +277,14 @@ function encodeStr53(ax, key) {
ES.push(tt() & 255);
K_ += 1;
}
console.log(ES.length, ES+'')
var eb = ES;
var wc = eb;
var XK = JSON.stringify(ax, function (F6, KV) {
return KV === undefined ? null : KV;
});
console.log('XK.length', XK, '\t', XK.length)
var nF = XK.replace(HN, BB);
var f9 = [];
var Q1 = 0;
......@@ -291,6 +292,7 @@ function encodeStr53(ax, key) {
f9.push(nF.charCodeAt(Q1));
Q1 += 1;
}
console.log(f9.length, f9+'')
var WM = f9;
var RH = WM;
var uE = RH.length;
......@@ -330,7 +332,6 @@ function encodeStr53(ax, key) {
}
console.log(encodeStr53('1709003020687', 1624825960, 53))
function encodeStr18(ax, key) {
var gs = Math["random"]() * 1073741824 | 0;
......@@ -400,7 +401,6 @@ function encodeStr18(ax, key) {
}
console.log(encodeStr18("1012347.1575", 2781904740))
function encodeStr29(ax, key) {
......@@ -1853,3 +1853,16 @@ function encodeStrp(ax, key) {
// console.log(encodeStr252(
// []))
// console.log(encodeStr(1, 2328399149))
// console.log(encode30('1709003020687', 4293051610))
// console.log(encode30('vq9nCA', 4293051610))
// console.log(encodeStr53('1709003020687', 1624825960, 53))
console.log(encodeStr47('AAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAA9JREFUGFdjZEADjKQLAAAA7gAFLaYDxAAAAABJRU5ErkJggg=='))
// console.log(encodeStr18("1012347.1575", 2781904740))
\ No newline at end of file
......@@ -57,7 +57,8 @@ def encodeStrObj(inn, key):
# repls(rrr)
print(json.dumps(newData))
print(res[2])
print(res.index('srI3ubE5'))
print(json.dumps({
res[200]: 1,
res[201]: 10,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment