Skip to content

Commit

Permalink
Add random password generator
Browse files Browse the repository at this point in the history
  • Loading branch information
markets committed May 9, 2014
1 parent 92b62e5 commit 095b44f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/genpass
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

# Generates random alphanumeric password
# Usage: genpass long

long=${1:-8}
cat /dev/random | LC_CTYPE=C tr -dc "[:alpha:]" | head -c $long; echo

0 comments on commit 095b44f

Please sign in to comment.