snnui
在云端是如何修改的,有没有DEMO? 云函数报这个错 Error: Username is missing or empty 完全不明白啊
// salt tu1k2nksp01h4lgnttxm2277dqqwt1zuqlxhc6rd1oxfyxfg // 密码 123456 var res = "tu1k2nksp01h4lgnttxm2277dqqwt1zuqlxhc6rd1oxfyxfg123456" for (var i = 0; i <= 512; i++) { res = SHA512(res) } console.log(res) console.log(base64encode(res)) 但是这个转出的结果是 ecb6140f2dfaa08f21c817150a6b0e5c19766e037456e71e…
sha512的库 用的这个 https://coursesweb.net/javascript/sha512-encrypt-hash_cs
最新的代码 var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA512, "tu1k2nksp01h4lgnttxm2277dqqwt1zuqlxhc6rd1oxfyxfg"); hmacHasher.update("*****") var hash2 = hmacHasher.finalize(); for (var i = 0; i < 512; i++) { hmacHasher.reset() hash2 = hmacHasher.finalize(hash2); } var base64 = CryptoJS.…
自己搞定了,,你们一定不靠谱