I usually encrypt files with GPG with symmetric algorithms when I have to transmit files over insecure channel: for example I encrypt backup files stored at my USB stick and I’m sure that if it’s stolen or lost my files are in safety.

Encryption without user intervention can be used when you wish to perform automatic (runs with cron) backup procedure and protect backup files.

To encrypt file /tmp/file.tgz by symmetric AES algorithm (256 is a key lenght) with one command please use the following command:

echo password | gpg --batch -q --passphrase-fd 0 --cipher-algo AES256 -c /tmp/file.tgz

Previous command will create file.tgz.gpg that can be extracted automatically by next one:

echo password | gpg --batch -q -o /tmp/file.tgz --passphrase-fd 0 --decrypt /tmp/file.tgz.gpg

 

15 Comments

 

  1. February 18, 2008  5:35 pm by thehurley Reply

    Thank you, just what I was looking for!

  2. February 4, 2010  1:43 am by Kris Wolters Reply

    Just bookmarked this blog!Glad i found it.

  3. May 25, 2010  2:04 pm by Marko Reply

    Thanks man :) this is great help ~!

  4. January 3, 2011  7:41 am by chapa3 Reply

    Ok so I am not going to be untruthful with you, I just need a backlink. Thanks for understanding!

  5. April 4, 2011  8:34 pm by Eileen Tanweer Reply

    I cant say Im in complete accordance, thanks are in order for taking the time to think of it

  6. April 27, 2011  9:18 pm by battlestar galactica cast crew Reply

    I’ve recently started a site, and the info you provide on this website has helped me a lot. Thanks for all of your time & work.

  7. April 28, 2011  12:23 pm by ghost perfume Reply

    I like what you guys are doing. Such intelligent work and reporting! Carry on with the superb works guys. I have incorporated you guys to my blogroll. I think it will improve the value of my site. :)

  8. April 28, 2011  12:43 pm by casino Reply

    Wow! This can be one of the most beneficial blogs we've ever come across on thesubject. Actually excellent article! I am also an expert in this topic therefore I can understand your hard work.

  9. April 29, 2011  4:53 pm by cheapest car insurace Reply

    Thank you for a very interesting web site. What else could I get that kind of information written in such an ideal manner? I have a mission that I am simply now running on, and I've been on the look out for such information.

  10. May 3, 2011  1:55 am by PayPal Concert Tickets Reply

    Hi there. I found your website by way of Google while looking for a related subject, your website got here up. It seems to be good. I've bookmarked it in my google bookmarks to come back later.

  11. May 8, 2011  12:00 am by 4inkjets promotional code Reply

    You, my pal, ROCK! I found just the information I already searched all over the place and just could not find it. What an ideal web-site.

  12. March 29, 2012  5:01 am by 802.11 adapter Reply

    Good post. I learn something totally new and challenging on sites I stumbleupon on a daily basis. It's always helpful to read through content from other writers and practice a little something from their sites.

  13. March 29, 2012  6:23 pm by fruit mocking party Reply

    Incredible! This blog looks just like my old one! It's on a entirely different topic but it has pretty much the same layout and design. Superb choice of colors!

  14. March 30, 2012  7:32 pm by fruit mocking party Reply

    Hi there! Do you know if they make any plugins to help with Search Engine Optimization? I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good results. If you know of any please share. Thanks!

Leave a reply

 

Your email address will not be published.