Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
const crypto = require('crypto'); // Secret key const secretKey = 'mySecretKey'; // Create an HMAC const hmac = crypto.createHmac('sha256', secretKey); // Update with data hmac.update('Hello, World!'); // Get the digest const hmacDigest = hmac.digest('hex'); console.log('HMAC:', hmacDigest);
HMAC: 90a39237924dcbbc7a2ea3bf5bcc7aa6debdf67d95d783306b2550ca2da64b2d