Skip to content

Commit 66d8075

Browse files
committed
fixed wrong configuration format in readme
1 parent 78edf71 commit 66d8075

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

README.md

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,10 @@ decrypted_response_payload = decrypt_payload(body, config)
106106
"paths": {
107107
"$": {
108108
"toEncrypt": {
109-
"element": "path.to.foo",
110-
"obj": "path.to.encryptedFoo"
109+
"path.to.foo": "path.to.encryptedFoo"
111110
},
112111
"toDecrypt": {
113-
"element": "path.to.encryptedFoo",
114-
"obj": "path.to.foo"
112+
"path.to.encryptedFoo": "path.to.foo"
115113
}
116114
}
117115
},
@@ -158,11 +156,11 @@ Example using the configuration [above](#configuring-the-field-level-encryption)
158156
from client_encryption.session_key_params import SessionKeyParams
159157

160158
payload = {
161-
path: {
162-
to: {
163-
foo: {
164-
sensitiveField1: 'sensitiveValue1',
165-
sensitiveField2: 'sensitiveValue2'
159+
"path": {
160+
"to": {
161+
"foo": {
162+
"sensitiveField1": "sensitiveValue1",
163+
"sensitiveField2": "sensitiveValue2"
166164
}
167165
}
168166
}
@@ -198,14 +196,14 @@ Example using the configuration [above](#configuring-the-field-level-encryption)
198196

199197
```python
200198
response = {
201-
path: {
202-
to: {
203-
encryptedFoo: {
204-
iv: 'e5d313c056c411170bf07ac82ede78c9',
205-
encryptedKey: 'e3a56746c0f9109d18b3a2652b76(...)f16d8afeff36b2479652f5c24ae7bd',
206-
encryptedData: '809a09d78257af5379df0c454dcdf(...)353ed59fe72fd4a7735c69da4080e74f',
207-
oaepHashingAlgorithm: 'SHA256',
208-
publicKeyFingerprint: '80810fc13a8319fcf0e2e(...)3ce671176343cfe8160c2279'
199+
"path": {
200+
"to": {
201+
"encryptedFoo": {
202+
"iv": "e5d313c056c411170bf07ac82ede78c9",
203+
"encryptedKey": "e3a56746c0f9109d18b3a2652b76(...)f16d8afeff36b2479652f5c24ae7bd",
204+
"encryptedData": "809a09d78257af5379df0c454dcdf(...)353ed59fe72fd4a7735c69da4080e74f",
205+
"oaepHashingAlgorithm": "SHA256",
206+
"publicKeyFingerprint": "80810fc13a8319fcf0e2e(...)3ce671176343cfe8160c2279"
209207
}
210208
}
211209
}

0 commit comments

Comments
 (0)