-
Notifications
You must be signed in to change notification settings - Fork 78
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 can i unrar with password #40
Comments
@beothorn |
Yes, not supported. Looking at the code we just print |
@gotson @beothorn @beothorn |
It seems someone already did it in one of the fork, check here koroshiya/junrar@06bdd47 Maybe you can port the changes. And yes the code is a port of the C code. |
i am working on it. koroshiya/junrar is not based on the latest code,so It may take a few days to resolve this matter。 the feature is a fake,I found that his code was not executed.it is amazing that it can still run normally。 |
I didn't test his fork yet, but i noticed it was using gnu crypto for the Rijndael algorithm (which is not implemented in our version). The jar is added directly in the project, which is bad practice. It seems the jar is available on Maven Central, but the project seems abandoned since 2014. A good replacement could be Bouncy Castle, which is a well-known crypto library for Java. |
I don't agree, i have tested it, and i found it can:
However, i couldn't extract files from an encrypted archive, i get a CRC error. |
hi gotson,I found the key point in koroshiya/junrar.now i unpack the encrypted successfully. |
hi gotson,the api of Rijndael is different from the JDK. |
You can make a PR, I'll have a look, thanks! |
# [7.0.0](v6.0.1...v7.0.0) (2020-07-25) ### Code Refactoring * cleanup public entry points ([70499bb](70499bb)) * move Volume classes to volume package ([c2405e0](c2405e0)) * simplify IO ([b59fc78](b59fc78)) ### Features * add password parameter for inputstream archives ([b218bb9](b218bb9)) * check if archive is password protected ([c1b7728](c1b7728)) * support for password protected archives ([4402afc](4402afc)), closes [#48](#48) [#40](#40) ### BREAKING CHANGES * public API changed * public API changed * name of classes have changed
🎉 This issue has been resolved in version 7.0.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
how can i unrar with password
The text was updated successfully, but these errors were encountered: