Update python/ql/src/experimental/Security/CWE-327/Azure/UnsafeUsageOfClientSideEncryptionVersion.py

Co-authored-by: Taus <tausbn@github.com>
This commit is contained in:
Raul Garcia
2022-07-13 08:34:48 -07:00
committed by GitHub
parent 0dbb03f732
commit f7c47b6c75

View File

@@ -3,5 +3,5 @@ blob_client.require_encryption = True
blob_client.key_encryption_key = kek
# GOOD: Must use `encryption_version` set to `2.0`
blob_client.encryption_version = '2.0' # Use Version 2.0!
with open(decryptedcontentfile.txt, rb) as stream:
with open("decryptedcontentfile.txt", "rb") as stream:
blob_client.upload_blob(stream, overwrite=OVERWRITE_EXISTING)