Skip to content

Instantly share code, notes, and snippets.

@igorvolnyi
Created February 26, 2019 23:56
Show Gist options
  • Save igorvolnyi/c30df525d47d973d66e40016955cb39a to your computer and use it in GitHub Desktop.
Save igorvolnyi/c30df525d47d973d66e40016955cb39a to your computer and use it in GitHub Desktop.
Generate random passwords using core linux utils only
# Count is needed to limit amount of bytes read from /dev/urandom
# fold controls letgth of displayed character sequences
# head specifies number of passwords to generate
# tr defines characters to use
dd if=/dev/urandom bs=1 count=30000 status=none | tr -cd '[:graph:]' | fold -w 25 | head -n 40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment