Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 Node.js 中生成签名。这是一个python示例:
signature = hmac.new(SECRET, msg=message, digestmod=hashlib.sha256).hexdigest().upper()
我有这个:
signature = crypto.createHmac('sha256', SECRET).update(message).digest('hex').toUpperCase()
我究竟做错了什么?
也检查了节点手册。在我看来是正确的。;链的末端呢?
;