simple gpg password protected file encryption example

Creating the file:

vi passwords.txt

Encrypt the file:

gpg -c -a passwords.txt

and enter a password when prompted, >now delete the original plain text file

rm passwords.txt

Viewing the file:

to view the file with less

gpg -d passwords.txt.asc | less

and enter the password when prompted

Editing the file:

To edit the password file decrypt the file to plain txt

gpg passwords.txt.asc

this will place a plain text file call passwords.txt in the current directory

Justin Kelly

Justin Kelly

Data Engineeer, Business Analytics, Web Developer, Library Technology specialising in PHP and Tableau

Based in Melbourne, Australia

Feel free to contact me or _justin_kelly