I am trying to create a password protected zip file through lambda that is running on python 3.9
I have tried using pyminizip and pyzipper but i encounter error for both libraries
For pyminizip, I keep encountering
Unable to import module 'lambda_function': No module named 'pyminizip'
For pyzipper, I keep encountering
OSError: Cannot load native module 'Cryptodome.Hash._SHA1': Not found '_SHA1.cpython-39-x86_64-linux-gnu.so', Cannot load '_SHA1.abi3.so': /var/task/Cryptodome/Util/../Hash/_SHA1.abi3.so: invalid ELF header, Not found '_SHA1.so'
For the libraries, I tried attaching it as layer or zip it together with my deployment package as zip and I still encounter the same error as above.
May I know any one successfully managed to use python in lambda to password encrypted as zip file?
Thank you very much.

