jkim2492 / rididecrypt

Remove DRM from epub from ridibooks.com
GNU General Public License v3.0
36 stars 7 forks source link

Does the program not support decryption of PDF? #8

Closed fade-out-0770 closed 1 week ago

fade-out-0770 commented 1 month ago

One of the files was a PDF, and it was not decrypted.

The name of the relevant book is "Do it! Jump to Python".

thank you.

jkim2492 commented 1 month ago

Currently, it does not support decryption of PDF. Since I don't own any PDF books from the site, I am unable to test. However, I've created a new branch PDF with minimal modifications to see if PDF files use the same encryption scheme. Could you test and see if it works?

fade-out-0770 commented 1 month ago

Currently, it does not support decryption of PDF. Since I don't own any PDF books from the site, I am unable to test. However, I've created a new branch PDF with minimal modifications to see if PDF files use the same encryption scheme. Could you test and see if it works?

PS \rididecrypt> python main.py "\AppData\Roaming******ks\library\usernumber\bookcode" Traceback (most recent call last): File "\rididecrypt\main.py", line 337, in main() File "\rididecrypt\main.py", line 329, in main dest_dir = process_comic(book_dir) File "\rididecrypt\main.py", line 216, in process_comic dest_dir = unpack_comic(comic_dir) File "\rididecrypt\main.py", line 225, in unpack_comic zip_path = glob.glob(os.path.join(comic_dir, ".zip"))[0] IndexError: list index out of range

It seems like it's not working, and this appears to be the same error as before in the unmodified code.

jkim2492 commented 2 weeks ago

That works FYI

Thanks for the confirmation!

It seems like it's not working, and this appears to be the same error as before in the unmodified code.

The error was caused due to a mistake on my end. It was attempting to process it as a comic book.

The latest commit in the PDF branch should have addressed this. If either @SunjunKim or @fade-out-0770 can confirm that it is working, I'll merge it into main

Slowlearner69 commented 2 weeks ago

That works FYI

Thanks for the confirmation!

It seems like it's not working, and this appears to be the same error as before in the unmodified code.

The error was caused due to a mistake on my end. It was attempting to process it as a comic book.

The latest commit in the PDF branch should have addressed this. If either @SunjunKim or @fade-out-0770 can confirm that it is working, I'll merge it into main

Hi, I just tried this and the decrypted file doesn't seem to be decrypted at all. When i try to open it it still gives the same error as the original pdf. Screenshot 2024-08-27 110326

jkim2492 commented 1 week ago

@Slowlearner69

In that case, I'd be inclined to close this issue for now since I'll need to look into the PC client code again to figure out PDF decoding.

However, I'll add it to the Roadmap and work on it later