Sign up ×  I would like to set up a couple of bash scripts to
encrypt and decrypt a master text file containing passwords for
banking, work, etc. for the purpose of editing it and displaying
the entries when I need to look something up. I would prefer to
use as few third-party sources as possible, and have a possible
solution (?) using just a standard terminal:    1. openssl   2.
text editor of choice   3. shred  My question is, can anyone
provide a reason why this is not a good idea, from a security
point of view? By that I mean I would like to avoid losing those
passwords to casual hacking attempts (I give up if the NSA comes
a-knocking).  Let me explain in more detail. I have 3 bash
scripts listed below, in which $PFILE is a path variable
pointing to the directory containing of the password file, and
passfile.enc is the encrypted file (the names of the victims
have been changed to protect their identity).    1. opens a
predetermined password file encrypted using AES 256-bit
encryption via openssl. It opens