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

Comments

Post a Comment

Popular posts from this blog

Citrix receiver on linux version LUbuntu

Installing 64 bit adobe in firefox