s3cmd
s3cmd copied to clipboard
Added x-amz-checksum-sha256 header for Object Lock support
This is a follow-up of PR #1353 which is inactive since Dec 5, 2023
As asked I moved the sha256 digest to base64 string into a separate function into S3/Crypto.py
Fixes #1177
Sorry for the long delay of my reply. As you can see with the failed tests, you forgot the import for base64 in crypto. In fact, as it is done for encodestring, you can directly import the function that you want to use.
Hi ! No worries for the delay
I fixed my import like you advised me to. I also rebased my PR on master.