Skip to content

Add ability to open password-protected ZIPs #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
joeyaiello opened this issue Apr 21, 2016 · 8 comments
Open

Add ability to open password-protected ZIPs #5

joeyaiello opened this issue Apr 21, 2016 · 8 comments

Comments

@joeyaiello
Copy link

Originally posted on Connect by Mark Wilson and now on UserVoice:

Please add a -Password switch to Expand-Archive so that it can open password-protected archive files. These files can currently be opened only through the GUI.

@megamorf
Copy link

I support this idea. The question is: are we really going to call it "Password" or "Credential"? Credential with its username is kind of ambiguous here. It should be accepted as secure string only either way.

@KirkMunro
Copy link
Collaborator

I think [-Password <SecureString>] makes more sense in this case.

@imposhster
Copy link

It's my understanding the underlying Windows OS doesn't support this and has always been enabled via third party tools like 7zip and WinZip, is my thinking invalid now?

@SteveL-MSFT
Copy link
Member

@imposhster I believe you are correct that the libraries this module depends on doesn't support it

@soroshsabz
Copy link

soroshsabz commented Oct 26, 2018

ITNOA

I think for add this ability, we need first add this ability to dotnet framework, so we have request this feature in .Net community

@SteveL-MSFT
Copy link
Member

It may be better to move to a 3rd party library that already supports passwords like https://github.com/icsharpcode/SharpZipLib which also supports gzip, tar, etc... and might also support zips larger than 4GB which is also a limiting factor with .NET's implementation

@soroshsabz
Copy link

@SteveL-MSFT So if you think this library stable enough, you can change Microsoft.PowerShell.Archive to use 3rd party open source library. I think this ability is very useful for powershell.

@SteveL-MSFT
Copy link
Member

I haven't done enough analysis to determine if moving to SharpZipLib is the right decision. I'll leave that to @anmenaga. However, the limits of the .NET APIs is quite apparent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants