@@ -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)
158156from client_encryption.session_key_params import SessionKeyParams
159157
160158payload = {
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
200198response = {
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