3

I've tried for days using DeDRM_Tools as a Calibre plugin, it doesn't work. I've even run Epubor and used it on Wine, the program runs smoothly, but it didn't remove the DRM, unfortunately.
I've just run into this question How to read an ACSM file on Linux?, which seems to have a pretty satisfying answer. I followed all the steps, it's nothing complicated at all. But here come the issues. First of all, ADE runs on wine 5, but glitches and eventually crashes right when I try giving the Adobe ID credentials.
That's fine, I managed to get the encrypted PDF by asking a friend who uses windows to download it for me on ADE.
However, once I get to point 9. and run the Python Script which should extract the adobe key file, it gives me an error. I suspect there's something broken in adobekey.py, a file which comes in the DeDRM_Tool .zip file. In fact, if I go to the DeDRM plugin on Calibre and click "Customize plugin", it opens a window where you have several options, included Adobe Digital Editions.
If I select that, there's a plus button that should generate the key, but it outputs the same error I get with the python script I was talking about before.
I've even tried downloading that same adobekey.py from older versions of DeDRM, but it still doesn't work.
All I really need is that .der file and then everything else should work fine, I'm desperate at this point.
The book has been bought, it's not illegal to remove a DRM for personal use. I just find DRMs extremely immoral and they should be removed, no matter what.
Please, if any of you knows what's going on with that adobekey.py and knows any workaround, or even knows another way I could get that .der file (you could even send it to me on Telegram here), help me out, that would be great.
Thank you.

4
  • It's not illegal for personal use. I've bought the book. I just want to read it on whatever device I happen to have. What you're doing is unfair.
    – Giorgio DT
    Commented Jul 19, 2020 at 15:00
  • "legitimate" LMAO
    – Giorgio DT
    Commented Jul 19, 2020 at 15:36
  • I acknowledge I was incorrect in this case and retract my close vote based on the reference in the answer by @user1686 below.
    – acejavelin
    Commented Jul 19, 2020 at 16:58
  • Ok, that's cool now. Thank you.
    – Giorgio DT
    Commented Jul 19, 2020 at 17:59

2 Answers 2

2

You cannot simply generate a decryption key out of nothing, and you cannot extract it from the encrypted file itself – if that were possible it would make data encryption outright useless, and this applies to most encryption uses, not only to DRM.

(There are minor exceptions, e.g. PDF "lock for editing" obfuscation, which does store the key within the file itself and is indeed useless.)

In the case of DRM, the PDF file is encrypted using a key that is only stored on the ADE installation which acquired the ebook (i.e. on your friend's computer), so the only way to "extract" the key is to run the plugin on that same computer.

References:

3
  • I've managed to get the key (figured out what you said on my own earlier), but the script that's supposed to remove the DRM on the pdf (using that key) doesn't work. I get this error: $ /c/Program\ Files/Python27/python.exe adobekey_1.der ineptpdf.py ~/Downloads/Telegram\ Desktop/elicottero\ encr\ -\ Unknown.pdf elicottero.pdf File "adobekey_1.der", line 1 SyntaxError: Non-ASCII character '\x82' in file adobekey_1.der on line 1, but no encoding declared; see python.org/dev/peps/pep-0263 for details
    – Giorgio DT
    Commented Jul 19, 2020 at 17:58
  • You have the command line the wrong way around. You're trying to run the .der file as if it were a Python script. Commented Jul 19, 2020 at 18:12
  • DAMN I was dumb! I didn't notice I switched the arguments, it worked perfectly. Thank you.
    – Giorgio DT
    Commented Jul 19, 2020 at 18:24
1

3 Years later:

As far as I know DRMs from Google Play Books can be removed but it requires using outdated and partly deprecated programs (i.e., MS .NET 3.5 SP 1 and ADE 2.0.1) or libraries (i.e., pyCrypto). I got it working on a QEMU VM with Wine.

Basically Adobe Digital Editions v. 2.0.1 has a vulnerability that enables you export decrypted files outside its scope. Take a look at my blog for a step-by-step of how I got it working.

1
  • i paid $250 for a pdf and my computer hard drive crashed and the pdf with it. i'll be damned if i pay for the same pdf twice. thx for your blog. i'l check it out.
    – BenKoshy
    Commented Feb 14 at 5:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .