Skip to main content

Pretty Good Privacy Component

Create and translate encrypted messages

Component key: pgp

Description#

Pretty Good Privacy 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.

You can elect to encrypt or decrypt strings using either a password or a public/private key pair. RSA key pairs of any key size are compatible with these actions.

Actions#

Decrypt Message#

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

InputNotesExample
Input
Encrypted Message
text
/ Required
Notes
The message to be encrypted
Example
-----BEGIN PGP MESSAGE----- EXAMPLE== -----END PGP MESSAGE-----
Input
Private Key Passphrase
string
Notes
Provide a string passphrase for your private key if you are using a private key to decrypt the message
Example
 
Input
Password
string
Notes
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.
Example
P@s$w0Rd
Input
Private Key
text
Notes
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.
Example
-----BEGIN PGP PRIVATE KEY BLOCK----- EXAMPLE== -----END PGP PRIVATE KEY BLOCK-----

Output Example Payload#

{  "data": {    "data": "Hello, World!",    "filename": null,    "signatures": []  }}

Encrypt Message#

Encrypt a string message with a password or PGP public key | key: encryptString

InputNotesExample
Input
Message to Encrypt
text
/ Required
Notes
The message to be encrypted
Example
 
Input
Password
string
Notes
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.
Example
P@s$w0Rd
Input
Public Key
text
Notes
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.
Example
-----BEGIN PGP PUBLIC KEY BLOCK----- EXAMPLE== -----END PGP PUBLIC KEY BLOCK-----

Output Example Payload#

{  "data": "-----BEGIN PGP MESSAGE-----\n\nwy4ECQMI00WQkb8Me2XgxDrxbl9uNeh9qaaOnC4KXadQJXDOXNeh2YRED44i\nR8D30j4ByckgLL71R5h6jRVc7cZuLefo9/Kbaq2wBW4PprLiYmGJrik9dl1i\naoOZtaqXbJxfgUjTpxtxSSAOFf+zoA==\n=vFBz\n-----END PGP MESSAGE-----\n"}