const crypto = require("crypto"); function hash(input) { return crypto .createHash("sha256") .update(JSON.stringify(input)) .digest("hex"); } module.exports = hash;