Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Password generator by iTK98 for b0x.co.il
- # License, Public Domain.
- RS="/dev/urandom"
- CHARSET="A-Za-z0-9"
- DL="$1"
- if [ -z "$1" ]; then
- DL="8"
- fi
- PASSWD=`cat $RS|tr -dc $CHARSET|head -c${1:-${DL}}`
- echo "Password: $PASSWD"
- exit 0
Add Comment
Please, Sign In to add comment