Access product documentation, guides, articles, and support through a centralised space with intelligent search.
Get the support and resources you need with help from our expert team.
At Precisely, we've been empowering businesses like yours to make confident decisions built on trusted data for more than 50 years.
Experience a space where users and experts come together to find answers, share knowledge, and get more value from Precisely products.
AI confidence is high, but AI readiness tells a different story.
Discussions
Members
Resources
Events
I found the lna for unzipping with python.. but I need to do it with a password.
I tried
zip_ref.extractall(path,pwd='test') but it tells me bad password for file
i know its test since i can manually unzip with that password
The syntax you are using above is correct. It will work for zip files that are encrypted using CRC32 (PKWARE) encryption. However, the Python zipfile module does not support AES-265 encryption (see the 'won't fix' closed bug report here).
This post provides a couple of examples that could be used but they require 3rd party dependencies:
https://stackoverflow.com/questions/15553150/python-unzip-aes-128-encrypted-file
so can the Archive Node use CRC32? or....no?
an Unzip node would be handy... ;)
The Archive Compress node can create an archive with encrypted files that use the standard CRC32/PKWare/ZIP encryption mechanism.
I tired setting it to Standard, but the unzip python code still had the same error..
I just tried it and it worked for me:
See the attached example data and data flow.
Archive_Compress_Invoices_Pwd_is_test.zipExtract Zipped Files_342 - 29 Jan 2020.lna
The password on the zip file is test
Terms of Use LegalPrivacy NoticesTrademarks Your Privacy Choices California Privacy Notices Cookie Settings