Password pretected files in Linux

In windows, zip can compresses, encrypts (password-protect) files. The same can be done in Linux, (even more)

for eamples

tar cvpf Pics.tar Pictures/

gpg -c -o Pics.tar.gpg  Pics.tar

or in one line

tar cvp Pictures/ | gpg -c -o Pics.tar.gpg

password is asked twice

to un-tar or use files of the tar,

first decrypt this file

gpg –decrypt -o out.tar Pics.tar.gpg

password is asked

then uncompress/un-tar files

tar xvf out.tar

or in one line

gpg –decrypt Pics.tar.gpg | tar xvf  –

password is asked prior to further actions

Of course, there are more options  in gpg applications


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s