Permalink
Browse files

Bash: New password generator.

  • Loading branch information...
1 parent 7c336e5 commit a23fab9d6566a1e86abb98ba89c27d051a5c89f3 @sapegin committed Mar 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 includes/bash_aliases.bash
@@ -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}'

0 comments on commit a23fab9

Please sign in to comment.