Have you ever needed to encrypt and password protect a file?
My super-sophisticated method of password saving....
vi my-passwords.txt
This is just a simple text file with about 40 sets of credentials.
Each line looks something like this.
Site Username Password Security Question answer.
=============================================================
linux.org [email protected] sUp3r$EcretP@s$w0rd 42
google.com [email protected] n0ts0$ec3tP@s$w0rd fido
.....
more lines of stuff here
.....
I then encrypt this file.
This will prompt me for password, and I'll need the password to unzip it.
I have used gpg in the past.
Again, this will ask for a password when you decrypt it.
But my goto these days is openssl.
Again, you are prompted for a password.
To open it...
You still have to remember at least one password for these methods, but I suppose that's better than trying to remember 30 or 40
different sets of passwords. I will confess, some passwords are simply stored in my browser. Not the most secure method I know,
but convenient.
All of the servers where I work have very complex password policies. They have to be so many characters long, they have to have
uppercase, lowercase, numbers, special characters, and they expire every couple of months. You can't repeat passwords, and you can't
increment passwords. ( for example you can't change it from password1 to password2 ).
I have noticed, that after about three days of typing the same password in over and over again, I develop something called finger memory.
I don't even know what the password is after a week or two. But my fingers do. I have to type it into a text file to see what it is.
I hope this is useful to someone, I am always open to suggestions and better ideas. I have used password managers like lastpass
but I'm trusting them less and less these days. I will say, you should make a backup of your password file. I keep a copy local on
my PCs, but I also have a backup copy on a USB drive or two. Yeah, it's a pain to manage sometimes, but easier than remembering
40 different passwords. In reality I use ansible to manage this for me automatically.
My super-sophisticated method of password saving....

vi my-passwords.txt
This is just a simple text file with about 40 sets of credentials.
Each line looks something like this.
Site Username Password Security Question answer.
=============================================================
linux.org [email protected] sUp3r$EcretP@s$w0rd 42
google.com [email protected] n0ts0$ec3tP@s$w0rd fido
.....
more lines of stuff here
.....
I then encrypt this file.
Code:
zip -e mypasswords.zip my-passwords.txt
This will prompt me for password, and I'll need the password to unzip it.
I have used gpg in the past.
Code:
gpg -c filename
Again, this will ask for a password when you decrypt it.
Code:
gpg filename.gpg
But my goto these days is openssl.
Code:
openssl enc -aes-256-cbc -salt -in my-passwords.txt -out my-passwords.enc
Again, you are prompted for a password.
To open it...
Code:
openssl enc -d -aes-256-cbc -in mypasswords.enc -out my-passwords.txt
You still have to remember at least one password for these methods, but I suppose that's better than trying to remember 30 or 40
different sets of passwords. I will confess, some passwords are simply stored in my browser. Not the most secure method I know,
but convenient.
All of the servers where I work have very complex password policies. They have to be so many characters long, they have to have
uppercase, lowercase, numbers, special characters, and they expire every couple of months. You can't repeat passwords, and you can't
increment passwords. ( for example you can't change it from password1 to password2 ).
I have noticed, that after about three days of typing the same password in over and over again, I develop something called finger memory.
I don't even know what the password is after a week or two. But my fingers do. I have to type it into a text file to see what it is.
I hope this is useful to someone, I am always open to suggestions and better ideas. I have used password managers like lastpass
but I'm trusting them less and less these days. I will say, you should make a backup of your password file. I keep a copy local on
my PCs, but I also have a backup copy on a USB drive or two. Yeah, it's a pain to manage sometimes, but easier than remembering
40 different passwords. In reality I use ansible to manage this for me automatically.
Last edited: