PGP icon

PGP

PGP Node

Encrypt and Sign

AI-generated

Overview

This node performs PGP encryption combined with digital signing on input data, supporting both text and binary formats. It allows users to securely encrypt messages or files while also signing them to ensure authenticity and integrity. The node supports embedding the signature within the encrypted message or providing the signature separately. It also supports optional compression algorithms for binary data before encryption. This node is useful in scenarios where secure communication and verification of message origin are required, such as sending confidential emails or files with proof of authorship.

Use Case Examples

  1. Encrypt and sign a text message with an embedded signature to send confidential and authenticated communication.
  2. Encrypt and sign a binary file with separate signature output, optionally compressing the file before encryption, for secure file transfer with verification.

Properties

Name Meaning
Input Type Specifies whether the input data is text or binary, affecting how the node processes the message.
Compression Algorithm Selects the compression method applied to binary data before encryption. Only applicable for binary input and certain operations.
Message The text message to be encrypted and signed. Used only when input type is text.
Binary Property Name The name of the binary property containing the data to be processed. Used only when input type is binary.
Embed Signature Determines whether the digital signature is embedded within the encrypted message or provided separately. Only applicable for the encrypt-and-sign operation.

Output

Binary

Outputs encrypted binary data with MIME type 'application/pgp-encrypted' and optionally a separate signature file with MIME type 'application/pgp-signature'.

JSON

  • encrypted - The encrypted text message when input is text and signature is embedded or not.
  • signature
    • data - Base64 encoded digital signature for binary input when signature is separate.
    • mimeType - MIME type for the signature file, typically 'application/pgp-signature'.
    • fileExtension - File extension for the signature file, usually '.sig'.
    • fileName - Filename for the signature file, appending '.sig' extension.
  • message
    • data - Base64 encoded encrypted binary data when input is binary.
    • mimeType - MIME type of the encrypted binary data, typically 'application/pgp-encrypted'.
    • fileName - Filename for the encrypted binary data, appending '.pgp' extension.

Dependencies

  • An API key credential for PGP keys (private and public)

Troubleshooting

  • Ensure the private and public PGP keys provided in credentials are valid and correctly formatted; invalid keys will cause errors.
  • If decryption or verification fails, check that the correct keys and passphrases are used and that the message or signature is not corrupted.
  • When using compression, verify that the selected compression algorithm matches the one used during encryption to avoid decompression errors.
  • If binary input is selected, ensure the specified binary property exists and contains valid data to avoid missing binary errors.

Discussion