Python Cryptography module to decrypt Client-side Encrypted data in s3
Looks like I had to use ECB() mode to decrypt the x-amz-key while creating first ciphercontext object
cipher = Cipher(algorithms.AES(sym_key), modes.ECB(), backend=default_backend())
This solved the problem
AWS S3 Data Protection Using Client-Side Encryption
Client-side encryption means that you are encrypting the file prior to uploading it to S3. You can accomplish that using any programming language along with any encryption tool. For that matter, you could just use a tool like gpg and the AWS CLI to encrypt and upload files to S3. You manage the encryption keys on your side. The referenced SDKs just include a wrapper that simplify some of the client-side encryption operations.
Related Topics
Is It Ok to Use Dashes in Python Files When Trying to Import Them
Flask Application Traceback Doesn't Show Up in Server Log
Asynchronous Method Call in Python
Does Python Have a Module to Convert CSS Styles to Inline Styles for Emails
Python(Or Numpy) Equivalent of Match in R
Is There a Static Analysis Tool for Python, Ruby, SQL, Cobol, Perl, and Pl/Sql
Which of These Scripting Languages Is More Appropriate for Pen-Testing
Log All Requests from the Python-Requests Module
Possible to Share In-Memory Data Between 2 Separate Processes
How to Fetch a Non-Ascii Url with Urlopen
Saving Interactive Matplotlib Figures
Permanent Fix for Opencv Videocapture
How to Set the Current Working Directory
Control the Size Textarea Widget Look in Django Admin
How to Set the R_Home Environment Variable to the R Home Directory
How to Write a Perl, Python, or Ruby Program to Change the Memory of Another Process on Windows