added support for multiple profile
This commit is contained in:
1
encryipt-variable-bash/bruh
Normal file
1
encryipt-variable-bash/bruh
Normal file
@ -0,0 +1 @@
|
||||
|
11
encryipt-variable-bash/openssh.sh
Normal file
11
encryipt-variable-bash/openssh.sh
Normal file
@ -0,0 +1,11 @@
|
||||
read -p 'Username: ' BML_USERNAME
|
||||
read -s -p 'Enter Pin: ' PIN
|
||||
read -s -p 'Repeat Pin: ' REPEAT_PIN
|
||||
|
||||
if [ "$PIN" = "$REPEAT_PIN" ]
|
||||
then
|
||||
echo $BML_USERNAME | PASS=$(openssl aes-256-cbc -a -salt -pass pass:$PIN)
|
||||
echo $PASS > bruh
|
||||
else
|
||||
echo "Pin do not match"
|
||||
fi
|
Reference in New Issue
Block a user