Closed 74wny0wl closed 3 years ago
Hey, thanks for the PR!
What do you thinkg about doing it this way?
attributes = task.get_payload("attributes", default={})
if not task_password and attributes.get("password"):
self.log.info("Accepting password from attributes")
task_password = attributes.get("password")[0]
It would allow us to get rid of that nasty (attributes_password["password"] or [None])[0]
Hey, thanks for the PR!
What do you thinkg about doing it this way?
attributes = task.get_payload("attributes", default={}) if not task_password and attributes.get("password"): self.log.info("Accepting password from attributes") task_password = attributes.get("password")[0]
It would allow us to get rid of that nasty
(attributes_password["password"] or [None])[0]
Yes, it is much better :)
Allows uploading encrypted archives (ex. zip file encrypted with ZipCrypto) via MWDB with password set as attribute
Note: 7z encrypted archives with AES (filenames encryption enabled) are not supported