PGP icon

PGP

PGP Node

Overview

This node performs PGP (Pretty Good Privacy) encryption and decryption operations, including signing and verification of messages. It supports both text and binary input types, with optional compression for binary data. Common use cases include securely encrypting messages or files, signing messages to ensure authenticity, decrypting received encrypted data, and verifying signatures to confirm the sender's identity.

Use Case Examples

  1. Encrypting a text message with a recipient's public key to ensure confidentiality.
  2. Decrypting an encrypted file received from a trusted source using a private key.
  3. Signing a document to provide proof of authorship.
  4. Verifying the signature of a received message to confirm it was not tampered with.

Properties

Name Meaning
Input Type Specifies whether the input data is text or binary, affecting how the node processes the data.
Compression Algorithm Selects the compression method applied to binary data before encryption or after decryption. Only applicable for binary input and certain operations.
Message The text message to be encrypted, decrypted, signed, or verified. Only shown when input type is text.
Binary Property Name The name of the binary property in the input data to process. Only shown when input type is binary.

Output

JSON

  • encrypted - Contains the encrypted text message when input is text and operation is encryption.
  • signature - Contains the signature string when signing text or encrypt-and-sign with separate signature.
  • decrypted - Contains the decrypted text message when input is text and operation is decryption.
  • verified - Boolean indicating if the signature verification was successful.

Dependencies

  • Requires PGP keys: a private key for signing and decrypting, and a public key for encrypting and verifying.

Troubleshooting

  • Error 'Private key is required for operation' indicates missing or invalid private key credential; ensure the private key is provided and correctly formatted.
  • Error 'Public key is required for operation' indicates missing or invalid public key credential; ensure the public key is provided and correctly formatted.
  • Decryption failures may occur if the message is corrupted or keys do not match; verify keys and message integrity.
  • Compression errors during decompression suggest a mismatch in the compression algorithm; confirm the correct algorithm is selected.

Discussion