Rosie Thomas
Rosie Thomas

Reputation: 63

Finding password protected .ZIP files in Powershell

We want to search the .ZIP files on our system to find out which have been password protected using 7zip (AES 256 encryption) and which have not. As far as I can tell, there is no built-in indicator, flag, property etc. which labels files as password-protected or not.

All the existing questions resulted in people using DotNetZip, but this was distributed on CodePlex which has now been archived - the file I can download from there does not seem to include the Ionic.Zip.dll which I believe is the part I need (e.g. this question).

Likewise, there are popular versions on gitHub and nuGet, which only contain other DLLs (Ionic.Copy.dll and Ionic.IO.JunctionPoint.dll), which I don't think are correct.

It sounds like I in fact need the DotNetZip DevKit to use the particular tool I want in Powershell, but I can't find a popular/reputable/updated download for this.

Is there another way to achieve what I need, or am I doing something wrong with how I'm trying to access DotNetZip?

Upvotes: 0

Views: 532

Answers (1)

BigJoe
BigJoe

Reputation: 131

Found a post by one Igor Pavlov:

7z l a.7z -slt > list.txt and look Encrypted = + and / or "7zAES" in "Method ="

Hope this helps...

Upvotes: 0

Related Questions