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()
私は何を間違っていますか?
ノードのマニュアルも確認しました。私には正しいように見えます。;チェーンの最後はどうですか?
;