-
Notifications
You must be signed in to change notification settings - Fork 480
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
Rar5: IArchiveEntryExtensions WriteTo does not write to stream in 0.33 (RarArchive) #755
Comments
What does entry.Size say for the difference scenarios you test? |
It reports correct size in bytes of that entry |
I don't think you actually know if the password is correct until you try to decompress, that would give you a size, however it would be the wrong size / CRC, comparing the result with entry.Size would make more sense. I tested your code snippet as a test with the archive "Rar.encrypted_filesOnly.rar". |
Thank you for the feedback. When I test with Rar.encrypted_filesAndHeader.rar or Rar.encrypted_filesOnly.rar it works OK (in first case I get exception in second stream.Length is greater than 0). |
RAR5 decryption is a known TODO: https://github.com/adamhathcock/sharpcompress#todos-always-lots Dup of #372 |
I didn't know. Thank you! |
Hello,
I am trying to write a piece of code that verifies if user entered a correct password in case archive was password protected like this:
Problem is stream is always zero. Either it is a bug or I am doing something wrong.
The text was updated successfully, but these errors were encountered: