-
Notifications
You must be signed in to change notification settings - Fork 0
/
PassGenius.sh
39 lines (24 loc) · 1.32 KB
/
PassGenius.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
letters="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
symbols="!@#$%^&*()_+*/"
numbers="123456789"
echo -e "\033[36m\033[1m"
cat << "EOF"
░▒▓████████▓▒░ ░▒▓█▓▒░░▒▓█▓▒░
░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░
░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░
░▒▓█▓▒░░▒▓█▓▒░ ░▒▓██████▓▒░
░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░
░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░
░▒▓████████▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ @Helltakerc3rb
EOF
echo -e "\033[0m"
read -p "How many letters would you like in your passowrd : " l
read -p "How many symbols would you like : " s
read -p "How many numbers would you like : " n
choice1=$(echo "$letters" | fold -w1 | shuf | head -n $l | tr -d '\n')
choice2=$(echo "$symbols" | fold -w1 | shuf | head -n $s | tr -d '\n')
choice3=$(echo "$numbers" | fold -w1 | shuf | head -n $n | tr -d '\n')
password="$choice1$choice2$choice3"
final_password=$(echo "$password" | fold -w1 | shuf | tr -d '\n')
echo "Your generated password is: $final_password"