const crypto = require('crypto');
const hashformat= crypto.createHmac('sha256', process.env.HASH_SECRET)
.update("hashData")
.digest('hex');
require("crypto")
.createHash("sha256")
.update("Man oh man do I love node!")
.digest("hex");
var h = new Object(); // or just {}
h['one'] = 1;
h['two'] = 2;
h['three'] = 3;
// show the values stored
for (var k in h) {
// use hasOwnProperty to filter out keys from the Object.prototype
if (h.hasOwnProperty(k)) {
alert('key is: ' + k + ', value is: ' + h[k]);
}
}