n8n-nodes-openpgp 0.2.11 → 0.2.13

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>
@@ -89,11 +89,15 @@ class OpenPgp {
89
89
  this.description = {
90
90
  displayName: 'OpenPGP',
91
91
  name: 'openPgp',
92
- icon: 'file:openPgp.svg',
92
+ icon: {
93
+ light: 'file:openPgp.svg',
94
+ dark: 'file:openPgp.dark.svg',
95
+ },
93
96
  group: ['transform'],
94
97
  version: 1,
95
98
  subtitle: '={{ $parameter["operation"] }}',
96
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',
97
101
  defaults: {
98
102
  name: 'OpenPGP',
99
103
  },
@@ -117,27 +121,27 @@ class OpenPgp {
117
121
  default: 'encrypt',
118
122
  options: [
119
123
  {
120
- name: 'Decrypt',
124
+ name: 'Decrypt Message',
121
125
  value: 'decrypt',
122
- action: 'Decrypt data',
126
+ action: 'Decrypt message',
123
127
  description: 'Decrypt a message with a private key or password',
124
128
  },
125
129
  {
126
- name: 'Encrypt',
130
+ name: 'Encrypt Data',
127
131
  value: 'encrypt',
128
132
  action: 'Encrypt data',
129
133
  description: 'Encrypt data with a public key or password',
130
134
  },
131
135
  {
132
- name: 'Sign',
136
+ name: 'Sign Data',
133
137
  value: 'sign',
134
138
  action: 'Sign data',
135
139
  description: 'Sign data with a private key',
136
140
  },
137
141
  {
138
- name: 'Verify',
142
+ name: 'Verify Signature',
139
143
  value: 'verify',
140
- action: 'Verify a signature',
144
+ action: 'Verify signature',
141
145
  description: 'Verify a signature with a public key',
142
146
  },
143
147
  ],
@@ -165,14 +169,14 @@ class OpenPgp {
165
169
  displayOptions: { show: { operation: ['encrypt'], sourceData: ['text'] } },
166
170
  },
167
171
  {
168
- displayName: 'Input Binary Field',
172
+ displayName: 'Input Data Field Name',
169
173
  name: 'binaryPropertyName',
170
174
  type: 'string',
171
175
  default: 'data',
172
176
  required: true,
173
177
  placeholder: 'e.g. data',
174
- hint: 'The name of the binary field holding the file to encrypt',
175
- 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',
176
180
  displayOptions: { show: { operation: ['encrypt'], sourceData: ['binary'] } },
177
181
  },
178
182
  {
@@ -214,7 +218,7 @@ class OpenPgp {
214
218
  typeOptions: { password: true },
215
219
  default: '',
216
220
  required: true,
217
- placeholder: 'e.g. the shared password',
221
+ placeholder: 'e.g. sharedPassword',
218
222
  description: 'The shared password the message is encrypted with',
219
223
  displayOptions: { show: { operation: ['encrypt'], encryptUsing: ['password'] } },
220
224
  },
@@ -223,7 +227,7 @@ class OpenPgp {
223
227
  name: 'alsoSign',
224
228
  type: 'boolean',
225
229
  default: false,
226
- 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.",
227
231
  displayOptions: { show: { operation: ['encrypt'] } },
228
232
  },
229
233
  {
@@ -248,12 +252,12 @@ class OpenPgp {
248
252
  displayOptions: { show: { operation: ['encrypt'], outputAs: ['text'] } },
249
253
  },
250
254
  {
251
- displayName: 'Put Output File in Field',
255
+ displayName: 'Output Data Field Name',
252
256
  name: 'outputBinaryFieldName',
253
257
  type: 'string',
254
258
  default: 'data',
255
259
  placeholder: 'e.g. data',
256
- 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',
257
261
  description: 'The output file is named after the input file, with an .asc or .pgp suffix',
258
262
  displayOptions: { show: { operation: ['encrypt'], outputAs: ['binary'] } },
259
263
  },
@@ -288,13 +292,13 @@ class OpenPgp {
288
292
  displayOptions: { show: { operation: ['decrypt'], sourceData: ['text'] } },
289
293
  },
290
294
  {
291
- displayName: 'Input Binary Field',
295
+ displayName: 'Input Data Field Name',
292
296
  name: 'binaryPropertyName',
293
297
  type: 'string',
294
298
  default: 'data',
295
299
  required: true,
296
300
  placeholder: 'e.g. data',
297
- 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',
298
302
  description: 'Armored and binary messages are both accepted',
299
303
  displayOptions: { show: { operation: ['decrypt'], sourceData: ['binary'] } },
300
304
  },
@@ -309,7 +313,7 @@ class OpenPgp {
309
313
  {
310
314
  name: 'Private Key (Credential)',
311
315
  value: 'privateKey',
312
- 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',
313
317
  },
314
318
  {
315
319
  name: 'Password',
@@ -325,7 +329,7 @@ class OpenPgp {
325
329
  typeOptions: { password: true },
326
330
  default: '',
327
331
  required: true,
328
- placeholder: 'e.g. the shared password',
332
+ placeholder: 'e.g. sharedPassword',
329
333
  description: 'The shared password the message was encrypted with',
330
334
  displayOptions: { show: { operation: ['decrypt'], decryptUsing: ['password'] } },
331
335
  },
@@ -345,7 +349,7 @@ class OpenPgp {
345
349
  name: 'requireValidSignature',
346
350
  type: 'boolean',
347
351
  default: false,
348
- 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.",
349
353
  displayOptions: { show: { operation: ['decrypt'] } },
350
354
  },
351
355
  {
@@ -370,12 +374,12 @@ class OpenPgp {
370
374
  displayOptions: { show: { operation: ['decrypt'], outputAs: ['text'] } },
371
375
  },
372
376
  {
373
- displayName: 'Put Output File in Field',
377
+ displayName: 'Output Data Field Name',
374
378
  name: 'outputBinaryFieldName',
375
379
  type: 'string',
376
380
  default: 'data',
377
381
  placeholder: 'e.g. data',
378
- 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',
379
383
  description: 'The output file is named after the name embedded in the message',
380
384
  displayOptions: { show: { operation: ['decrypt'], outputAs: ['binary'] } },
381
385
  },
@@ -440,14 +444,14 @@ class OpenPgp {
440
444
  },
441
445
  },
442
446
  {
443
- displayName: 'Input Binary Field',
447
+ displayName: 'Input Data Field Name',
444
448
  name: 'binaryPropertyName',
445
449
  type: 'string',
446
450
  default: 'data',
447
451
  required: true,
448
452
  placeholder: 'e.g. data',
449
- hint: 'The name of the binary field holding the file to sign',
450
- 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',
451
455
  displayOptions: {
452
456
  show: { operation: ['sign'], signatureType: ['detached', 'inline'], sourceData: ['binary'] },
453
457
  },
@@ -485,12 +489,12 @@ class OpenPgp {
485
489
  },
486
490
  },
487
491
  {
488
- displayName: 'Put Output File in Field',
492
+ displayName: 'Output Data Field Name',
489
493
  name: 'outputBinaryFieldName',
490
494
  type: 'string',
491
495
  default: 'data',
492
496
  placeholder: 'e.g. data',
493
- 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',
494
498
  description: 'The output file is named after the input file, with a .sig, .asc or .pgp suffix',
495
499
  displayOptions: { show: { operation: ['sign'], signatureType: ['detached', 'inline'], outputAs: ['binary'] } },
496
500
  },
@@ -545,13 +549,13 @@ class OpenPgp {
545
549
  },
546
550
  },
547
551
  {
548
- displayName: 'Message Binary Field',
552
+ displayName: 'Message Data Field Name',
549
553
  name: 'messageBinaryPropertyName',
550
554
  type: 'string',
551
555
  default: 'data',
552
556
  required: true,
553
557
  placeholder: 'e.g. data',
554
- 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',
555
559
  description: 'The message bytes are verified exactly, so use the unmodified file',
556
560
  displayOptions: {
557
561
  show: { operation: ['verify'], signatureType: ['detached'], messageSource: ['binary'] },
@@ -582,13 +586,13 @@ class OpenPgp {
582
586
  },
583
587
  },
584
588
  {
585
- displayName: 'Signature Binary Field',
589
+ displayName: 'Signature Data Field Name',
586
590
  name: 'signatureBinaryPropertyName',
587
591
  type: 'string',
588
592
  default: 'data',
589
593
  required: true,
590
594
  placeholder: 'e.g. data',
591
- hint: 'The name of the binary field holding the detached signature',
595
+ hint: 'The name of the data field holding the detached signature',
592
596
  description: 'Armored and binary signatures are both accepted',
593
597
  displayOptions: {
594
598
  show: { operation: ['verify'], signatureType: ['detached'], signatureSource: ['binary'] },
@@ -619,13 +623,13 @@ class OpenPgp {
619
623
  },
620
624
  },
621
625
  {
622
- displayName: 'Message Binary Field',
626
+ displayName: 'Message Data Field Name',
623
627
  name: 'messageBinaryPropertyName',
624
628
  type: 'string',
625
629
  default: 'data',
626
630
  required: true,
627
631
  placeholder: 'e.g. data',
628
- hint: 'The binary field holding the signed message',
632
+ hint: 'The data field holding the signed message',
629
633
  description: 'Armored and binary signed messages are both accepted',
630
634
  displayOptions: {
631
635
  show: { operation: ['verify'], signatureType: ['embedded'], sourceData: ['binary'] },
@@ -648,7 +652,7 @@ class OpenPgp {
648
652
  name: 'throwOnInvalidSignature',
649
653
  type: 'boolean',
650
654
  default: true,
651
- 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.",
652
656
  displayOptions: { show: { operation: ['verify'] } },
653
657
  },
654
658
  optionsProperty('verify', [legacyCompatibilityOption]),