Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions PasswordGenerator.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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