---
title: "Pretty Good Privacy Connector"
slug: "pretty-good-privacy-connector"
description: "Use the Pretty Good Privacy (PGP) connector in Lansweeper Flow Builder to encrypt and decrypt strings in your workflows for secure data communication."
updated: 2026-07-17T15:46:42Z
published: 2026-06-12T15:06:14Z
canonical: "docs.lansweeper.com/pretty-good-privacy-connector"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lansweeper.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pretty Good Privacy Connector

Note on third‑party tools

              

We aim to provide accurate and helpful details about third‑party tools, but we can’t guarantee that this information is always complete or up to date. If you notice any discrepancies, feel free to share them in the feedback section below. For the most reliable information, please always refer to the third‑party tool’s official documentation.

[Pretty Good Privacy](https://project.microsoft.com/en-US/) is an encryption program that provides cryptographic privacy and authentication for data communication. This component allows you to encrypt and decrypt strings in an integration.

## Actions

### Decrypt File

Decrypt a file with a password or PGP private key and passphrase

| Input | Comments | Default |
| --- | --- | --- |
| File to Decrypt | This should be a reference to a previous step that returns binary data. |  |
| Password | Provide a string password to encrypt the message. You can elect to encrypt the message with a password or public PGP key, but not both. |  |
| Private Key | Provide a string PGP pviate key to decrypt the message. You can elect to decrypt the message with a password or private PGP key, but not both. |  |
| Private Key Passphrase | Provide a string passphrase for your private key if you are using a private key to decrypt the message. |  |

### Decrypt Message

Decrypt a string message with a password or PGP private key and passphrase

| Input | Comments | Default |
| --- | --- | --- |
| Encrypted Message | The message to be decrypted. |  |
| Password | Provide a string password to encrypt the message. You can elect to encrypt the message with a password or public PGP key, but not both. |  |
| Private Key | Provide a string PGP pviate key to decrypt the message. You can elect to decrypt the message with a password or private PGP key, but not both. |  |
| Private Key Passphrase | Provide a string passphrase for your private key if you are using a private key to decrypt the message. |  |

### Encrypt File

Encrypt a file with a password or PGP public key

| Input | Comments | Default |
| --- | --- | --- |
| File to Encrypt | This should be a reference to a previous step that returns binary data. |  |
| Filename | The name of the file to encrypt |  |
| Password | Provide a string password to encrypt the message. You can elect to encrypt the message with a password or public PGP key, but not both. |  |
| Public Key | Provide a string PGP public key to encrypt the message. You can elect to encrypt the message with a password or public PGP key, but not both. |  |

### Encrypt Message

Encrypt a string message with a password or PGP public key

| Input | Comments | Default |
| --- | --- | --- |
| Message to Encrypt | The message to be encrypted. |  |
| Password | Provide a string password to encrypt the message. You can elect to encrypt the message with a password or public PGP key, but not both. |  |
| Public Key | Provide a string PGP public key to encrypt the message. You can elect to encrypt the message with a password or public PGP key, but not both. |  |
