apprenticeharper / DeDRM_tools

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

Feature: DeDRM Calibre Tools with RSA private key #807

Open flygonecrazy opened 5 years ago

flygonecrazy commented 5 years ago

Hey!

I have an epub and private key used for symmetric key decryption for this epub. Symmetric key is encrypted using RSA/ECB/PKCS1Padding. Then resources within epub are encrypted using AES/CBC/PKCS5Padding. Would it be difficult to add such DeDRM option to Calibre tools?

Fly

ElleKayEm commented 5 years ago

Who's using this DRM?

flygonecrazy commented 5 years ago

I have a few epub's encrypted in such a way. Not sure about the primary origin.

ElleKayEm commented 5 years ago

You don't know where they're from? Can't see that getting support here. These tools are intended for purchased books.

flygonecrazy commented 5 years ago

I'm interested in understanding how to crack that nut. It doesn't matter where or how those epubs are purchased I guess, or at least this is my point of view. Can you help me with my goal - using private key to decrypt epub? Thanks.

h880015 commented 5 years ago

You can refer to the file ineptpdf.py. It use RSA private key to decrypt AES key then to decrypt book content.