-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakepass
More file actions
executable file
·26 lines (25 loc) · 821 Bytes
/
makepass
File metadata and controls
executable file
·26 lines (25 loc) · 821 Bytes
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
#!/bin/bash
#Password creation system that uses two seeds
#and generates a psuedo-random 20 character password.
echo "Enter website url or whatever seed you like:"
read SEED1
#prompts user for first seed
echo "Enter the password seed (or whatever seed you like):"
read SEED2
#prompts user for second seed
LENG=20
#checks if length is entered
echo using seed of $SEED1 + $SEED2
SEED1=$(echo $SEED1 | md5sum)
SEED2=$(echo $SEED2 | md5sum)
#SEED3=$(echo $HOME | md5sum)
#echos seeds and generates md5 sums of each seed
echo -e "Seeds scrambled, new seeds are\n $SEED1\n $SEED2\n \n\n"
#echos md5 sums of each seed
pass=$(echo "$SEED1$SEED2" | md5sum)
#gets final md5 sum to be used as password
POS=2
FINAL="${pass:$POS:$LENG}"
#cuts md5sum to $LENG characters
echo "You're final password is: M"$FINAL
#echos final password