generate_good_password
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
generate_good_password [2009/06/05 07:05] – k2patel | generate_good_password [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Generate good password ====== | ====== Generate good password ====== | ||
+ | how simple it is | ||
+ | <code bash> | ||
+ | echo `< / | ||
+ | </ | ||
+ | |||
+ | Read further for complicated edition. | ||
+ | |||
Usage : apg.sh 10 (generate 10 character password) | Usage : apg.sh 10 (generate 10 character password) | ||
<code bash | apg.sh> | <code bash | apg.sh> | ||
#!/bin/bash | #!/bin/bash | ||
+ | if [ $# -lt 1 ]; then | ||
+ | echo "Usage : apg <lenght of password>" | ||
+ | else | ||
for ((n=0; | for ((n=0; | ||
+ | fi | ||
+ | </ | ||
+ | |||
+ | <code bash | apg > | ||
+ | #!/bin/bash | ||
+ | if [ $# -gt 2 ]; then | ||
+ | echo "Usage : $0 [<Number Of Password> | ||
+ | else | ||
+ | if [ $1 ]; then | ||
+ | itr=$1 | ||
+ | else | ||
+ | itr=' | ||
+ | fi | ||
+ | if [ $2 ]; then | ||
+ | len=$2 | ||
+ | else | ||
+ | len=' | ||
+ | fi | ||
+ | for ((n=0; | ||
+ | fi | ||
</ | </ |
generate_good_password.1244185511.txt.gz · Last modified: 2020/08/10 02:30 (external edit)