Encrypt
AI-generatedOverview
This node performs PGP encryption on input data, supporting both text and binary inputs. It can encrypt plain text messages or binary files using a public key, optionally compressing binary data before encryption. This node is useful for securely transmitting sensitive information by encrypting it with PGP standards.
Use Case Examples
- Encrypting a text message to securely send confidential information via email.
- Encrypting a binary file (e.g., a PDF or image) before uploading it to a cloud storage service to ensure data privacy.
Properties
| Name | Meaning |
|---|---|
| Input Type | Specifies whether the input data is plain text or binary data to be encrypted. |
| Compression Algorithm | Selects the compression algorithm to apply to binary data before encryption. Only applicable for binary input type. |
| Message | The plain text message to encrypt. Only shown when input type is text. |
| Binary Property Name | The name of the binary property containing the data to encrypt. Only shown when input type is binary. |
Output
Binary
Outputs encrypted binary data as a PGP encrypted file with MIME type 'application/pgp-encrypted'.
JSON
encrypted- The encrypted text message output when input type is text.
Dependencies
- Requires PGP credentials including a public key and optionally a passphrase for the private key.
Troubleshooting
- Ensure the public key provided in credentials is valid; otherwise, the node will throw a 'public key is not valid' error.
- If encrypting binary data, verify the specified binary property exists; missing binary data will cause an error.
- Compression algorithm errors may occur if the selected algorithm is incompatible or data is corrupted.