精易论坛

标题: 这个be和Z怎么改成调用而不是固定值 [打印本页]

作者: guigong    时间: 2025-4-10 11:08
标题: 这个be和Z怎么改成调用而不是固定值
be = "831928648165539841"
Z = 1743983505914 //时间戳

St = ((Z + 0) % 1e4)["toString"]();
$t = "1" + be['slice'](-2) + Z['toString']()['slice'](-2);
ce = Math['floor'](Z / 1000) % 1000 || 1;
oe = ce
be = CryptoJS['MD5'](be + St)['toString']()

mt = [
[
3,
5,
8,
12
],
[
7,
11,
2
],
[
19,
23,
17
]
]

const Bt = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29]
mt.forEach((dt, Nt) => {
const Oe = Bt[Nt];
dt['forEach'](At((...Ke) => {
(Ke['length'] = 1, $t ^= Ke[0] * Oe, oe += Math['pow'](Ke[0] % 10, 2) * ce % 1000003)
}))

})


function At(wt, Yt = 1) {
return Object.defineProperty(wt, 'length', {
value: Yt,
configurable: false
}),
wt
}


ut = "" + $t + "-" + oe + "-" + Z + "-" + be;
console.log(be, ut)
console.log(CryptoJS['MD5'](CryptoJS['SHA256'](ut)['toString'](CryptoJS['enc']['Hex']))['toString']());


作者: sangco    时间: 2025-4-10 11:08
guigong 发表于 2025-4-10 11:33
大佬输出少一个

来来来. 加我2664668. 给你现写
作者: sangco    时间: 2025-4-10 11:17
封装函数. 调用函数
function xxxxxxx(be,Z){


St = ((Z + 0) % 1e4)["toString"]();
$t = "1" + be['slice'](-2) + Z['toString']()['slice'](-2);
ce = Math['floor'](Z / 1000) % 1000 || 1;
oe = ce
be = CryptoJS['MD5'](be + St)['toString']()

mt = [
[
3,
5,
8,
12
],
[
7,
11,
2
],
[
19,
23,
17
]
]

const Bt = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29]
mt.forEach((dt, Nt) => {
const Oe = Bt[Nt];
dt['forEach'](At((...Ke) => {
(Ke['length'] = 1, $t ^= Ke[0] * Oe, oe += Math['pow'](Ke[0] % 10, 2) * ce % 1000003)
}))

})


function At(wt, Yt = 1) {
return Object.defineProperty(wt, 'length', {
value: Yt,
configurable: false
}),
wt
}


ut = "" + $t + "-" + oe + "-" + Z + "-" + be;
return ut
}

//be = "831928648165539841"
//Z = 1743983505914 //时间戳
console.log("831928648165539841", 1743983505914)
console.log(CryptoJS['MD5'](CryptoJS['SHA256'](ut)['toString'](CryptoJS['enc']['Hex']))['toString']());

作者: sangco    时间: 2025-4-10 11:17
用这个...下面输出忘了调用xx
function xxxxxxx(be,Z){


St = ((Z + 0) % 1e4)["toString"]();
$t = "1" + be['slice'](-2) + Z['toString']()['slice'](-2);
ce = Math['floor'](Z / 1000) % 1000 || 1;
oe = ce
be = CryptoJS['MD5'](be + St)['toString']()

mt = [
[
3,
5,
8,
12
],
[
7,
11,
2
],
[
19,
23,
17
]
]

const Bt = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29]
mt.forEach((dt, Nt) => {
const Oe = Bt[Nt];
dt['forEach'](At((...Ke) => {
(Ke['length'] = 1, $t ^= Ke[0] * Oe, oe += Math['pow'](Ke[0] % 10, 2) * ce % 1000003)
}))

})


function At(wt, Yt = 1) {
return Object.defineProperty(wt, 'length', {
value: Yt,
configurable: false
}),
wt
}


ut = "" + $t + "-" + oe + "-" + Z + "-" + be;
return ut
}

//be = "831928648165539841"
//Z = 1743983505914 //时间戳
console.log(XX("831928648165539841", 1743983505914))
console.log(CryptoJS['MD5'](CryptoJS['SHA256'](ut)['toString'](CryptoJS['enc']['Hex']))['toString']());

作者: 人杰啊    时间: 2025-4-10 11:18
自己改成调用的方式啊 传入
作者: guigong    时间: 2025-4-10 11:21
sangco 发表于 2025-4-10 11:17
封装函数. 调用函数
function xxxxxxx(be,Z){

不太行大佬

作者: sangco    时间: 2025-4-10 11:24
function xxxxxxx(be,){
       
        St = ((Z + 0) % 1e4)["toString"]();
        $t = "1" + be['slice'](-2) + Z['toString']()['slice'](-2);
        ce = Math['floor'](Z / 1000) % 1000 || 1;
        oe = ce
        be = CryptoJS['MD5'](be + St)['toString']()
       
        mt = [
        [
        3,
        5,
        8,
        12
        ],
        [
        7,
        11,
        2
        ],
        [
        19,
        23,
        17
        ]
        ]
       
        const Bt = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29]
        mt.forEach((dt, Nt) => {
        const Oe = Bt[Nt];
        dt['forEach'](At((...Ke) => {
        (Ke['length'] = 1, $t ^= Ke[0] * Oe, oe += Math['pow'](Ke[0] % 10, 2) * ce % 1000003)
        }))
       
        })
       
        ut = "" + $t + "-" + oe + "-" + Z + "-" + be;
        return ut
}


function At(wt, Yt = 1) {
return Object.defineProperty(wt, 'length', {
value: Yt,
configurable: false
}),
wt
}


//xxxxxxx("831928648165539841",1743983505914) 就是ut
console.log(xxxxxxx("831928648165539841",1743983505914))

console.log(CryptoJS['MD5'](CryptoJS['SHA256'](ut)['toString'](CryptoJS['enc']['Hex']))['toString']());

作者: sangco    时间: 2025-4-10 11:26
guigong 发表于 2025-4-10 11:21
不太行大佬

这个第4搞..第三稿少个Z. 亲测OK
function xxxxxxx(be,Z){
       
        St = ((Z + 0) % 1e4)["toString"]();
        $t = "1" + be['slice'](-2) + Z['toString']()['slice'](-2);
        ce = Math['floor'](Z / 1000) % 1000 || 1;
        oe = ce
        be = CryptoJS['MD5'](be + St)['toString']()
       
        mt = [
        [
        3,
        5,
        8,
        12
        ],
        [
        7,
        11,
        2
        ],
        [
        19,
        23,
        17
        ]
        ]
       
        const Bt = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29]
        mt.forEach((dt, Nt) => {
        const Oe = Bt[Nt];
        dt['forEach'](At((...Ke) => {
        (Ke['length'] = 1, $t ^= Ke[0] * Oe, oe += Math['pow'](Ke[0] % 10, 2) * ce % 1000003)
        }))
       
        })
       
        ut = "" + $t + "-" + oe + "-" + Z + "-" + be;
        return ut
}


function At(wt, Yt = 1) {
return Object.defineProperty(wt, 'length', {
value: Yt,
configurable: false
}),
wt
}


//xxxxxxx("831928648165539841",1743983505914) 就是ut
console.log(xxxxxxx("831928648165539841",1743983505914))

console.log(CryptoJS['MD5'](CryptoJS['SHA256'](ut)['toString'](CryptoJS['enc']['Hex']))['toString']());

作者: guigong    时间: 2025-4-10 11:33
sangco 发表于 2025-4-10 11:26
这个第4搞..第三稿少个Z. 亲测OK
function xxxxxxx(be,Z){
       

大佬输出少一个




欢迎光临 精易论坛 (https://125.confly.eu.org/) Powered by Discuz! X3.4