2015-06-01 00:41:02 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source functions.sh
|
|
|
|
|
|
|
|
|
2015-06-01 20:31:30 -05:00
|
|
|
case "$1" in
|
|
|
|
-cs | --char-size ) shaWithNum $2
|
2015-06-01 00:41:02 -05:00
|
|
|
;;
|
|
|
|
|
2015-06-01 20:31:30 -05:00
|
|
|
-l | --left-hand ) leftHand
|
2015-06-01 00:41:02 -05:00
|
|
|
;;
|
|
|
|
|
2015-06-01 20:31:30 -05:00
|
|
|
-lcs | --left-char-size ) leftHandNum $2
|
2015-06-01 00:41:02 -05:00
|
|
|
;;
|
|
|
|
|
2015-06-01 20:31:30 -05:00
|
|
|
"") shaStatic
|
2015-06-01 00:41:02 -05:00
|
|
|
;;
|
2015-06-01 20:31:30 -05:00
|
|
|
|
|
|
|
* | -h | --help ) echo
|
2015-06-01 20:54:15 -05:00
|
|
|
echo "NAME"
|
|
|
|
echo " bashpass"
|
2015-06-01 20:31:30 -05:00
|
|
|
echo
|
2015-06-01 20:54:15 -05:00
|
|
|
echo "SYNOPSIS"
|
|
|
|
echo " bashpass [-h] [--help] [-cs <integer>] [-l] [-lcs]"
|
2015-06-01 20:31:30 -05:00
|
|
|
echo
|
2015-06-01 20:54:15 -05:00
|
|
|
echo "-cs <integer> | --char-size <integer>"
|
|
|
|
echo " specify password length"
|
|
|
|
ech
|
|
|
|
echo "-l <integer> | --lefthand"
|
|
|
|
echo " left handed password"
|
2015-06-01 20:31:30 -05:00
|
|
|
echo
|
2015-06-01 20:54:15 -05:00
|
|
|
echo "-lcs <integer> | --left-char-size <integer>"
|
|
|
|
echo " left hand password with length"
|
2015-06-01 20:31:30 -05:00
|
|
|
echo
|
|
|
|
;;
|
|
|
|
esac
|