Bash: New password generator.

This commit is contained in:
Artem Sapegin 2013-03-28 13:02:33 +04:00
parent 7c336e56b6
commit a23fab9d65
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ alias get="curl -O"
alias dos2unix="perl -pi -e 's/\r\n?/\n/g'"
# Password generator
password() { openssl rand -base64 ${1:-8}; }
password() { cat /dev/urandom | tr -dc A-Za-z0-9_ | head -c ${1:-10}; }
# Show $PATH in a readable way
alias path='echo -e ${PATH//:/\\n}'