<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://freemwiki.com/index.php?action=history&amp;feed=atom&amp;title=How_to_Batch_Decrypt_With_GNU_GPG</id>
	<title>How to Batch Decrypt With GNU GPG - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://freemwiki.com/index.php?action=history&amp;feed=atom&amp;title=How_to_Batch_Decrypt_With_GNU_GPG"/>
	<link rel="alternate" type="text/html" href="https://freemwiki.com/index.php?title=How_to_Batch_Decrypt_With_GNU_GPG&amp;action=history"/>
	<updated>2026-11-10T19:44:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://freemwiki.com/index.php?title=How_to_Batch_Decrypt_With_GNU_GPG&amp;diff=4309&amp;oldid=prev</id>
		<title>Lukegao1: 创建页面，内容为“To batch decrypt with GNU GPG (GNU Privacy Guard), you can use a combination of command-line tools and shell scripting. Here&#039;s a step-by-step guide:  1. Create a folder where you will place all the encrypted files that you want to decrypt. 2. Open a terminal window and navigate to the folder where you created the encrypted files using the `cd` command. For example, if you created a folder called &quot;encrypted&quot; on your desktop, you can navigate to it by typing `cd…”</title>
		<link rel="alternate" type="text/html" href="https://freemwiki.com/index.php?title=How_to_Batch_Decrypt_With_GNU_GPG&amp;diff=4309&amp;oldid=prev"/>
		<updated>2023-03-21T08:21:07Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“To batch decrypt with GNU GPG (GNU Privacy Guard), you can use a combination of command-line tools and shell scripting. Here&amp;#039;s a step-by-step guide:  1. Create a folder where you will place all the encrypted files that you want to decrypt. 2. Open a terminal window and navigate to the folder where you created the encrypted files using the `cd` command. For example, if you created a folder called &amp;quot;encrypted&amp;quot; on your desktop, you can navigate to it by typing `cd…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;To batch decrypt with GNU GPG (GNU Privacy Guard), you can use a combination of command-line tools and shell scripting. Here&amp;#039;s a step-by-step guide:&lt;br /&gt;
&lt;br /&gt;
1. Create a folder where you will place all the encrypted files that you want to decrypt.&lt;br /&gt;
2. Open a terminal window and navigate to the folder where you created the encrypted files using the `cd` command. For example, if you created a folder called &amp;quot;encrypted&amp;quot; on your desktop, you can navigate to it by typing `cd ~/Desktop/encrypted`.&lt;br /&gt;
3. Create a new text file in the same folder and add the file names of the encrypted files, one per line. For example, if you have two encrypted files named &amp;quot;file1.txt.gpg&amp;quot; and &amp;quot;file2.txt.gpg&amp;quot;, your text file should look like this:&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
file1.txt.gpg&lt;br /&gt;
file2.txt.gpg&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
4. Save the text file and name it something like &amp;quot;encrypted_files.txt&amp;quot;.&lt;br /&gt;
5. Open a text editor and create a new shell script. For example, you can create a file called &amp;quot;batch_decrypt.sh&amp;quot;.&lt;br /&gt;
6. In the shell script, add the following code:&lt;br /&gt;
&lt;br /&gt;
```bash&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
while read line; do&lt;br /&gt;
  echo &amp;quot;Decrypting $line&amp;quot;&lt;br /&gt;
  gpg --decrypt &amp;quot;$line&amp;quot;&lt;br /&gt;
done &amp;lt; encrypted_files.txt&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
This code will read each line in the &amp;quot;encrypted_files.txt&amp;quot; file and decrypt the corresponding file using the `gpg --decrypt` command. The `echo` command will print the name of the file that is being decrypted for each iteration of the loop.&lt;br /&gt;
&lt;br /&gt;
7. Save the shell script and make it executable by running the following command:&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
chmod +x batch_decrypt.sh&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
8. Run the shell script by typing `./batch_decrypt.sh` in the terminal window. This will start the decryption process for each file listed in the &amp;quot;encrypted_files.txt&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
9. Once the script has finished running, you should find the decrypted files in the same folder where the encrypted files were located.&lt;/div&gt;</summary>
		<author><name>Lukegao1</name></author>
	</entry>
</feed>