Code: Select all
#!/bin/sh
DIR="/mnt/sda2/MyFiles/OfficeDocs"
if [ ! -e $1 ]; then
bcrypt "${DIR}/pass.txt.bfe"
grep -i $1 "${DIR}/pass.txt"
else
bcrypt "${DIR}/pass.txt.bfe"
vim "${DIR}/pass.txt"
fi
bcrypt "${DIR}/pass.txt"
Code: Select all
#!/bin/sh
DIR="/mnt/sda2/MyFiles/OfficeDocs"
if [ ! -e $1 ]; then
bcrypt "${DIR}/pass.txt.bfe"
grep -i $1 "${DIR}/pass.txt"
else
bcrypt "${DIR}/pass.txt.bfe"
vim "${DIR}/pass.txt"
fi
bcrypt "${DIR}/pass.txt"
"Finally, we learned that if we want to store passwords securely we have three reasonable options: PHK's MD5 scheme, Provos-Maziere's Bcrypt scheme, and SRP. We learned that the correct choice is Bcrypt."jamesjeffries2 wrote:Alternatively you could only store a hash of the password then compare the hash of the password entered by the user to the one stored in the file. That way you never have to store the password in plain text. Read this for more information about why this is good: http://www.codinghorror.com/blog/2007/0 ... ectly.html