apprenticeharper / DeDRM_tools

DeDRM tools for ebooks
14.55k stars 1.52k forks source link

Unable to decrypt AZW file #1975

Open PisoMojado opened 2 years ago

PisoMojado commented 2 years ago

Hi, I'd first like to say thank you for reading my post and coming to offer me help.

I am attempting to decrypt this book and it appears the plugin is unable to decrypt it successfully.

System: Windows 10 Kindle Desktop App: 1.17.1 (44183) Calibre: 5.32.0 DeDRM: 7.2.1 File: B000UG9JQA_EBOK.azw, size: 9.6 MB

The output is too large to share here, so I have created this gist please be mindful that it is very large and will take time to load.

ElleKayEm commented 2 years ago

Try 64-bit calibre.

PisoMojado commented 2 years ago

Hey, thanks a lot for your reply. I have decrypted quite a lot of books already with this version of Calibre, is there any reason that those have worked and this one has failed?

PisoMojado commented 2 years ago

Also, if you don't mind helping, I don't see a choice for 32 or 64 bit on the calibre website, where should I go for a 64 bit specific download?

ElleKayEm commented 2 years ago

Because this is a large file. There may be something else, but that's the first thing to check. Here is 64-bit calibre: https://calibre-ebook.com/download_windows64

PisoMojado commented 2 years ago

That's reasonable. I gave the 64 bit version a try. I can confirm that the new debug output does not report 32bit process running on 64bit windows, but it otherwise looks to be the same, so I have not uploaded a new gist file.

PisoMojado commented 2 years ago

The size of this file is 9.6 MB, should that matter.

ElleKayEm commented 2 years ago

Alright, it's probably an issue with the topaz format of this book. Development on this branch of DeDRM has ended. There is a newer version here: https://github.com/noDRM/DeDRM_tools

I'd try that version, and post an issue there if it still doesn't work. I don't think there are any improvements between this version and that one that will help here, but hopefully noDRM or someone else there can get this sorted out for you.

noDRM commented 2 years ago

There's been no changes to Topaz books in my fork so far, so I doubt that that's going to help, but it can't hurt to try. There's an open PR on my fork regarding Topaz books ( https://github.com/noDRM/DeDRM_tools/pull/10 ), but that looks like a different error - the log file for the issue in that PR does have an actual error message, while in your log file it looks like it just stops importing for whatever reason.

methanoid commented 2 years ago

Just want to chime in with how noDRMs fork fixed my 22 files which failed previous DRM removal due to tab spacings I think.

Thank you @noDRM :-)

PisoMojado commented 2 years ago

Is there any way to identify whether the book is a Topaz book? I saw the "Invalid Topaz format" in the linked issue, which as @noDRM pointed out, I do not have.

I will give noDRM's fork a try, just in case it helps.

Update: Unfortunately, moving to noDRM's version of the plugin did not resolve the issue.

methanoid commented 2 years ago

he has some patches in.. but yours does look like Topaz to me

Processing: b'version.Topaz_version'

??!

ElleKayEm commented 2 years ago

Yes, it is Topaz. In the log, just as DeDRM starts in:

Decrypting Topaz ebook

It looks like the correct key is found, but something with that particular book must be tripping things up. Are you able to decrypt other books downloaded with this same setup?