Encrypt file with PGP
Using the PGP encryption tool in Workato recipe, you can perform common cryptographic functions like encrypting and decrypting files, based on the common PGP standard. Under the hood, we use AES256 cipher algorithm and SHA256 digest algorithm.
Depending on what operation you wish to perform, you may need to provide the public key, private key, or both keys to setup the PGP encryption tool.
Follow the instructions below to generate new PGP keys if you do not have a set already.
Generating PGP keys
Download and install the most recent version of the GPG command line tools for your operating system.
Open Terminal or Command Prompt.
Use the command below to generate a PGP key pair:
Enter your user ID information. Make sure to enter a valid name and email address.
Enter a secure passphrase. Remember this passphrase, you will need to use it later to setup PGP encryption tool.
Use the command below to list PGP keys for which you have both a public and private key.
gpg --list-secret-keys --keyid-format LONG
From the list of PGP keys, copy the PGP key ID you'd like to use. In this example, the PGP key ID is
Use the commands below to print out Public Key and Private Key, substituting in the PGP key ID you'd like to use. In this example, the PGP key ID is
gpg --armor --export 7F87F1F21EEAAAB9
gpg --armor --export-secret-key 7F87F1F21EEAAAB9