From 6dd2c8897262cdbd61496eee3bfe39180716d6b3 Mon Sep 17 00:00:00 2001 From: Deepam Gupta Date: Fri, 13 Dec 2019 01:28:24 +0530 Subject: [PATCH] added the How Many passwords feature --- PasswordGenerator.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) mode change 100644 => 100755 PasswordGenerator.sh diff --git a/PasswordGenerator.sh b/PasswordGenerator.sh old mode 100644 new mode 100755 index c8a3cbe..87ea23b --- a/PasswordGenerator.sh +++ b/PasswordGenerator.sh @@ -2,14 +2,16 @@ #Simple Password Generator -echo "This is a simple password generator" -echo "Please enter the length of the password: " -read PASS_LENGTH +echo "######################### PASSWORD GENERATOR ##########################" +echo +read -p "Please Enter the length of Password you want >> " PASS_LENGTH +read -p "How many password you want >> " COUNT -for p in $(seq 1 5); +echo "Below are $COUNT random combinations : " + +for p in $(seq 1 $COUNT); do openssl rand -base64 48 | cut -c1-$PASS_LENGTH - done