PGP icon

PGP

PGP Node

Overview

This node performs PGP (Pretty Good Privacy) cryptographic operations including encryption, decryption, signing, and verification of messages or binary data. It supports operations such as decrypt-and-verify, encrypt-and-sign, and standalone encrypt, decrypt, sign, or verify. The node can handle both text and binary inputs, with optional compression for binary data. It is useful for securely exchanging messages or files, ensuring confidentiality, integrity, and authenticity. For example, it can decrypt and verify a signed encrypted message received from a trusted sender, or encrypt and sign a message before sending it securely.

Use Case Examples

  1. Decrypt and verify a signed encrypted email message to confirm its authenticity and read its content.
  2. Encrypt and sign a file before sending it to ensure only the recipient can read it and verify the sender.
  3. Sign a text message to provide a verifiable signature without encryption.

Properties

Name Meaning
Input Type Specifies whether the input is text or binary data.
Compression Algorithm Compression method applied to binary data during encryption or decryption.
Message The text message to be processed (used when input type is text).
Binary Property Name Name of the binary property containing the data to process (used when input type is binary).
Signature The PGP signature text used for verification when the signature is not embedded.
Binary Property Name (Signature) Name of the binary property containing the signature data when input is binary and signature is not embedded.
Embedded Signature Indicates whether the message contains an embedded signature (used in decrypt-and-verify operation).

Output

Binary

Outputs processed binary data such as encrypted messages, decrypted content, or signatures in base64-encoded format with appropriate MIME types and file names.

JSON

  • encrypted - The encrypted text message output.
  • decrypted - The decrypted text message or binary data output.
  • signature - The generated signature for signed messages or binary data.
  • verified - Boolean indicating if the signature verification was successful.

Dependencies

  • Requires PGP credentials including a private key (with optional passphrase) and a public key for cryptographic operations.

Troubleshooting

  • Errors occur if required keys are missing or invalid for the selected operation. Ensure private key is provided for decrypt, sign, and decrypt-and-verify operations; public key is required for encrypt, verify, encrypt-and-sign, and decrypt-and-verify.
  • Decryption failures may indicate incorrect keys or corrupted input data.
  • Compression errors suggest mismatched compression algorithm settings between encryption and decryption.
  • Signature verification failures indicate the signature does not match the message or the public key is incorrect.

Links

Discussion