Encoding Nov 13, 2022 How to encode How to encode stuff in javascript. const hmac = crypto.createHmac('sha256', secret) const signingInfo = hmac .update( `v0:${event.headers['X-Slack-Request-Timestamp']}:${event.body}`, ) .digest('hex') We’ll see how it goes.