PGP icon

PGP

PGP Node

Decrypt and Verify

AI-generated

Overview

This node operation decrypts a PGP encrypted message and verifies its signature. It supports both text and binary input types, with optional embedded signature handling and compression algorithms for binary data. This operation is useful for securely receiving and validating encrypted messages, ensuring both confidentiality and authenticity.

Use Case Examples

  1. Decrypt and verify a PGP encrypted text message with an embedded signature to confirm the sender's identity.
  2. Decrypt a binary PGP encrypted file and verify its detached signature to ensure the file's integrity and origin.

Properties

Name Meaning
Input Type Specifies whether the input message is text or binary data.
Compression Algorithm Specifies the compression algorithm used on binary data before encryption or after decryption. Only applicable for binary input and certain operations.
Message The PGP encrypted message text to decrypt and verify. Used when input type is text.
Binary Property Name The name of the binary property containing the encrypted data to process. Used when input type is binary.
Embedded Signature Indicates whether the encrypted message contains an embedded signature.
Signature The detached PGP signature text used for verification when input is text and signature is not embedded.
Binary Property Name (Signature) The name of the binary property containing the detached signature when input is binary and signature is not embedded.

Output

JSON

  • decrypted - The decrypted message text or binary data in base64 encoding.
  • verified - Boolean indicating whether the signature verification was successful.

Dependencies

  • Requires PGP private and public keys credentials, including optional passphrase for the private key.

Troubleshooting

  • Ensure the private key and public key credentials are valid and correctly formatted; invalid keys will cause errors.
  • If the message cannot be decrypted, verify that the correct private key and passphrase are used.
  • If the message cannot be uncompressed, check that the correct compression algorithm is selected.
  • If signature verification fails, ensure the correct public key is used and the signature matches the message.
  • For binary input, ensure the specified binary property names exist and contain valid data.

Discussion