简体   繁体   中英

Extract content from encrypted rar file with given password

patoolib can be used to extra the content from a rar file, like:

import patoolib
patoolib.extract_archive("test.rar", outdir=".")

in case my test.rar file has the password 123 , how can I give the password as an argument to the extract_archive call?

Did not find anything in the documentation. Is there any alternative, any other lib?

Try using this library here , which supports password-protected archives.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM