const timestamp = new Date().getTime()
const secret="你的秘钥"
const stringToSign = timestamp + "n" + secret
const sign = crypto.createHmac('sha256', secret).update(stringToSign).digest("base64")
// 最终得到的签名sign
const sign_urlencode = encodeURIComponent(sign)


xpin
24 声望1 粉丝