---
title: PGP encryption
description: Encrypt files securely using a PGP public key for safe transmission and storage.
category: File transformations
tags: [encryption, pgp, file protection, data security]
---

# PGP encryption

## Description

The **PGP Encryption** activity securely encrypts files using a PGP (Pretty Good Privacy) public key.  
This ensures that the data is protected during transmission or storage, and only the intended recipient with the corresponding private key can decrypt it.

> **Use Case**:  
> Send sensitive files over email, cloud storage, or public channels with assurance that only authorized users can access the contents.

---

## Input

| Type | Description         |
| ---- | ------------------- |
| File | Any file to encrypt |

---

## Output

| Type | Description                       |
| ---- | --------------------------------- |
| File | PGP-encrypted file (e.g., `.pgp`) |

---

## Configuration Fields

| Field Name               | Required | Description                                                                                                              |
| ------------------------ | -------- | ------------------------------------------------------------------------------------------------------------------------ |
| **Public Key File Path** | Yes      | Path to the PGP public key file used for encryption. Only the holder of the matching private key can decrypt the result. |

---

## Sample Input

_Not Applicable_

---

## Sample Configuration

| Field Name           | Example Value                  |
| -------------------- | ------------------------------ |
| Public Key File Path | `/keys/partner-public-key.asc` |

---

## Sample Output

Encrypted files with a `.pgp` or `.gpg` extension.

| Original File Name | Encrypted File |
| ------------------ | -------------- |
| report.xlsx        | [`download`]   |
| invoice.pdf        | [`download`]   |

> The output files can be downloaded, shared, or stored as needed — only decryptable with the correct private key.
