Overview
This node performs PGP (Pretty Good Privacy) cryptographic operations such as decrypting messages or files. It supports decrypting text or binary data, with optional compression handling. The node can decrypt messages using a private key, and optionally verify signatures using a public key. It is useful for securely processing encrypted communications or files in workflows, for example, decrypting sensitive emails or verifying signed documents.
Use Case Examples
- Decrypting an encrypted text message using a private key.
- Decrypting an encrypted binary file with optional decompression.
- Decrypting and verifying a signed message to ensure authenticity.
Properties
| Name | Meaning |
|---|---|
| Input Type | Specifies whether the input data is text or binary. |
| Compression Algorithm | Specifies the compression algorithm used on binary data before encryption, to be decompressed after decryption. Only applicable for binary input. |
| Message | The text message to decrypt, used when input type is text. |
| Binary Property Name | The name of the binary property containing the data to decrypt, used when input type is binary. |
Output
Binary
Outputs decrypted binary data when input is binary, with appropriate mime type and filename.
JSON
decrypted- Decrypted text message output when input is text.verified- Boolean indicating if signature verification succeeded (for decrypt-and-verify operation).encrypted- Encrypted text output (not applicable for decrypt operation but part of node capabilities).signature- Signature string output for signing operations.
Dependencies
- Requires PGP keys: a private key for decryption and optionally a public key for signature verification.
Troubleshooting
- Error if private key is missing or invalid when required for decryption.
- Error if public key is missing or invalid when required for verification.
- Error if message cannot be decrypted, possibly due to incorrect keys or corrupted data.
- Error if decompression fails, indicating a mismatch in compression algorithm selection.
- Ensure binary property exists when input type is binary, otherwise error is thrown.
Links
- OpenPGP Standard - Official standard for PGP encryption and signing.
- OpenPGP.js Library - JavaScript library used for PGP operations in this node.