Skip to content

Instantly share code, notes, and snippets.

@dgrant
Last active December 14, 2015 22:18
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 dgrant/5157199 to your computer and use it in GitHub Desktop.
Save dgrant/5157199 to your computer and use it in GitHub Desktop.
Generate random passwords
#!/bin/bash
for ((n=0;n<10;n++));
do
dd if=/dev/urandom count=1 2> /dev/null | uuencode -m -| head -n 2 | tail -n 1 | cut -c-8
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment