Linux or UNIX password protect files
Suppose you want to protect file pwd.txt gpg -c pwd.txt This will ask you to set new password and create a file called pwd.txt.gpg Now you can delete pwd.txt. If you want to retrieve pwd.txt, you can say gpg pwd.txt.gpg and it will ask you to enter password and create pwd.txt