Revision: 18589
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 3, 2009 05:23 by mviera
Initial Code
#!/bin/bash w="$1" [[ -n "$w" ]] || w=12 if [[ $w -lt 8 ]]; then echo "A password of length $w would be too weak." exit 1 fi passwd=$( cat /dev/urandom |tr -dc "a-zA-Z0-9_\?\$\#\." |fold -w $w |head -1 ) echo "${passwd}"
Initial URL
Initial Description
Initial Title
Random password generator
Initial Tags
Initial Language
Bash