Skip to content

Instantly share code, notes, and snippets.

View caseyrichins's full-sized avatar

Casey Richins caseyrichins

  • Utah
View GitHub Profile
@caseyrichins
caseyrichins / npass.sh
Last active November 29, 2024 05:53 — forked from jahil/npass.sh
GRC's Perfect Passwords Generator
#!/bin/bash
# GRC's Perfect Passwords Generator
WGET="wget"
FILE=`mktemp`
trap "shred -ufz $FILE" EXIT
$WGET -q --tries=10 --timeout=5 http://www.google.com -O $FILE &> /dev/null
[ -z "$1" ] && echo -e "\E[31mGRC's\E[37m Ultra High Security Password Generator v0.1\r\033[0m" && echo -e '--------------------------------------------------\n' &&
echo -e '\E[37mUsage: ppassword [\E[31m-an alphanumeric\E[37m ] [\E[32m-as ascii\E[37m ] [ -hex hexadecimal ]' && exit 100