Skip to content

Instantly share code, notes, and snippets.

@gaurangrshah
Created July 23, 2021 03:37
Show Gist options
  • Save gaurangrshah/24622923f9198d9e0622a8dff5b263b1 to your computer and use it in GitHub Desktop.
Save gaurangrshah/24622923f9198d9e0622a8dff5b263b1 to your computer and use it in GitHub Desktop.
const crypto = require("crypto");
const secretKey = crypto.randomBytes(8).toString("hex");
console.log(secretKey);
// run in terminal as `node keygen.js`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment