simple gpg password protected file encryption example
Creating the file:
vi passwords.txtEncrypt the file:
gpg -c -a passwords.txt
and enter a password when promptednow delete the original plain text file
rm passwords.txtViewing the file:
to view the file with less
and enter the password when promptedEditing the file:
gpg -d passwords.txt.asc | less
and enter the password when promptedEditing the file:
To edit the password file decrypt the file to plain txt
this will place a plain text file call passwords.txt in the current directory
gpg passwords.txt.asc
this will place a plain text file call passwords.txt in the current directory