File Operations
Working on files is much like working on text: you can encrypt, decrypt, sign, and verify them. The difference is that files are handled as binary input and output. You do all of this in the File Panel.
Open Files in the File Panel
Section titled “Open Files in the File Panel”The File Panel is where you work on files. There are two ways to open it.
Using the Open button:
- In the main window, click Open and choose Open File or Open Directory.
- Pick the file or folder you want.
- The File Panel opens. If you picked a file, it is highlighted and ready. If you picked a folder, you see its contents and can choose files inside.

Using the File Panel button:
- Click the File Panel button in the top toolbar.
- Choose a folder in the dialog.
- A new File Panel tab opens showing that folder. Click the file you want.

Getting Around the File Panel
Section titled “Getting Around the File Panel”The path bar across the top shows the folder you are in, one step at a time. Click any step to jump straight to it. There is a Home step at the start.
To type a path instead, click the edit button at the end of the path bar, or
press Ctrl+L. You can use ~ for your home folder.
The rest of the toolbar gives you:
- Up: go to the folder above. Backspace does the same.
- Refresh: read the folder from disk again.
- Volumes: jump to a USB drive or another mounted disk.
- Show: choose what the list shows, and make a new folder or file.
- Filter: type here to show only files whose name contains that text.
Along the bottom you can see how many items are in the folder, how many you have selected, and how much space is left on the disk.
To delete something, right-click it and choose Move to Trash. GpgFrontend asks first.
Encrypt, Decrypt, Sign, or Verify a File
Section titled “Encrypt, Decrypt, Sign, or Verify a File”Once a file is selected in the File Panel, pick the right key in the Key Toolbox and click the matching toolbar button:
- Encrypt: choose the recipient’s public key, then click Encrypt.
- Decrypt: make sure your private key is in your keyring, then click Decrypt. You don’t need to pick a key; GpgFrontend finds the right one.
- Sign: choose your private key, then click Sign.
- Verify: make sure the sender’s public key is in your keyring, then click Verify.


Drag and Drop Files
Section titled “Drag and Drop Files”The File Panel supports drag-and-drop, an easy way to bring files into your working folder or move them around without using the system file dialog.
Where Items Are Dropped
Section titled “Where Items Are Dropped”Where an item lands depends on what is under the cursor when you let go:
- Drop onto a folder to place the items inside that folder.
- Drop onto a file to place the items in that file’s parent folder.
- Drop onto empty space to place the items in the folder shown in the panel.
The target folder must be writable. If it is not, the drop is rejected and a message explains why.
Copy Files Into the Panel
Section titled “Copy Files Into the Panel”Drag one or more files or folders from your system’s file manager (Finder, Windows Explorer, or your Linux file manager) and drop them onto the File Panel. The items are copied in, leaving the originals in place. This is a quick way to gather the files you want to work on.
Move Files Within the Panel
Section titled “Move Files Within the Panel”Drag files or folders from one spot in the File Panel and drop them onto a different folder in the same panel. The items are moved to that folder.
Confirmation and Safeguards
Section titled “Confirmation and Safeguards”Before it moves or copies anything, GpgFrontend asks you to confirm, showing the item name (or count) and the destination folder. A few safeguards prevent common mistakes:
- Dropping items back into their own folder does nothing.
- A folder can’t be moved or copied into itself or one of its own subfolders.
- If an item with the same name already exists in the target folder, that item is skipped and you are told.
After a successful drop, the panel refreshes, selects the new or moved items, and shows how many items were handled.
Work on Many Files at Once (Batch Mode)
Section titled “Work on Many Files at Once (Batch Mode)”By default the File Panel works on one file at a time. Turn on Batch Mode to handle several at once.
- Click Switch Batch Mode, the segmented icon at the top-right of the File Panel toolbar. (Hover over it to see the “Switch Batch Mode” tooltip.)
- Select several files with Ctrl+Click or Shift+Click.
- Click Encrypt, Decrypt, Sign, or Verify. The action applies to every selected file.
Batch Mode is handy when you have many files to process at once.


Encrypt or Decrypt a Whole Folder
Section titled “Encrypt or Decrypt a Whole Folder”GpgFrontend can encrypt and decrypt an entire folder, keeping its structure intact.
Encrypt a Folder
Section titled “Encrypt a Folder”When you encrypt a folder, GpgFrontend:
- Packs it into a single
.tararchive (using the tar tool), combining all files and subfolders. - Encrypts that archive, giving you a
.tar.gpg(binary) or.tar.asc(ASCII) file, depending on your output mode.
This works like the gpg-zip tool: packing and encrypting in one step. The result
is one file that holds the whole folder, ready to store or send.
Decrypt a Folder Archive
Section titled “Decrypt a Folder Archive”When you decrypt a .tar.gpg or .tar.asc file, GpgFrontend:
- Decrypts it back into the
.tararchive. - Unpacks that archive into a folder in the current directory, restoring the original structure.
You don’t need to unpack anything by hand.
File Types and Output Format
Section titled “File Types and Output Format”File Extensions
Section titled “File Extensions”Knowing the file extensions helps you keep track of encrypted and signed files:
- .asc: ASCII-armored. A text-friendly format that can hold encrypted data or signatures.
- .gpg: Binary. Encrypted files, or combined encrypted and signed files. Smaller than ASCII.
- .sig: Binary signature file, used for signatures only.
Choose ASCII or Binary Output
Section titled “Choose ASCII or Binary Output”GpgFrontend saves files in binary by default (since version 2.0.4; older versions used ASCII). Binary files are smaller. Choose ASCII when you need text-friendly output, for example to paste into an email.
Change it in Settings:
- Open Settings and go to the General section.
- Find the option Use Binary Mode for File Operations.
- Check it for binary (
.gpg/.sig), or uncheck it for ASCII (.asc).

Or toggle it from the File Panel:
- In the File Panel toolbar, open the Show menu.
- Tick Use ASCII Armor. You then get
.ascfiles instead of.gpgor.sig.
This is a faster way to switch output modes without opening the main settings.

If an Operation Is Interrupted
Section titled “If an Operation Is Interrupted”Since v2.2.2, GpgFrontend writes its result to a temporary file first and only puts it in place once it is complete.
If an operation fails or is interrupted, you get no output file at all, rather than a half-written one sitting next to your original. Your input file is never touched either way.