Professional Documents
Culture Documents
HomeArticlesCommunityMy Profile
Search
Edit
Home
» Categories
» Computers and Electronics
» Software
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!
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
Article Tools
Share this Article:
Discuss
Print
Email
Edit
Send fan mail to authors
Thanks to all authors for creating a page that has been read 16,635 times.
Yes No
Related Articles
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
Recent Changes
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.
- collapse Things to Do
Write an Article
Edit this Article
Request a New Article
Answer a Request
Login for more!
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
http://www.wikihow.com/Batch-Decrypt-With-GNU-GPG 23/11/11