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
Detection of encrypted RAR5 archives #1374
Comments
@antekone could you please give an answer to this question? Thanks. |
My bad, I described the problem wrongly. Is there a special way to open RAR5 files ? Is it not supposed to work ? |
What version of libarchive are you using? 13.4.3 is unknown to me and 3.4.3 was released on May, 20th. If you have bsdtar installed you can check the version number with bsdtar --version |
Sorry, from some reason I've missed this issue. Not sure why. @clover21 is it an option for you to share the RAR5 archives you're trying to open? |
I don't have bsdtar. I tried to attach some rar archives with this message but it says "We don't support that file type". |
Well obviously the 3.2.2 was not yet managing RAR5 archives. |
OK, so I upgraded with build from current master. |
Hi, Current implementation of RAR5 unpacker in libarchive doesn't support encrypted archives. I'm not an expert in libarchive's API, but I think it would be a nice addition to have some API to verify if a particular unpacker supports encryption or not. In current implementation, static int rar5_has_encrypted_entries(struct archive_read *_a) {
(void) _a;
/* Unsupported for now. */
return ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED;
} I think if you're testing it on simple encrypted files, then there's no need to upload them anywhere. If you only need to detect if RAR5 are encrypted or not, without actual decryption, I think it's possible to create small tool for it without much effort. Please give me a note if that's the case. |
Thanks for the answer. |
@clover21 Hello, I am facing the same problem: Can not detect whether the rar5 is encrypted or not ? Could you please tell me more about how you solve this problem? |
Hi, like I said in my previous message, I execute 7z from my program (using exec in Golang) and parse the output of stdout to find relevant information. No clean, but it works somehow. |
Hi, I am currently trying to use libarchive (13.4.3) to test if an archive is password protected.
I used "archive_entry_is_encrypted", which is working for zip and 7z archives. My problem is that it doesn't work for RAR5 archives (I didn't try older versions of RAR), the method returns false even if there is a password.
Am I missing something ? Is there a way to detect encrypted RAR5 archives ?
The text was updated successfully, but these errors were encountered: