|
发表于 2024-12-20 18:41:42
|
显示全部楼层
福建省福州市
在这里了, 通过"8386d4cfe9c6ac42c5ea03daf92c74378a1a3608"生成
const Crypto = require("crypto-js");
const sha1Pow = (t="") => Crypto.SHA1(t).toString()
function fillZero(t=1) {
let e = "";
for (var r = 0; r < t; r++)
e += "0";
return e
}
function pow(t, e) {
const r = fillZero(e.count)
, i = Date.now();
let n, o = 0, s = "0";
for (; s !== r && !this.flag; )
s = sha1Pow(e.originStr[t] + o).substring(0, e.count),
o++;
return n = Date.now() - i,
{
t: n,
an: o - 1
}
}
ret = pow("spin-0", {
"originStr": {
"spin-0": "8386d4cfe9c6ac42c5ea03daf92c74378a1a3608"
},
"list": [
"spin-0"
],
"version": "sha1Pow",
"count": 3
})
console.log(ret)
|
评分
-
参与人数 1 | 荣誉 +1 |
收起
理由
|
笨潴
| + 1 |
热心帮助他人,荣誉+1,希望继续努力(*^__^*) 嘻嘻! |
查看全部评分
|