Skip to content
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

How i can set a password to extract password protected 7z file? #77

Closed
SalmaBegumJSR opened this issue Nov 1, 2024 · 10 comments
Closed

Comments

@SalmaBegumJSR
Copy link

as the title says.. how can i extract files form a password protected 7z file? please?

i don't see any option to set the password.. to extract..

thanks in advance..

best regards

@adoconnection
Copy link
Owner

Hi, it was never implemented, alas

@SalmaBegumJSR
Copy link
Author

isn't there any way, we can implement that? is that much touch?

thanks for your response though..

Hi, it was never implemented, alas

@adoconnection
Copy link
Owner

As SevenZipExtractor is simply a wrapper, there must be quite straightforward way to add password support simply passing password string at the right moment, need to find where

@SalmaBegumJSR
Copy link
Author

As SevenZipExtractor is simply a wrapper, there must be quite straightforward way to add password support simply passing password string at the right moment, need to find where

sir, yes though i know it's a wrapper only.. but if i knew where and how to pass the password, then i wouldn't have bother you by this post/messages.

in other words, you are way too expert than me, in your case you may need few minutes to hardly an hour where in my case it can take few days to months.

so, i will be more than grateful if you can kindly show me how to do that (update/add codes to which code file)..

for your referee following library/project can handle the password, but issue is, it can't handle the solid archive to extract from.

https://github.com/squid-box/SevenZipSharp

thanks in advance for your upcoming response/help/support

best regards

@SalmaBegumJSR
Copy link
Author

any help please?

please don't mind and don't take it otherwise.. but i am happy to buy you a coffee.. if that works..

thanks in advance

best regards

@adoconnection
Copy link
Owner

Hi, it turned out its really a matter of few minutes to add password support, preparing new version

@SalmaBegumJSR
Copy link
Author

Hi, it turned out its really a matter of few minutes to add password support, preparing new version

that is so kind of you.. will be waiting for the new version...

@SalmaBegumJSR
Copy link
Author

@adoconnection i am sorry if i am bothering you a lot, just wondering if you got a chance to look in to that? please?

@SalmaBegumJSR
Copy link
Author

any news for me? @adoconnection

@adoconnection
Copy link
Owner

New version finally here:
https://www.nuget.org/packages/SevenZipExtractor/1.0.19

using (ArchiveFile archiveFile = new ArchiveFile(@"Archive.arj"))
{
    archiveFile.Extract("Output", password: "mySecret");
}

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

No branches or pull requests

2 participants