You are on page 1of 5

How to Batch Decrypt With GNU GPG - wikiHow Page 1 of 5

the how to manual that you can edit

Sign Up or Log In or Log In via

Circle wikiHow on Google+

HomeArticlesCommunityMy Profile

Search

Edit

Home
» Categories
» Computers and Electronics
» Software

How to Batch Decrypt With GNU GPG


Edited byScryptn and 6 others

Article
Edit Discuss History

One question frequently asked in GPG news groups is "How do I decrypt more than one file at a time?"

Edit Steps
1. 1
Make sure you have a working GNU GPG installation.
2. 2
Know your passphrase.
3. 3
In Windows go to the command Prompt. This is either Start|Run Command or CMD depending on your Windows version.
4. 4

http://www.wikihow.com/Batch-Decrypt-With-GNU-GPG 23/11/11
How to Batch Decrypt With GNU GPG - wikiHow Page 2 of 5
In Windows Command Prompt change directory until you are in the directory with the files you wish to decrypt.
5. 5
Use this command: echo thisismypassphrase|gpg --batch --passphrase-fd 0 --decrypt-files *.gpg (or *.pgp, or *.asc depending on the files)
6. 6
It is important to note there is NO SPACE after your passphrase and the pipe. The echo command sends your passphrase to GPG
when GPG requires the passphrase.

Edit Tips
See http://www.gnupg.org/ for more information
If your files are named something like file1.gpg file2.gpg and you know what the real ext should be (like .txt or .doc, etc) you can rename
them all with the following command: ren *.gpg *.txt.gpg.
NOTE: this will change any file in that directory with .gpg ext to .txt.gpg. So be careful! One reason to do this is if you use GPG it will
decrypt File.gpg to File with no ext. There are command line phrases to get the embedded file name from the file but you can find that out
on http://www.gnupg.org

Edit Warnings
thisismypassphrase = YOUR passphrase. Don't tell anyone the passphrase unless they have your youngest puppy hostage, even then think
twice about it!

Edit Related wikiHows


How to Choose Your First Gnu/Linux Distribution
How to Program Using GNU Emacs
How to Connect to Gnuella Using Frostwire
How to Compile a C Program Using the GNU Compiler (GCC)

Articles for You to Write


Here is a list of suggested articles that have not yet been written. You can help by researching and writing one of these articles. To get started writing one of
these articles, click on the red link of a title below.

How to Create a Puzzle in Macromedia Flash 9


How to Sign up for Yahoo Music Unlimited
How to Print Photos to a Photo Inkjet Printer
How to Use the Magic Wand Tool in Photoshop
How to Post Your Resume on America's Job Bank

http://www.wikihow.com/Batch-Decrypt-With-GNU-GPG 23/11/11
How to Batch Decrypt With GNU GPG - wikiHow Page 3 of 5

Article Info
Last edited:
July 20, 2011 by BurningIce

Categories:
Software

Recent edits by: JKL1234, Teresa, Webster (see all)

Article Tools
Share this Article:

Discuss
Print
Email
Edit
Send fan mail to authors

+ Embed this: Republish this entire article on your blog or website.

Thanks to all authors for creating a page that has been read 16,635 times.

Was this article accurate?

Yes No

Thank the Authors

Give this article a +1

Write An Article Random Article

Follow wikiHow on facebook

Related Articles

Migrate to Open Source Software

http://www.wikihow.com/Batch-Decrypt-With-GNU-GPG 23/11/11
How to Batch Decrypt With GNU GPG - wikiHow Page 4 of 5
Use Ccleaner
Gauge the Quality of Software Products
Unlock Password Protected PDF File with Recover PDF Password

Featured Articles

Make a Turkey Pop up Card (Robert Sabuda Method)


Make Green Bay Packers Jello Shots

Make an Essay Appear Longer Than It Is

Volunteer to Help During Thanksgiving

Recent Changes

Want to join in?

Meet a Community Member

Meet Jordan who in just over a year has made over 17,000 edits, started 37 articles, and patrolled more than 178,000 changes on wikiHow. He has also
received a barnstar in recognition of his achievements here.

Join The Community

- collapse Things to Do

Write an Article
Edit this Article
Request a New Article
Answer a Request
Login for more!

+ expand Places to Visit

Follow Us On...

http://www.wikihow.com/Batch-Decrypt-With-GNU-GPG 23/11/11
How to Batch Decrypt With GNU GPG - wikiHow Page 5 of 5
the how to manual that you can edit

z Home
z About wikiHow
z Terms of Use
z RSS
z Site map

Search

Explore Categories

z Arts and Entertainment


z Cars and Other Vehicles
z Computers and Electronics
z Education and Communications
z Family Life
z Finance and Business
z Food and Entertaining
z Health
z Hobbies and Crafts
z Holidays and Traditions
z Home and Garden
z Other
z Personal Care and Style
z Pets and Animals
z Philosophy and Religion
z Relationships
z Sports and Fitness
z Travel
z wikiHow
z Work World
z Youth

All text shared under a Creative Commons License.


Powered by Mediawiki.

http://www.wikihow.com/Batch-Decrypt-With-GNU-GPG 23/11/11

You might also like