Skip to content

Commit f399221

Browse files
Merge pull request #51 from Mastercard/doc/README
Update README.md
2 parents 9b963b7 + 2867a12 commit f399221

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,15 @@ decrypted_response_payload = decrypt_payload(body, config)
135135
"decryptionKey": "./path/to/your/private.key",
136136
}
137137
```
138+
You can also pass in a PKCS12 file with the password to decrypt it:
139+
```json
140+
{
141+
// .... rest of the config
142+
143+
"decryptionKey": "./path/to/your/keyStore.p12",
144+
"decryptionKeyPassword": "the-password",
145+
}
146+
```
138147

139148
The above can be either stored to a file or passed to 'JweEncryptionConfig' as dictionary:
140149
```python
@@ -274,6 +283,15 @@ decrypted_response_payload = decrypt_payload(body, config)
274283
"oaepPaddingDigestAlgorithm": "SHA256"
275284
}
276285
```
286+
You can also pass in a PKCS12 file with the password to decrypt it:
287+
```json
288+
{
289+
// .... rest of the config
290+
291+
"decryptionKey": "./path/to/your/keyStore.p12",
292+
"decryptionKeyPassword": "the-password",
293+
}
294+
```
277295

278296
The above can be either stored to a file or passed to 'FieldLevelEncryptionConfig' as dictionary:
279297
```python

0 commit comments

Comments
 (0)