Overview
This node performs PGP (Pretty Good Privacy) cryptographic operations such as verifying signatures on messages or binary data. It supports verifying text or binary inputs against provided signatures using a public key. This is useful for ensuring the authenticity and integrity of messages or files in workflows that require secure communication or data validation.
Use Case Examples
- Verifying the signature of a text message to confirm it was signed by a trusted sender.
- Verifying the signature of a binary file to ensure it has not been tampered with before processing it further.
Properties
| Name | Meaning |
|---|---|
| Input Type | Specifies whether the input to verify is text or binary data. |
| Message | The text message to verify (used when input type is text). |
| Binary Property Name | The name of the binary property containing the data to verify (used when input type is binary). |
| Signature | The signature string to verify against the message (used when input type is text and signature is not embedded). |
| Binary Property Name (Signature) | The name of the binary property containing the signature to verify (used when input type is binary and signature is not embedded). |
Output
JSON
verified- Boolean indicating if the signature verification was successful.
Dependencies
- An API key credential for PGP operations providing private and public keys.
Troubleshooting
- Error: 'Public key is required for verification' - Ensure a valid public key is provided in credentials.
- Error: 'Signature is missing or invalid' - Check that the signature input matches the message and is correctly formatted.
- Error: 'Message could not be decrypted' - This can occur if the message is corrupted or the wrong keys are used; verify keys and message integrity.
Links
- OpenPGP Standard - The standard for PGP encryption and signature verification.
- OpenPGP.js Library - JavaScript library used for PGP operations in this node.