n8n-nodes-openpgp 0.2.12 → 0.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1 +1,336 @@
1
- # n8n-openpgp
1
+ # n8n-nodes-openpgp
2
+
3
+ Encrypt, decrypt, sign, and verify workflow data with OpenPGP, using public keys or shared passwords.
4
+
5
+ This package provides one n8n community node with four operations:
6
+
7
+ - Encrypt Data
8
+ - Decrypt Message
9
+ - Sign Data
10
+ - Verify Signature
11
+
12
+ It handles text fields and n8n binary data. File workflows use the binary field `data` by default, so a Read/Write Files from Disk node can connect to OpenPGP without field remapping.
13
+
14
+ > [!WARNING]
15
+ > This is an unverified community package for self-hosted n8n. It is not available on n8n Cloud. n8n 3.0 changes `N8N_UNVERIFIED_PACKAGES_ENABLED` from `true` to `false`. Set it to `true` before upgrading if this package must keep loading, or use the pinned-checksum environment-managed installation described below.
16
+
17
+ ## Installation
18
+
19
+ Package name:
20
+
21
+ ```text
22
+ n8n-nodes-openpgp
23
+ ```
24
+
25
+ ### Settings
26
+
27
+ An Owner or Admin can install the package from the n8n editor:
28
+
29
+ 1. Open **Settings**.
30
+ 2. Select **Community Nodes**.
31
+ 3. Select **Install**.
32
+ 4. Enter `n8n-nodes-openpgp`.
33
+ 5. Review and accept the warning for unverified community code.
34
+ 6. Select **Install**.
35
+
36
+ The node appears as **OpenPGP** after installation.
37
+
38
+ ### Manual container installation
39
+
40
+ Use this path for queue-mode deployments, private registries, or installations where the Community Nodes settings page is unavailable.
41
+
42
+ Open a shell in the running n8n container:
43
+
44
+ ```sh
45
+ docker exec -it <n8n-container> sh
46
+ ```
47
+
48
+ Install the package under the n8n user folder:
49
+
50
+ ```sh
51
+ mkdir -p ~/.n8n/nodes
52
+ cd ~/.n8n/nodes
53
+ npm install n8n-nodes-openpgp
54
+ ```
55
+
56
+ Restart every n8n process that loads community nodes. In queue mode, install the package in the shared image or persistent user folder used by both the main and worker processes.
57
+
58
+ n8n 3.0 requires Docker-based self-hosting. Do not base a new deployment on a host-level `npm install -g n8n` or `npx n8n` setup.
59
+
60
+ ### Environment-managed installation
61
+
62
+ n8n 2.21.0 and later can reconcile community packages from environment variables. Pin both the package version and registry integrity value:
63
+
64
+ ```sh
65
+ npm view n8n-nodes-openpgp version
66
+ npm view n8n-nodes-openpgp dist.integrity
67
+ ```
68
+
69
+ Configure the instance with those values:
70
+
71
+ ```sh
72
+ N8N_COMMUNITY_PACKAGES_MANAGED_BY_ENV=true
73
+ N8N_COMMUNITY_PACKAGES='[{"name":"n8n-nodes-openpgp","version":"<version>","checksum":"<sha512-integrity>"}]'
74
+ ```
75
+
76
+ Enabling environment-managed packages uninstalls community packages that are not listed in `N8N_COMMUNITY_PACKAGES`. Add every package that the instance must retain before restarting it.
77
+
78
+ For n8n 3.0, choose one of these policies:
79
+
80
+ - Set `N8N_UNVERIFIED_PACKAGES_ENABLED=true` to allow unverified npm packages.
81
+ - Keep `N8N_UNVERIFIED_PACKAGES_ENABLED=false` and supply the pinned checksum above.
82
+
83
+ If unverified packages are disabled and no checksum is supplied, n8n refuses the package. An environment-managed instance can fail during startup.
84
+
85
+ ## Credential setup
86
+
87
+ Create an **OpenPGP Private Key API** credential when a workflow needs to decrypt with a private key or create a signature.
88
+
89
+ | Field | Value |
90
+ |---|---|
91
+ | Private Key | A complete armored private-key block, including its `BEGIN` and `END` lines |
92
+ | Passphrase | The secret that unlocks the private key, or empty for an unprotected key |
93
+
94
+ The credential stores both fields as secrets. Its **Test** button parses the key and, when needed, unlocks it with the Passphrase. This check runs locally inside n8n and makes no network request.
95
+
96
+ The node accepts armored text, not a binary key file. Export a key in armored form before pasting it:
97
+
98
+ ```sh
99
+ gpg --armor --export-secret-keys <key-id>
100
+ ```
101
+
102
+ Public keys can be exported with:
103
+
104
+ ```sh
105
+ gpg --armor --export <key-id>
106
+ ```
107
+
108
+ ### Key input hardening
109
+
110
+ Copy each key from its `BEGIN` line through its `END` line. The parser repairs common transport damage before OpenPGP.js reads the value:
111
+
112
+ - Windows line endings
113
+ - escaped newlines copied from JSON, YAML, or environment variables
114
+ - flattened armor whose markers and body arrived on one line
115
+ - whitespace inserted into the encoded body
116
+ - stray armor headers such as `Version:`
117
+ - multiple public-key blocks in one field
118
+
119
+ Damage that changes the key material is not guessed around. The node reports the offending line or missing marker so the source can be corrected.
120
+
121
+ ## Usage
122
+
123
+ OpenPGP processes every input item independently and returns a new item linked to its source. It does not overwrite the incoming JSON or binary object.
124
+
125
+ Most operations share these controls:
126
+
127
+ | Control | Purpose |
128
+ |---|---|
129
+ | Source Data | Read inline Text or a Binary field |
130
+ | Input Data Field Name | Binary input field, default `data` |
131
+ | Output As | Write Text or a Binary field |
132
+ | Output Data Field Name | Binary output field, default `data` |
133
+ | Options | Operation-specific armor, compression, recipient, and compatibility settings |
134
+
135
+ Text output must be valid UTF-8. Select Binary output when decrypted or verified content may contain arbitrary bytes.
136
+
137
+ ### Encrypt
138
+
139
+ Use **Encrypt Data** to encrypt for one or more public keys or for a shared Password.
140
+
141
+ Typical file workflow:
142
+
143
+ ```text
144
+ Read/Write Files from Disk (Read)
145
+ -> OpenPGP (Encrypt Data)
146
+ -> Read/Write Files from Disk (Write)
147
+ ```
148
+
149
+ All three nodes use the binary field `data` by default.
150
+
151
+ | Setting | Key mode | Password mode |
152
+ |---|---|---|
153
+ | Encrypt Using | Public Keys | Password |
154
+ | Recipient input | One or more armored public keys | Shared Password |
155
+ | Also Sign | Optional, needs the OpenPGP Private Key API credential | Optional, needs the OpenPGP Private Key API credential |
156
+ | Text output | Armored OpenPGP message | Armored OpenPGP message |
157
+ | Binary output | Armored or raw packets | Armored or raw packets |
158
+
159
+ Key-mode encryption accepts several armored public-key blocks. Every corresponding private-key holder can decrypt the result.
160
+
161
+ Options:
162
+
163
+ - **Armor Output** writes ASCII armor instead of raw OpenPGP packets for Binary output. Text output is always armored.
164
+ - **Compression** offers None, ZIP, and ZLIB. In key mode, recipient preferences can prevent the selected compression algorithm from being used.
165
+ - **Hide Recipients** writes wildcard recipient key IDs. A decrypting implementation must try the available private keys.
166
+ - **Legacy Compatibility** enables the compatibility settings described below.
167
+
168
+ Binary encryption preserves the input filename inside the OpenPGP literal-data packet. The output filename receives `.asc` for armored data or `.pgp` for raw packets.
169
+
170
+ ### Decrypt
171
+
172
+ Use **Decrypt Message** with either the OpenPGP Private Key API credential or the shared Password used during encryption.
173
+
174
+ | Setting | Behavior |
175
+ |---|---|
176
+ | Decrypt Using | Private Key (Credential) or Password |
177
+ | Public Key(s) | Optional verification keys for a signature carried by the message |
178
+ | Require Valid Signature | Reject unsigned data and signatures that do not match a supplied public key |
179
+ | Output As | UTF-8 Text or Binary |
180
+
181
+ `Public Key(s)` is independent of the decryption method. Password-encrypted messages can still carry signatures, and private-key-encrypted messages can be decrypted without checking a signer.
182
+
183
+ When verification keys are supplied, the result includes:
184
+
185
+ | Field | Meaning |
186
+ |---|---|
187
+ | `signed` | The message contains at least one signature packet |
188
+ | `verified` | At least one signature matches a supplied public key |
189
+ | `keyID` | Lowercase hexadecimal key ID for the first verified signature, or `null` |
190
+
191
+ Signature reporting requires `Public Key(s)`. Leaving the field empty decrypts the message without claiming who signed it.
192
+
193
+ Binary output restores the filename embedded in the OpenPGP message. If the message has no filename, the node uses `data`.
194
+
195
+ ### Sign
196
+
197
+ Use **Sign Data** with an OpenPGP Private Key API credential.
198
+
199
+ | Signature Type | Input | Result |
200
+ |---|---|---|
201
+ | Detached | Text or Binary | A separate signature to store or transmit beside the original data |
202
+ | Cleartext | Text only | Readable text wrapped in an armored signature |
203
+ | Inline | Text or Binary | One OpenPGP message containing the data and signature |
204
+
205
+ Detached signatures are the default. They do not contain the original content, so verification needs both the message and signature.
206
+
207
+ Text output is armored. Binary output can be armored or raw for Detached and Inline signatures. Cleartext signatures always use Text output.
208
+
209
+ ### Verify
210
+
211
+ Use **Verify Signature** with one or more armored public keys.
212
+
213
+ | Signature Type | Required inputs | Result |
214
+ |---|---|---|
215
+ | Detached | Message plus separate signature | Signature status only |
216
+ | Embedded | Cleartext or inline signed message | Signature status and recovered text when available |
217
+
218
+ The output is JSON:
219
+
220
+ ```json
221
+ {
222
+ "verified": true,
223
+ "signed": true,
224
+ "keyID": "0123456789abcdef",
225
+ "data": "Recovered text for supported embedded messages"
226
+ }
227
+ ```
228
+
229
+ **Throw on Invalid Signature** defaults to on. Leave it on when an invalid or missing signature must stop the workflow. Turn it off to branch on the `verified` field instead.
230
+
231
+ Verify recovers `data` only from cleartext signatures and text-format literal packets. It does not return binary literal content. Use **Decrypt Message** with a key when a signed and encrypted binary message must be recovered.
232
+
233
+ ## Shared options and output behavior
234
+
235
+ ### Legacy Compatibility
236
+
237
+ **Legacy Compatibility** is off by default. Enable it only for material that modern OpenPGP defaults reject.
238
+
239
+ It enables these OpenPGP.js settings for that operation:
240
+
241
+ - `allowMissingKeyFlags`
242
+ - `enableParsingV5Entities`
243
+ - `parseAEADEncryptedV4KeysAsLegacy`
244
+
245
+ `parseAEADEncryptedV4KeysAsLegacy` is correct only for v4 keys that OpenPGP.js v5 encrypted with AEAD. It is not a general repair option for malformed or unknown key formats.
246
+
247
+ The option applies per execution. The node never mutates the process-wide OpenPGP.js configuration.
248
+
249
+ ### Binary output
250
+
251
+ Binary operations use n8n's binary-data helpers, so they work with memory, filesystem, database, and supported external binary-data modes.
252
+
253
+ | Operation | MIME type | Filename behavior |
254
+ |---|---|---|
255
+ | Encrypt Data | `application/pgp-encrypted` | Adds `.asc` or `.pgp` |
256
+ | Decrypt Message | `application/octet-stream` | Restores the embedded filename when present |
257
+ | Sign Data | `application/pgp-signature` | Adds `.sig`, `.asc`, or `.pgp` as appropriate |
258
+
259
+ ### Errors and n8n's On Error setting
260
+
261
+ Errors identify the input item and the field that needs attention. They also include a description of the corrective action.
262
+
263
+ The node follows n8n's **On Error** setting. With Continue selected, a failing item produces an error item while later inputs continue processing.
264
+
265
+ ## Example workflows
266
+
267
+ The examples live in the repository rather than the npm runtime package. Download the JSON file, then use **Import from File** in n8n.
268
+
269
+ | Example | Setup |
270
+ |---|---|
271
+ | [File encryption](https://github.com/calvertjadon/n8n-nodes-openpgp/blob/main/examples/file-encrypt.json) | Set input/output paths and paste recipient public keys |
272
+ | [Password round trip](https://github.com/calvertjadon/n8n-nodes-openpgp/blob/main/examples/password-round-trip.json) | Runs with an obvious demo-only password; replace it before adapting the workflow |
273
+ | [Detached sign and verify](https://github.com/calvertjadon/n8n-nodes-openpgp/blob/main/examples/detached-sign-and-verify.json) | Attach a credential and paste its public key |
274
+ | [Encrypt and sign](https://github.com/calvertjadon/n8n-nodes-openpgp/blob/main/examples/encrypt-and-sign.json) | Attach a credential and paste recipient public keys |
275
+
276
+ No example contains a private key or a production password. Credential-dependent examples intentionally remain incomplete until configured.
277
+
278
+ ## Security and verification status
279
+
280
+ Community nodes run with the permissions of the n8n process and can read workflow data. Review the package and pin versions before using it with sensitive material.
281
+
282
+ This package is unverified because it ships `openpgp` as a runtime dependency. The n8n scanner reports:
283
+
284
+ ```text
285
+ @n8n/community-nodes/no-runtime-dependencies
286
+ ```
287
+
288
+ The dependency is deliberate. n8n's installer removes optional dependencies, and bundling OpenPGP.js cannot satisfy the scanner's source and license requirements. `openpgp` is pinned and exercised against committed GnuPG interoperability fixtures.
289
+
290
+ The scanner reports no additional finding for provenance, restricted imports, lifecycle scripts, package manifest, license, or naming. Releases are published from GitHub Actions through npm Trusted Publishers with SLSA provenance and no long-lived npm token.
291
+
292
+ ## Known limitations
293
+
294
+ - The package is for self-hosted n8n. n8n Cloud cannot install it.
295
+ - Version 1 buffers whole files in memory. Streaming is not implemented.
296
+ - Verify does not recover binary literal content.
297
+ - Key generation, key discovery, revocation, and key management are outside this node's scope.
298
+ - Binary key files cannot be pasted directly. Export armored text first.
299
+ - Key-mode compression is subject to recipient preferences.
300
+ - Signature reporting during decryption requires public verification keys.
301
+ - AEAD protection is not exposed because enabling it would reduce interoperability with other OpenPGP implementations.
302
+
303
+ ## Development
304
+
305
+ Requirements:
306
+
307
+ - Node.js 22.22.0 or later
308
+ - npm
309
+ - Docker for smoke tests
310
+ - GnuPG for regenerating interoperability fixtures
311
+
312
+ Install and check the project:
313
+
314
+ ```sh
315
+ npm ci
316
+ npm run lint:ci
317
+ npm run build
318
+ npm test
319
+ npm run smoke
320
+ ```
321
+
322
+ Start an n8n development instance:
323
+
324
+ ```sh
325
+ npm run dev
326
+ ```
327
+
328
+ The package source, issue tracker, and release history are at [calvertjadon/n8n-nodes-openpgp](https://github.com/calvertjadon/n8n-nodes-openpgp).
329
+
330
+ ## Support
331
+
332
+ Report reproducible defects through [GitHub Issues](https://github.com/calvertjadon/n8n-nodes-openpgp/issues). Include the n8n version, package version, selected operation, input mode, and the complete error message. Never attach private keys, Passphrases, Passwords, or decrypted sensitive data.
333
+
334
+ ## License
335
+
336
+ [MIT](LICENSE)
@@ -3,6 +3,9 @@ export declare class OpenPgpPrivateKeyApi implements ICredentialType {
3
3
  name: string;
4
4
  displayName: string;
5
5
  documentationUrl: string;
6
- icon: "file:openPgpPrivateKeyApi.svg";
6
+ icon: {
7
+ readonly light: "file:openPgpPrivateKeyApi.svg";
8
+ readonly dark: "file:openPgpPrivateKeyApi.dark.svg";
9
+ };
7
10
  properties: INodeProperties[];
8
11
  }
@@ -5,8 +5,11 @@ class OpenPgpPrivateKeyApi {
5
5
  constructor() {
6
6
  this.name = 'openPgpPrivateKeyApi';
7
7
  this.displayName = 'OpenPGP Private Key API';
8
- this.documentationUrl = 'https://github.com/calvertjadon/n8n-nodes-openpgp#readme';
9
- this.icon = 'file:openPgpPrivateKeyApi.svg';
8
+ this.documentationUrl = 'https://github.com/calvertjadon/n8n-nodes-openpgp#credential-setup';
9
+ this.icon = {
10
+ light: 'file:openPgpPrivateKeyApi.svg',
11
+ dark: 'file:openPgpPrivateKeyApi.dark.svg',
12
+ };
10
13
  this.properties = [
11
14
  {
12
15
  displayName: 'Private Key',
@@ -19,8 +22,8 @@ class OpenPgpPrivateKeyApi {
19
22
  default: '',
20
23
  required: true,
21
24
  placeholder: 'e.g. -----BEGIN PGP PRIVATE KEY BLOCK-----',
22
- hint: 'Paste the whole block, BEGIN and END lines included — a binary key file must be exported as armored text first (gpg --armor --export-secret-keys)',
23
- description: 'The armored private key used to decrypt and sign. Paste the complete block, including the BEGIN and END lines.',
25
+ hint: "Paste the whole block, BEGIN and END lines included. A binary key file must be exported as armored text first, for example with 'gpg --armor --export-secret-keys'.",
26
+ description: "The armored private key used to decrypt and sign. Paste the complete block, including the 'BEGIN' and 'END' lines.",
24
27
  },
25
28
  {
26
29
  displayName: 'Passphrase',
@@ -30,9 +33,9 @@ class OpenPgpPrivateKeyApi {
30
33
  password: true,
31
34
  },
32
35
  default: '',
33
- placeholder: 'e.g. the passphrase of the private key',
34
- hint: 'Leave empty when the key is not protected by a passphrase',
35
- description: 'The passphrase that unlocks the private key. Leave empty when the key is not protected by one.',
36
+ placeholder: 'e.g. privateKeyPassphrase',
37
+ hint: "Leave empty when the key is not protected by a 'Passphrase'",
38
+ description: "The 'Passphrase' that unlocks the private key. Leave empty when the key is not protected by one.",
36
39
  },
37
40
  ];
38
41
  }
@@ -1 +1 @@
1
- {"version":3,"file":"OpenPgpPrivateKeyApi.credentials.js","sourceRoot":"","sources":["../../credentials/OpenPgpPrivateKeyApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,oBAAoB;IAAjC;QACC,SAAI,GAAG,sBAAsB,CAAC;QAE9B,gBAAW,GAAG,yBAAyB,CAAC;QAExC,qBAAgB,GAAG,0DAA0D,CAAC;QAE9E,SAAI,GAAG,+BAAwC,CAAC;QAEhD,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;oBACd,IAAI,EAAE,CAAC;iBACP;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,4CAA4C;gBACzD,IAAI,EAAE,mJAAmJ;gBACzJ,WAAW,EACV,gHAAgH;aACjH;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,wCAAwC;gBACrD,IAAI,EAAE,2DAA2D;gBACjE,WAAW,EACV,gGAAgG;aACjG;SACD,CAAC;IACH,CAAC;CAAA;AAvCD,oDAuCC"}
1
+ {"version":3,"file":"OpenPgpPrivateKeyApi.credentials.js","sourceRoot":"","sources":["../../credentials/OpenPgpPrivateKeyApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,oBAAoB;IAAjC;QACC,SAAI,GAAG,sBAAsB,CAAC;QAE9B,gBAAW,GAAG,yBAAyB,CAAC;QAExC,qBAAgB,GAAG,oEAAoE,CAAC;QAExF,SAAI,GAAG;YACN,KAAK,EAAE,+BAA+B;YACtC,IAAI,EAAE,oCAAoC;SACjC,CAAC;QAEX,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;oBACd,IAAI,EAAE,CAAC;iBACP;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,4CAA4C;gBACzD,IAAI,EAAE,qKAAqK;gBAC3K,WAAW,EACV,oHAAoH;aACrH;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,2BAA2B;gBACxC,IAAI,EAAE,6DAA6D;gBACnE,WAAW,EACV,kGAAkG;aACnG;SACD,CAAC;IACH,CAAC;CAAA;AA1CD,oDA0CC"}
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="#FF6B91" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round">
2
+ <rect x="3.5" y="10" width="17" height="11" rx="2.5" />
3
+ <path d="M7.5 10V7.5a4.5 4.5 0 0 1 9 0V10" />
4
+ <circle cx="12" cy="15.5" r="1.5" fill="#FF6B91" stroke="none" />
5
+ <path d="M12 17v2.5" />
6
+ </svg>
@@ -1,6 +1,6 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="#EA4B71" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round">
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="#C7355B" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round">
2
2
  <rect x="3.5" y="10" width="17" height="11" rx="2.5" />
3
3
  <path d="M7.5 10V7.5a4.5 4.5 0 0 1 9 0V10" />
4
- <circle cx="12" cy="15.5" r="1.5" fill="#EA4B71" stroke="none" />
4
+ <circle cx="12" cy="15.5" r="1.5" fill="#C7355B" stroke="none" />
5
5
  <path d="M12 17v2.5" />
6
6
  </svg>
@@ -91,12 +91,13 @@ class OpenPgp {
91
91
  name: 'openPgp',
92
92
  icon: {
93
93
  light: 'file:openPgp.svg',
94
- dark: 'file:openPgp.svg',
94
+ dark: 'file:openPgp.dark.svg',
95
95
  },
96
96
  group: ['transform'],
97
97
  version: 1,
98
98
  subtitle: '={{ $parameter["operation"] }}',
99
99
  description: 'Encrypt, decrypt, sign, and verify data with OpenPGP — key-based or password-based',
100
+ documentationUrl: 'https://github.com/calvertjadon/n8n-nodes-openpgp#usage',
100
101
  defaults: {
101
102
  name: 'OpenPGP',
102
103
  },
@@ -120,27 +121,27 @@ class OpenPgp {
120
121
  default: 'encrypt',
121
122
  options: [
122
123
  {
123
- name: 'Decrypt',
124
+ name: 'Decrypt Message',
124
125
  value: 'decrypt',
125
- action: 'Decrypt data',
126
+ action: 'Decrypt message',
126
127
  description: 'Decrypt a message with a private key or password',
127
128
  },
128
129
  {
129
- name: 'Encrypt',
130
+ name: 'Encrypt Data',
130
131
  value: 'encrypt',
131
132
  action: 'Encrypt data',
132
133
  description: 'Encrypt data with a public key or password',
133
134
  },
134
135
  {
135
- name: 'Sign',
136
+ name: 'Sign Data',
136
137
  value: 'sign',
137
138
  action: 'Sign data',
138
139
  description: 'Sign data with a private key',
139
140
  },
140
141
  {
141
- name: 'Verify',
142
+ name: 'Verify Signature',
142
143
  value: 'verify',
143
- action: 'Verify a signature',
144
+ action: 'Verify signature',
144
145
  description: 'Verify a signature with a public key',
145
146
  },
146
147
  ],
@@ -168,14 +169,14 @@ class OpenPgp {
168
169
  displayOptions: { show: { operation: ['encrypt'], sourceData: ['text'] } },
169
170
  },
170
171
  {
171
- displayName: 'Input Binary Field',
172
+ displayName: 'Input Data Field Name',
172
173
  name: 'binaryPropertyName',
173
174
  type: 'string',
174
175
  default: 'data',
175
176
  required: true,
176
177
  placeholder: 'e.g. data',
177
- hint: 'The name of the binary field holding the file to encrypt',
178
- description: 'The file name of the input file is embedded in the encrypted message',
178
+ hint: 'The name of the data field holding the file to encrypt',
179
+ description: 'The input filename is embedded in the encrypted message',
179
180
  displayOptions: { show: { operation: ['encrypt'], sourceData: ['binary'] } },
180
181
  },
181
182
  {
@@ -217,7 +218,7 @@ class OpenPgp {
217
218
  typeOptions: { password: true },
218
219
  default: '',
219
220
  required: true,
220
- placeholder: 'e.g. the shared password',
221
+ placeholder: 'e.g. sharedPassword',
221
222
  description: 'The shared password the message is encrypted with',
222
223
  displayOptions: { show: { operation: ['encrypt'], encryptUsing: ['password'] } },
223
224
  },
@@ -226,7 +227,7 @@ class OpenPgp {
226
227
  name: 'alsoSign',
227
228
  type: 'boolean',
228
229
  default: false,
229
- description: "Whether to sign the message with the credential's private key as well, which needs an OpenPGP Private Key credential attached. Works with both public keys and a password.",
230
+ description: "Whether to sign the message with the credential's private key as well, which needs an OpenPGP Private Key API credential attached. Works with both public keys and a password.",
230
231
  displayOptions: { show: { operation: ['encrypt'] } },
231
232
  },
232
233
  {
@@ -251,12 +252,12 @@ class OpenPgp {
251
252
  displayOptions: { show: { operation: ['encrypt'], outputAs: ['text'] } },
252
253
  },
253
254
  {
254
- displayName: 'Put Output File in Field',
255
+ displayName: 'Output Data Field Name',
255
256
  name: 'outputBinaryFieldName',
256
257
  type: 'string',
257
258
  default: 'data',
258
259
  placeholder: 'e.g. data',
259
- hint: 'The name of the binary field to write the encrypted file to',
260
+ hint: 'The name of the data field to write the encrypted file to',
260
261
  description: 'The output file is named after the input file, with an .asc or .pgp suffix',
261
262
  displayOptions: { show: { operation: ['encrypt'], outputAs: ['binary'] } },
262
263
  },
@@ -291,13 +292,13 @@ class OpenPgp {
291
292
  displayOptions: { show: { operation: ['decrypt'], sourceData: ['text'] } },
292
293
  },
293
294
  {
294
- displayName: 'Input Binary Field',
295
+ displayName: 'Input Data Field Name',
295
296
  name: 'binaryPropertyName',
296
297
  type: 'string',
297
298
  default: 'data',
298
299
  required: true,
299
300
  placeholder: 'e.g. data',
300
- hint: 'The name of the binary field holding the message to decrypt',
301
+ hint: 'The name of the data field holding the message to decrypt',
301
302
  description: 'Armored and binary messages are both accepted',
302
303
  displayOptions: { show: { operation: ['decrypt'], sourceData: ['binary'] } },
303
304
  },
@@ -312,7 +313,7 @@ class OpenPgp {
312
313
  {
313
314
  name: 'Private Key (Credential)',
314
315
  value: 'privateKey',
315
- description: 'Decrypt with the key held by the attached OpenPGP Private Key credential',
316
+ description: 'Decrypt with the key held by the attached OpenPGP Private Key API credential',
316
317
  },
317
318
  {
318
319
  name: 'Password',
@@ -328,7 +329,7 @@ class OpenPgp {
328
329
  typeOptions: { password: true },
329
330
  default: '',
330
331
  required: true,
331
- placeholder: 'e.g. the shared password',
332
+ placeholder: 'e.g. sharedPassword',
332
333
  description: 'The shared password the message was encrypted with',
333
334
  displayOptions: { show: { operation: ['decrypt'], decryptUsing: ['password'] } },
334
335
  },
@@ -348,7 +349,7 @@ class OpenPgp {
348
349
  name: 'requireValidSignature',
349
350
  type: 'boolean',
350
351
  default: false,
351
- description: 'Whether to fail instead of returning data when the message is not signed by one of the provided Public Key(s). Needs Public Key(s): without keys no message can be reported as signed.',
352
+ description: "Whether to fail instead of returning data when the message is not signed by one of the provided 'Public Key(s)'. Without 'Public Key(s)', no message can be reported as signed.",
352
353
  displayOptions: { show: { operation: ['decrypt'] } },
353
354
  },
354
355
  {
@@ -373,12 +374,12 @@ class OpenPgp {
373
374
  displayOptions: { show: { operation: ['decrypt'], outputAs: ['text'] } },
374
375
  },
375
376
  {
376
- displayName: 'Put Output File in Field',
377
+ displayName: 'Output Data Field Name',
377
378
  name: 'outputBinaryFieldName',
378
379
  type: 'string',
379
380
  default: 'data',
380
381
  placeholder: 'e.g. data',
381
- hint: 'The name of the binary field to write the decrypted file to',
382
+ hint: 'The name of the data field to write the decrypted file to',
382
383
  description: 'The output file is named after the name embedded in the message',
383
384
  displayOptions: { show: { operation: ['decrypt'], outputAs: ['binary'] } },
384
385
  },
@@ -443,14 +444,14 @@ class OpenPgp {
443
444
  },
444
445
  },
445
446
  {
446
- displayName: 'Input Binary Field',
447
+ displayName: 'Input Data Field Name',
447
448
  name: 'binaryPropertyName',
448
449
  type: 'string',
449
450
  default: 'data',
450
451
  required: true,
451
452
  placeholder: 'e.g. data',
452
- hint: 'The name of the binary field holding the file to sign',
453
- description: 'The file name of the input file is embedded in an inline signed message',
453
+ hint: 'The name of the data field holding the file to sign',
454
+ description: 'The input filename is embedded in an inline signed message',
454
455
  displayOptions: {
455
456
  show: { operation: ['sign'], signatureType: ['detached', 'inline'], sourceData: ['binary'] },
456
457
  },
@@ -488,12 +489,12 @@ class OpenPgp {
488
489
  },
489
490
  },
490
491
  {
491
- displayName: 'Put Output File in Field',
492
+ displayName: 'Output Data Field Name',
492
493
  name: 'outputBinaryFieldName',
493
494
  type: 'string',
494
495
  default: 'data',
495
496
  placeholder: 'e.g. data',
496
- hint: 'The name of the binary field to write the signature to',
497
+ hint: 'The name of the data field to write the signature to',
497
498
  description: 'The output file is named after the input file, with a .sig, .asc or .pgp suffix',
498
499
  displayOptions: { show: { operation: ['sign'], signatureType: ['detached', 'inline'], outputAs: ['binary'] } },
499
500
  },
@@ -548,13 +549,13 @@ class OpenPgp {
548
549
  },
549
550
  },
550
551
  {
551
- displayName: 'Message Binary Field',
552
+ displayName: 'Message Data Field Name',
552
553
  name: 'messageBinaryPropertyName',
553
554
  type: 'string',
554
555
  default: 'data',
555
556
  required: true,
556
557
  placeholder: 'e.g. data',
557
- hint: 'The binary field holding the message the signature was created for',
558
+ hint: 'The data field holding the message the signature was created for',
558
559
  description: 'The message bytes are verified exactly, so use the unmodified file',
559
560
  displayOptions: {
560
561
  show: { operation: ['verify'], signatureType: ['detached'], messageSource: ['binary'] },
@@ -585,13 +586,13 @@ class OpenPgp {
585
586
  },
586
587
  },
587
588
  {
588
- displayName: 'Signature Binary Field',
589
+ displayName: 'Signature Data Field Name',
589
590
  name: 'signatureBinaryPropertyName',
590
591
  type: 'string',
591
592
  default: 'data',
592
593
  required: true,
593
594
  placeholder: 'e.g. data',
594
- hint: 'The name of the binary field holding the detached signature',
595
+ hint: 'The name of the data field holding the detached signature',
595
596
  description: 'Armored and binary signatures are both accepted',
596
597
  displayOptions: {
597
598
  show: { operation: ['verify'], signatureType: ['detached'], signatureSource: ['binary'] },
@@ -622,13 +623,13 @@ class OpenPgp {
622
623
  },
623
624
  },
624
625
  {
625
- displayName: 'Message Binary Field',
626
+ displayName: 'Message Data Field Name',
626
627
  name: 'messageBinaryPropertyName',
627
628
  type: 'string',
628
629
  default: 'data',
629
630
  required: true,
630
631
  placeholder: 'e.g. data',
631
- hint: 'The binary field holding the signed message',
632
+ hint: 'The data field holding the signed message',
632
633
  description: 'Armored and binary signed messages are both accepted',
633
634
  displayOptions: {
634
635
  show: { operation: ['verify'], signatureType: ['embedded'], sourceData: ['binary'] },
@@ -651,7 +652,7 @@ class OpenPgp {
651
652
  name: 'throwOnInvalidSignature',
652
653
  type: 'boolean',
653
654
  default: true,
654
- description: 'Whether to fail when the signature does not verify against the provided Public Key(s). Turn this off to branch on the verified field instead.',
655
+ description: "Whether to fail when the signature does not verify against the provided 'Public Key(s)'. Turn this off to branch on the 'verified' field instead.",
655
656
  displayOptions: { show: { operation: ['verify'] } },
656
657
  },
657
658
  optionsProperty('verify', [legacyCompatibilityOption]),