Skip to content

Instantly share code, notes, and snippets.

@rasata
Forked from jbloetz/pg.sh
Created June 13, 2022 13:34
Show Gist options
  • Save rasata/6176a907b1399cc970bb8225da0cbf61 to your computer and use it in GitHub Desktop.
Save rasata/6176a907b1399cc970bb8225da0cbf61 to your computer and use it in GitHub Desktop.
strong password generator script
#!/bin/bash
export LC_ALL=C
cat /dev/urandom | tr -cd [:graph:] | head -c ${1:-16}
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment