bash-pass/bashpass.sh

37 lines
629 B
Bash
Raw Normal View History

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