You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+229-2Lines changed: 229 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@
18
18
-[Prerequisites](#prerequisites)
19
19
-[Adding the Library to Your Project](#adding-the-libraries-to-your-project)
20
20
-[Performing Field Level Encryption and Decryption](#performing-field-level-encryption-and-decryption)
21
+
-[Performing JWE Encryption and Decryption](#performing-jwe-encryption-and-decryption)
21
22
-[Integrating with OpenAPI Generator API Client Libraries](#integrating-with-openapi-generator-api-client-libraries)
22
23
23
24
## Overview <aname="overview"></a>
@@ -27,6 +28,7 @@ NodeJS library for Mastercard API compliant payload encryption/decryption.
27
28
### Compatibility <aname="compatibility"></a>
28
29
29
30
- NodeJS 6.12.3+
31
+
- NodeJS 13.14.0+ (JWE features)
30
32
31
33
There shouldn't be any Node compatibility issues with this package, but it's a good idea to keep your Node versions up-to-date. It is recommended that you use one of the LTS Node.js releases, or one of the more general recent releases. A Node version manager such as `nvm` (*Mac* and *Linux*) or `nvm-windows` is a good way to stay on top of this.
32
34
@@ -186,7 +188,6 @@ Call `FieldLevelEncryption.decrypt()` with an (encrypted) `response` object with
186
188
Example using the configuration [above](#configuring-the-field-level-encryption):
187
189
188
190
```js
189
-
…
190
191
constresponse= {};
191
192
response.request= { url:"/resource1" };
192
193
response.body=
@@ -221,6 +222,232 @@ Output:
221
222
}
222
223
}
223
224
```
225
+
### Performing JWE Encryption and Decryption <aname="performing-jwe-encryption-and-decryption"></a>
226
+
#### JWE Encryption and Decryption <aname="jwe-encryption-and-decryption"></a>
227
+
228
+
+[Introduction](#jwe-introduction)
229
+
+[Configuring the JWE Encryption](#configuring-the-jwe-encryption)
0 commit comments