J
J
John Rosed2021-06-04 23:31:31
Python
John Rosed, 2021-06-04 23:31:31

Unpacking archive with python password?

I really need to write software that takes a password archive and unpacks it, but I ran into a problem: python refuses to deal with password-protected archives with new (not outdated) encryption. Is there any way to do what I need?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeniy _, 2021-06-04
@GeneD88

What is meant by new encryption?
So, zipfile copes:

from zipfile import ZipFile

with ZipFile("file.zip") as zf:
    zf.extractall(pwd=b'pwd', path=r"C:\Users\unzip")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question