diff --git a/README.md b/README.md index d63a761..8232be0 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,15 @@ decrypted_response_payload = decrypt_payload(body, config) "decryptionKey": "./path/to/your/private.key", } ``` +You can also pass in a PKCS12 file with the password to decrypt it: +```json +{ + // .... rest of the config + + "decryptionKey": "./path/to/your/keyStore.p12", + "decryptionKeyPassword": "the-password", +} +``` The above can be either stored to a file or passed to 'JweEncryptionConfig' as dictionary: ```python @@ -274,6 +283,15 @@ decrypted_response_payload = decrypt_payload(body, config) "oaepPaddingDigestAlgorithm": "SHA256" } ``` +You can also pass in a PKCS12 file with the password to decrypt it: +```json +{ + // .... rest of the config + + "decryptionKey": "./path/to/your/keyStore.p12", + "decryptionKeyPassword": "the-password", +} +``` The above can be either stored to a file or passed to 'FieldLevelEncryptionConfig' as dictionary: ```python