Commit fdb5b3c7 authored by wang's avatar wang

收集更多信息

parent 48c11228
No preview for this file type
let keyStr = 'J8QoS9q62O4cnMVvkemfCdXE_-l3abjzRiHAP7uwFLZB0Ir=pKGxN5sgtYTWDy1hU'; // let keyStr = 'J8QoS9q62O4cnMVvkemfCdXE_-l3abjzRiHAP7uwFLZB0Ir=pKGxN5sgtYTWDy1hU';
encodeFuc = function (input) { // encodeFuc = function (input) {
let output = "", chr1, chr2, chr3, enc1, enc2, enc3, enc4, i = 0; // let output = "", chr1, chr2, chr3, enc1, enc2, enc3, enc4, i = 0;
input = utf8_encode(input); // input = utf8_encode(input);
while (i < input.length) { // while (i < input.length) {
chr1 = input.charCodeAt(i++); // chr1 = input.charCodeAt(i++);
chr2 = input.charCodeAt(i++); // chr2 = input.charCodeAt(i++);
chr3 = input.charCodeAt(i++); // chr3 = input.charCodeAt(i++);
enc1 = chr1 >> 2; // enc1 = chr1 >> 2;
enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); // enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
enc3 = ((chr2 & 15) << 2) | (chr3 >> 6); // enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
enc4 = chr3 & 63; // enc4 = chr3 & 63;
if (isNaN(chr2)) { // if (isNaN(chr2)) {
enc3 = enc4 = 64; // enc3 = enc4 = 64;
} else if (isNaN(chr3)) { // } else if (isNaN(chr3)) {
enc4 = 64; // enc4 = 64;
} // }
console.log(enc1, enc2, enc3, enc4) // console.log(enc1, enc2, enc3, enc4)
output = output + // output = output +
keyStr.charAt(enc1) + keyStr.charAt(enc2) + // keyStr.charAt(enc1) + keyStr.charAt(enc2) +
keyStr.charAt(enc3) + keyStr.charAt(enc4); // keyStr.charAt(enc3) + keyStr.charAt(enc4);
} // }
return output; // return output;
} // }
utf8_encode = function (string) { // utf8_encode = function (string) {
string = string.replace(/\r\n/g, "\n"); // string = string.replace(/\r\n/g, "\n");
let utftext = ""; // let utftext = "";
for (let n = 0; n < string.length; n++) { // for (let n = 0; n < string.length; n++) {
let c = string.charCodeAt(n); // let c = string.charCodeAt(n);
if (c < 128) { // if (c < 128) {
utftext += String.fromCharCode(c); // utftext += String.fromCharCode(c);
} else if ((c > 127) && (c < 2048)) { // } else if ((c > 127) && (c < 2048)) {
utftext += String.fromCharCode((c >> 6) | 192); // utftext += String.fromCharCode((c >> 6) | 192);
utftext += String.fromCharCode((c & 63) | 128); // utftext += String.fromCharCode((c & 63) | 128);
} else { // } else {
utftext += String.fromCharCode((c >> 12) | 224); // utftext += String.fromCharCode((c >> 12) | 224);
utftext += String.fromCharCode(((c >> 6) & 63) | 128); // utftext += String.fromCharCode(((c >> 6) & 63) | 128);
utftext += String.fromCharCode((c & 63) | 128); // utftext += String.fromCharCode((c & 63) | 128);
} // }
//
} // }
return utftext; // return utftext;
} // }
// 编码 // // 编码
//
decodeFuc = function (input) { // decodeFuc = function (input) {
let output = "", chr1, chr2, chr3, enc1, enc2, enc3, enc4, i = 0; // let output = "", chr1, chr2, chr3, enc1, enc2, enc3, enc4, i = 0;
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ""); // input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
let res = []; // let res = [];
while (i < input.length) { // while (i < input.length) {
enc1 = keyStr.indexOf(input.charAt(i++)); // enc1 = keyStr.indexOf(input.charAt(i++));
enc2 = keyStr.indexOf(input.charAt(i++)); // enc2 = keyStr.indexOf(input.charAt(i++));
enc3 = keyStr.indexOf(input.charAt(i++)); // enc3 = keyStr.indexOf(input.charAt(i++));
enc4 = keyStr.indexOf(input.charAt(i++)); // enc4 = keyStr.indexOf(input.charAt(i++));
chr1 = (enc1 << 2) | (enc2 >> 4); // chr1 = (enc1 << 2) | (enc2 >> 4);
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); // chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
chr3 = ((enc3 & 3) << 6) | enc4; // chr3 = ((enc3 & 3) << 6) | enc4;
output = output + String.fromCharCode(chr1); // output = output + String.fromCharCode(chr1);
res.push(chr1) // res.push(chr1)
if (enc3 != 64) { // if (enc3 != 64) {
output = output + String.fromCharCode(chr2); // output = output + String.fromCharCode(chr2);
res.push(chr2) // res.push(chr2)
} // }
if (enc4 != 64) { // if (enc4 != 64) {
output = output + String.fromCharCode(chr3); // output = output + String.fromCharCode(chr3);
res.push(chr3) // res.push(chr3)
//
} // }
} // }
// console.log(res) // // console.log(res)
output = utf8_decode(output); // output = utf8_decode(output);
return output; // return output;
} // }
utf8_decode = function (utftext) { // utf8_decode = function (utftext) {
let string = "", i = 0, c = 0, c1 = 0, c2 = 0, c3 = 0; // let string = "", i = 0, c = 0, c1 = 0, c2 = 0, c3 = 0;
while (i < utftext.length) { // while (i < utftext.length) {
c = utftext.charCodeAt(i); // c = utftext.charCodeAt(i);
if (c < 128) { // if (c < 128) {
string += String.fromCharCode(c); // string += String.fromCharCode(c);
i++; // i++;
} else if ((c > 191) && (c < 224)) { // } else if ((c > 191) && (c < 224)) {
c2 = utftext.charCodeAt(i + 1); // c2 = utftext.charCodeAt(i + 1);
string += String.fromCharCode(((c & 31) << 6) | (c2 & 63)); // string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
i += 2; // i += 2;
} else { // } else {
c2 = utftext.charCodeAt(i + 1); // c2 = utftext.charCodeAt(i + 1);
c3 = utftext.charCodeAt(i + 2); // c3 = utftext.charCodeAt(i + 2);
string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); // string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
i += 3; // i += 3;
} // }
} // }
return string; // return string;
} // }
// 解码 // // 解码
newBase = 'm_NX78dBPXDKNk5hmNitMGipEdI-MatWtjIAhkijtxcg-sXWqvve7magQjrmAB-JX08sN99BkZpGxI5TgOLkhe=pnBSPATif0_8JGYyfQqh1zQK5gmZQF0gPjZ71VDJ1DZIYgMhqd1h1jAi-tpn00J1YipRTI_jTF8IYcNK_LGDxMape_t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5oN7WC0WmSiaOXQLV1Wr9gvmk1Fxdhd50XnxYdfIWzh38THaXdQzQ2Yr9ThtQLu6Yp3t3fe7wPb3hLn6GiJy7vvyVpx7jHPkN_OWnui0Hvg6grxlu6G4KG0753HBs9WBDjZliqESds80xFTg=d65LiHivwMnNxXV0LcwY2Y3FrelMFd6bmD=6Ql8MfR7vnrLmvRRwOoH5sJKjGIvt9OgZEa5LntdlA=cdn2FWYcEPi-SJP1XR283-1_njJqJvYoRerdkf_CzsyaPcr5ahJQACP3iXMv9TvpqxDx2y9YQumXwKg-r9s_Pm2LRBaH68sh69l5qQN0O_mNTg3x_D=2DIOrOGo7Rh5AT2LTpkxW=iQLAVEJt0FjD87Wc1jBgFW4_EowIujx-BT1=_2IsIpSum7lgnj7L8ztMpQ_BZ3S9GNL=biTsIFfKOdNF9Ov3_tlMIOYFQNss7BWq_hGjavCssiwcVi3Yw8WofzwZIsTVynH1=MWrDKv2WDVE2ohNkdwV66NIVYM1zMaE78zeQWimdEN_QtkiT=T0HxTWoE10JGd2MQ1m6jYYH8GOVRyAkM7PXcajk5W9qcwnX66W45e9lQmSEMVBQ=INeejVW_3u671tNe0C6Oyh9u67cMjBQfxpZDjNVY2bHL9Q2i18wkCf_33nS1cTV7_v7z=FpmwrQpe=lVJK1w89c5la4uWZh_i52HZv-HHZewBS=xrqNk05hXNufmoVzsGSwsa823I4bwgmwHG=z3I11AN1om-Dv_AA5Vn6qveG-RJydpH57snu8maWRYrdpA2WouumwBjWbmRkCfZRqopRY7S0yg6yNnxANhAr_ghbe7u4=OYzH=J2HGHWfG4pPSt5kYCZQ-yJh6DAa7HRjPQ7aV51VttQp02YwQ5ZjC8u1scuyD3LLt1KK71uBE9ROqx7gpWp8coA6ugipJU'
//
const oldValue = decodeFuc(newBase); // const oldValue = decodeFuc(newBase);
//
// console.log(newBase) // // console.log(newBase)
// console.log(oldValue) // // console.log(oldValue)
//
//
let res = [] // let res = []
//
let b = 'A97nfY-IAQAAqoWs8TokCGd4ge9wiJWEtTySE7C1pLSDjEe4tzAzwKGvkJ2QASZebdKucn0ewH9eCOfvosJeCA==' // let b = 'A97nfY-IAQAAqoWs8TokCGd4ge9wiJWEtTySE7C1pLSDjEe4tzAzwKGvkJ2QASZebdKucn0ewH9eCOfvosJeCA=='
for (let i = 0; i < b.length; i+=2) { // for (let i = 0; i < b.length; i+=2) {
let n1 = b.charCodeAt(i) // let n1 = b.charCodeAt(i)
let n2 = b.charCodeAt(i+1) // let n2 = b.charCodeAt(i+1)
// console.log(n1,n2, n1 << 16 | n2 ) // // console.log(n1,n2, n1 << 16 | n2 )
res.push(n1 << 16 | n2) // res.push(n1 << 16 | n2)
} // }
console.log(res+''); // console.log(res+'');
//
var r = 0; // var r = 0;
for (let i = 0; i < res.length; i++) { // for (let i = 0; i < res.length; i++) {
let t2 = r << 5 // let t2 = r << 5
let t3 = t2 - r; // let t3 = t2 - r;
let t = res[i]; // let t = res[i];
let t4 = t3 + t; // let t4 = t3 + t;
r = t4 | 0; // r = t4 | 0;
// console.log(r) // // console.log(r)
// console.log() // // console.log()
} // }
console.log('randomkey1', r) // console.log('randomkey1', r)
console.log('randomkey2', 1434574246) // console.log('randomkey2', 1434574246)
//
// // randomKey1 =
// // 0.08636862211354912 * 4294967296 == 370950407.3782759
// // 370950407.3782759 | 0 == 370950407
// // randomKey2 79
// // v1 大数字 85
// // 四位 [107, 88, 143, 21]
//
// var numberArray=[132.2,253.2,121.2,.1,74.2,2201899482,2740211630,7.5398223600000005,2847285690,31090522,275.2,3743275402,3318509690,284.2,154.2,101.2,.2,93.2,279.2,.7,922008474,971497754,2461747757,598902283,629402020,2147483648,265.2,257348550135456.88,290.2,244.2,170.2,254.2,1239580603,45.2,65.2,84.2,211.2,399231403,536870911,63.2,183.2,3859266993,-1074,99181075,1688010488,48.2,.5,2.75,137.2,4174564507,875733608,144.2,2389837486,238.2,828003900,2872160648,1997986946,9007199254740992,3332526584,505060900,9.2,724619624,92.2,647769070,67108864,1577750618,708470954,.4,2090248682,3891112177,2993665312,1582252366,10.05309648,.9,6.2831853,1007723247,5.02654824,3363437144,38.2,1434574246,2324473708,4294967296,293.2,1971734641,286.2,4313095025605680,2393392308,219.2,1035793960,99.2,188.2,298.2,1756044170,2845869764,508041131,390535033,2135174803,316.2,9007199254740991,3.5,12.5663706,.6,139236456,4294967295,18446744073709550000,192041471,-1022,1891353754,313.2,3576115390,81.2,30.2,.8,281.2,3603876240,77017224e4,3782017136,.3,212.2,36.2,2379298063,1928801222,261.2,259.2,47.2,33.2,848133886,90.2,83.2,3500767921,72.2,622317848,1625109814,330.2,191.2,2664494970,142.2,3735928559,1474721287,2969494852,865498720,685342107,173.2,1062579495,1182813676,2.51327412,193.2,73.2,815997380,2139581624];
// [1891353754, 1035793960,1062579495, 971497754].forEach(e=>{
// console.log(e, numberArray.indexOf(e))
// })
//
//
// // [1, 147, 50, 194, 204, 152, 180, 131, 64, 139, 170, 159,
// // 46, 137, 179, 160, 78, 52, 56, 134, 92, 98, 147, 111,
// // 123, 77, 164, 251, 144, 151, 64, 45, 8, 210, 16, 122,
// // 64, 39, 236, 209, 135, 245, 192, 100, 251, 158, 99, 49,
// // 29, 36, 242, 67, 233, 33, 229, 27, 255, 50, 12, 67,
// // 159, 152, 223, 17, 105, 12, 244, 75, 37, 131, 161, 32,
// // 83, 215, 54, 120, 190, 29, 152, 148, 203, 176, 156, 226,
// // 101, 174, 220, 184, 116, 84, 173, 23, 77, 169, 244, 41,
// // 215, 201, 63, 87]
// //
// //
// // [
// // 1891353754, 1035793960,
// // -1062579495, 971497754,
// // 2047861029, 453967604,
// // 1188017424, 886685092,
// // 1231819529, 845208169,
// // 104545809, 2142949960,
// // 2967616560, 1004220,
// // 26424002, -862407549
// // ]
//
//
// let a = 136204776;
// let b = 1036851444;
//
//
// randomKey1 =
// 0.08636862211354912 * 4294967296 == 370950407.3782759
// 370950407.3782759 | 0 == 370950407
// randomKey2 79
// v1 大数字 85
// 四位 [107, 88, 143, 21]
var numberArray=[132.2,253.2,121.2,.1,74.2,2201899482,2740211630,7.5398223600000005,2847285690,31090522,275.2,3743275402,3318509690,284.2,154.2,101.2,.2,93.2,279.2,.7,922008474,971497754,2461747757,598902283,629402020,2147483648,265.2,257348550135456.88,290.2,244.2,170.2,254.2,1239580603,45.2,65.2,84.2,211.2,399231403,536870911,63.2,183.2,3859266993,-1074,99181075,1688010488,48.2,.5,2.75,137.2,4174564507,875733608,144.2,2389837486,238.2,828003900,2872160648,1997986946,9007199254740992,3332526584,505060900,9.2,724619624,92.2,647769070,67108864,1577750618,708470954,.4,2090248682,3891112177,2993665312,1582252366,10.05309648,.9,6.2831853,1007723247,5.02654824,3363437144,38.2,1434574246,2324473708,4294967296,293.2,1971734641,286.2,4313095025605680,2393392308,219.2,1035793960,99.2,188.2,298.2,1756044170,2845869764,508041131,390535033,2135174803,316.2,9007199254740991,3.5,12.5663706,.6,139236456,4294967295,18446744073709550000,192041471,-1022,1891353754,313.2,3576115390,81.2,30.2,.8,281.2,3603876240,77017224e4,3782017136,.3,212.2,36.2,2379298063,1928801222,261.2,259.2,47.2,33.2,848133886,90.2,83.2,3500767921,72.2,622317848,1625109814,330.2,191.2,2664494970,142.2,3735928559,1474721287,2969494852,865498720,685342107,173.2,1062579495,1182813676,2.51327412,193.2,73.2,815997380,2139581624]; let a = [1,2,3,4,5,6,7,8,9]
[1891353754, 1035793960,1062579495, 971497754].forEach(e=>{ a.sort(function (a,b){
console.log(e, numberArray.indexOf(e)) return .5 - Math.random();
}) })
console.log(a)
\ No newline at end of file
// [1, 147, 50, 194, 204, 152, 180, 131, 64, 139, 170, 159,
// 46, 137, 179, 160, 78, 52, 56, 134, 92, 98, 147, 111,
// 123, 77, 164, 251, 144, 151, 64, 45, 8, 210, 16, 122,
// 64, 39, 236, 209, 135, 245, 192, 100, 251, 158, 99, 49,
// 29, 36, 242, 67, 233, 33, 229, 27, 255, 50, 12, 67,
// 159, 152, 223, 17, 105, 12, 244, 75, 37, 131, 161, 32,
// 83, 215, 54, 120, 190, 29, 152, 148, 203, 176, 156, 226,
// 101, 174, 220, 184, 116, 84, 173, 23, 77, 169, 244, 41,
// 215, 201, 63, 87]
//
//
// [
// 1891353754, 1035793960,
// -1062579495, 971497754,
// 2047861029, 453967604,
// 1188017424, 886685092,
// 1231819529, 845208169,
// 104545809, 2142949960,
// 2967616560, 1004220,
// 26424002, -862407549
// ]
let a = 136204776;
let b = 1036851444;
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