Skip to content

Instantly share code, notes, and snippets.

@Mcostart
Last active January 23, 2017 02:03
Show Gist options
  • Save Mcostart/da55c097535a91177cec36111c5df9dc to your computer and use it in GitHub Desktop.
Save Mcostart/da55c097535a91177cec36111c5df9dc to your computer and use it in GitHub Desktop.
Random password generator.
#!/bin/bash
echo "[*] Password 1:"
openssl rand -base64 30
echo "[*] Password 2:"
gpg --gen-random -a 0 30
echo "[*] Password 3:"
dd if=/dev/urandom bs=1 count=30 2>/dev/null | base64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment