@@ -128,8 +128,8 @@ decrypted_response_payload = decrypt_payload(body, config)
128128The above can be either stored to a file or passed to 'FieldLevelEncryptionConfig' as dictionary:
129129``` python
130130config_dictionary = {
131- " paths" : {... },
132- ( ... )
131+ " paths" : {… },
132+ …
133133 " decryptionKey" : " ./path/to/your/private.key" ,
134134 " oaepPaddingDigestAlgorithm" : " SHA256"
135135 }
@@ -182,9 +182,9 @@ Output:
182182 "to" : {
183183 "encryptedFoo" : {
184184 "iv" : " 7f1105fb0c684864a189fb3709ce3d28" ,
185- "encryptedKey" : " 67f467d1b653d98411a0c6d3c(...) ffd4c09dd42f713a51bff2b48f937c8" ,
186- "encryptedData" : " b73aabd267517fc09ed72455c2(...) dffb5fa04bf6e6ce9ade1ff514ed6141" ,
187- "publicKeyFingerprint" : " 80810fc13a8319fcf0e2e(...) 82cc3ce671176343cfe8160c2279" ,
185+ "encryptedKey" : " 67f467d1b653d98411a0c6d3c… ffd4c09dd42f713a51bff2b48f937c8" ,
186+ "encryptedData" : " b73aabd267517fc09ed72455c2… dffb5fa04bf6e6ce9ade1ff514ed6141" ,
187+ "publicKeyFingerprint" : " 80810fc13a8319fcf0e2e… 82cc3ce671176343cfe8160c2279" ,
188188 "oaepHashingAlgorithm" : " SHA256"
189189 }
190190 }
@@ -204,10 +204,10 @@ response = {
204204 " to" : {
205205 " encryptedFoo" : {
206206 " iv" : " e5d313c056c411170bf07ac82ede78c9" ,
207- " encryptedKey" : " e3a56746c0f9109d18b3a2652b76(...) f16d8afeff36b2479652f5c24ae7bd" ,
208- " encryptedData" : " 809a09d78257af5379df0c454dcdf(...) 353ed59fe72fd4a7735c69da4080e74f" ,
207+ " encryptedKey" : " e3a56746c0f9109d18b3a2652b76… f16d8afeff36b2479652f5c24ae7bd" ,
208+ " encryptedData" : " 809a09d78257af5379df0c454dcdf… 353ed59fe72fd4a7735c69da4080e74f" ,
209209 " oaepHashingAlgorithm" : " SHA256" ,
210- " publicKeyFingerprint" : " 80810fc13a8319fcf0e2e(...) 3ce671176343cfe8160c2279"
210+ " publicKeyFingerprint" : " 80810fc13a8319fcf0e2e… 3ce671176343cfe8160c2279"
211211 }
212212 }
213213 }
@@ -244,12 +244,12 @@ from client_encryption.api_encryption import add_encryption_layer
244244config = {
245245 " paths" : {
246246 " $" : {
247- ...
247+ …
248248 }
249249 },
250250 " ivFieldName" : " iv" ,
251251 " encryptedKeyFieldName" : " encryptedKey" ,
252- ...
252+ …
253253 " oaepPaddingDigestAlgorithm" : " SHA256"
254254}
255255
@@ -270,14 +270,14 @@ This method will add the field level encryption in the generated OpenApi client,
270270OpenAPI client can be generated, starting from your OpenAPI Spec using the following command:
271271
272272``` shell
273- java -jar openapi-generator-cli.jar generate -i openapi-spec.yaml -l python -o out
273+ openapi-generator-cli generate -i openapi-spec.yaml -l python -o out
274274```
275275
276276Client library will be generated in the ` out ` folder.
277277
278278See also:
279279
280- - [ OpenAPI Generator (executable) ] ( https://mvnrepository.com/artifact/org.openapitools/openapi-generator-cli )
280+ - [ OpenAPI Generator CLI Installation ] ( https://openapi-generator.tech/docs/installation/ )
281281
282282##### Usage of the ` api_encryption.add_encryption_layer ` :
283283
@@ -306,12 +306,12 @@ To use it:
306306 Example:
307307
308308 ``` python
309- request_body = {... }
309+ request_body = {… }
310310 response = MyServiceApi(api_client).do_some_action_post(body = request_body)
311311 # requests and responses will be automatically encrypted and decrypted
312312 # accordingly with the configuration object used
313313
314- # ... use the (decrypted) response object here ...
314+ # … use the (decrypted) response object here …
315315 decrypted = response.json()
316316
317317 ```
0 commit comments