Skip to content

Instantly share code, notes, and snippets.

@almirbraggio
Last active December 9, 2023 16:53
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 almirbraggio/7b5a6426b1f4af943a987cc268925ff3 to your computer and use it in GitHub Desktop.
Save almirbraggio/7b5a6426b1f4af943a987cc268925ff3 to your computer and use it in GitHub Desktop.
Terminal Password Generation
$ sudo apt install apg
$ apg -n 1 -s
$ apg -n 1 -a 1 -m 12 -x 20 -s
$ sudo apt-get install pwgen
$ pwgen
$ sudo apt-get install makepasswd
$ makepasswd -chars 8
$ dd if=/dev/urandom bs=1 count=10 2>/dev/null | base64 or date +%s | sha256sum | base64 | head -c 16 ; echo or date | md5sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment