Skip to content

Instantly share code, notes, and snippets.

@Aurora12
Last active July 23, 2024 14:07
Show Gist options
  • Save Aurora12/80f0c9d740c0e64f2125105fd2e4b3c8 to your computer and use it in GitHub Desktop.
Save Aurora12/80f0c9d740c0e64f2125105fd2e4b3c8 to your computer and use it in GitHub Desktop.
Generate random strings in bash
shuf -er -n128 {A..Z} {a..z} {0..9}|tr -d '\n'
shuf -er -n20 {0..9}|sha512sum|cut -c 1-128
shuf -er -n20 {A..Z} {a-z} {0..9}|sha512sum|cut -c 1-128
openssl rand -base64 128|tr -d '\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment