Skip to content

Instantly share code, notes, and snippets.

@eiskalteschatten
Created May 9, 2022 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eiskalteschatten/3c1b29c26c625568fcc3be892f9bcd40 to your computer and use it in GitHub Desktop.
Save eiskalteschatten/3c1b29c26c625568fcc3be892f9bcd40 to your computer and use it in GitHub Desktop.
Generate a Secret or Key in the Command Line with Node.js
#!/bin/sh
node -e "console.log(require('crypto').randomBytes(256).toString('base64'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment