PGP Module
  • 06 Oct 2022
  • 2 Minutes to read
  • Dark
    Light

PGP Module

  • Dark
    Light

Article Summary

Overview


The PGP Module provides Flows steps that can be used to encrypt, decrypt sign or verify messages or files through PGP. The module cannot be used to generate PGP public or private keys. These keys will need to be generated outside of Decisions, using other third party systems.

Prerequisites

  • Installation of the PGP module.
  • General knowledge of PGP
  • A generated public and private PGP key,
    • Public Key: locks the message and converts the key into an encrypted file.
    • Private Key: Unlocks the encrypted file key and converts the message back into plain text.

Example PGP Encryption/Decryption

PGP Steps

Clear Sign File

The Clear Sign File step allows users to sign a file using a private key digitally but keeps the file contents in plain text.

Input ParameterDescription
AlgorithmAlgorithm parameter to use. Uses Constant options of MD5, Sha1, RipeMD160, DoubleSha, MD2, Tiger192, and Havel5pass160.
DataFile to be signed
Output File NameFilename to use after the file is completed
Private KeyGenerated key for encrypting or decrypting a file
Private Key PasswordPassword for the private key





Decrypt File


This Decrypt File step takes in the encrypted file output and uses the private key password to unlock the private key. The Decrypt File step then uses the private key to decrypt the encrypted file.

Input ParameterDescription
FileEncrypted file output
Private KeyGenerated key for encrypting or decrypting a file
Private Key PasswordPassword for the private key


Decrypt String


The Decrypt String step takes in the data from the Encrypted String output and uses the private Key Password to unlock the private key string. After the private key is unlocked, the message is decrypted into a string using plain text.

Input ParameterDescription
DataEncrypted String output
Private Key PasswordPassword for the private key
Private Key StringString value of the private key




Encrypt File


The Encrypt File step takes in data contents and encrypts the message.

Input ParametersDescription
BinaryState whether the input file is a binary type
DataFile data to be encrypted
Internal File NameThe filename of the file when decrypting the file
Output File NameThe filename of the file after being encrypted
Public KeyThe public key used to encrypt file

 


Encrypt String


The Encrypt String step takes in data and encrypts the data into a string with a public Key String. It allows a user to view the Public Key String in plain text.

Input ParameterDescription
DataString value to encrypt
Public Key StringString value of public key



Sign and Encrypt File

The Sign and Encrypt File step uses a private key to digitally sign a file and a public key to encrypt it.

Input ParameterDescription
AlgorithmAlgorithm parameter to use. Uses Constant options of MD5, Sha1, RipeMD160, DoubleSha, MD2, Tiger192, and Havel5pass160.
BinaryState whether the input file is a binary type
DataString value to encrypt
Internal File LabelFile label
Output File NameName for file after sign and encryption
Private KeyGenerated key for encrypting or decrypting a file
Private Key PasswordPassword for the private key
Public KeyPublic key used to encrypt file
With Integrity CheckPerform an integrity check on file



Sign File Step


The Sign File step uses a private key to digitally sign a file. This Step outputs a signed text file and then a Decrypt File step is needed to decrypt and read the file.

Input ParameterDescriptions
AlgorithmAlgorithm parameter to use. Uses Constant options of MD5, Sha1, RipeMD160, DoubleSha, MD2, Tiger192, and Havel5pass160.
BinaryState whether the input file is a binary type
DataString value to encrypt
Internal File LabelFile label
Output File NameName for file after signing
Private KeyGenerated key for encrypting or decrypting a file
Private Key PasswordPassword for the private key



Verify File


The Verify File step takes in the output data and then uses the public key to verify that the digital signature is authentic.

Input ParameterDescription
DataOutput contents of Sign FIle step
Sender Public KeySender public key file 






Was this article helpful?