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

Steps

  1. 1
    Make sure you have a working GNU GPG installation.
  2. 2
    Know your passphrase.
    Advertisement
  3. 3
    In Windows go to the command Prompt. This is either Start|Run Command or CMD depending on your Windows version.
  4. 4
    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.
  7. Advertisement

Warnings

  • thisismypassphrase = YOUR passphrase. Don't tell anyone the passphrase unless they have your youngest puppy hostage, even then think twice about it!
    ⧼thumbs_response⧽
Advertisement

About This Article

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 13 people, some anonymous, worked to edit and improve it over time. This article has been viewed 78,772 times.
How helpful is this?
Co-authors: 13
Updated: December 23, 2021
Views: 78,772
Categories: Software
Advertisement