Skip to content

Instantly share code, notes, and snippets.

@coreymcmahon
Created November 26, 2021 03:17
Show Gist options
  • Save coreymcmahon/d1d06dece2e63eb13ae193b7c96c22eb to your computer and use it in GitHub Desktop.
Save coreymcmahon/d1d06dece2e63eb13ae193b7c96c22eb to your computer and use it in GitHub Desktop.
1-liner cryptographically secure random string (Node)
# Using node
node -e 'require("crypto").randomBytes(48, (e, b) => console.log(b.toString("hex")))'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment