![]() |
#556 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,752
Karma: 4382688
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X C
|
Quote:
Perhaps that could be one solution for the problem Bug fixes of pycrypto: ========== 2.1.0beta1 * Modified RSA.generate() to ensure that e is coprime to p-1 and q-1. Apparently, RSA.generate was capable of generating unusable keys. ========== Try it with a newer py crypto version. --- It complains because the first item in the array isn't equal 02. I don't know why it compares it because in the PDF Reference nothing is mentioned about the 2 as a check value. I haven't checked out the length but if the length is wrong as well (should be 16 Bytes) then something else got wrong. A good idea from you ... The Adobe PDF Reference reads a little bit cryptic so in the worst case someone has to dive into the assembly code of ADE (like ILC did). You only use RSA for decrypting the main decryption key for the symmetric RC4 or AES decryption method who is doing the main work. Only using RSA would be too slow in processing (especially for ebook readers). Last edited by joblack; 12-14-2009 at 05:03 PM. |
|
![]() |
![]() |
![]() |
#557 |
Member
![]() Posts: 11
Karma: 10
Join Date: Apr 2009
Device: none
|
to joblack, I have met a pdf file with drm decryption, however it can not be deprotected using present method given above. I have sent you a message about this, you can try.
|
![]() |
![]() |
![]() |
#558 |
Enthusiast
![]() Posts: 28
Karma: 42
Join Date: Aug 2009
Device: none
|
Hi joblack,
Bad news. I've compiled new version from pycrypto, as you posted, and even pdfminer but no luck. I've regenerated the key using ineptkey and put it into ineptpdf but same error ocurred. I'll try to keep searching a solution for decryption (maybe it's not a problem of an update but a research of the decryption algorithm for older versions)... |
![]() |
![]() |
![]() |
#559 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,752
Karma: 4382688
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X C
|
Quote:
See it that way, the Titanic needed several hours to sink to the ground and you can't expect to solve such a complex situation with a simple fix. Delayed gratification and patience will bring us the solution - sooner or later. |
|
![]() |
![]() |
![]() |
#560 |
Member
![]() Posts: 11
Karma: 12
Join Date: Oct 2009
Device: none
|
For informations:
The ebooks which have EBX_HANDLER V.3 128 byte have the problem "book key error" And the ebooks which have EBX_HANDLER V.4 128 byte are decrypted fine. |
![]() |
![]() |
![]() |
#561 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,752
Karma: 4382688
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X C
|
Quote:
Btw. the plural of information is still information (it's different compared to the German language). Last edited by joblack; 12-19-2009 at 06:35 AM. |
|
![]() |
![]() |
![]() |
#562 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,752
Karma: 4382688
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X C
|
FYI: ineptpdf5.pyw released
# ineptpdf5.pyw, version 5
(...) # 5 - removing small bug with V3 ebooks (anon) (...) It can be found at the usual places ![]() Might most probably solve the book session key error. Might not solve the bookkey error (if not report in the forum). And it most probably won't solve the problem where the pdfs are decrypted correctly (without error message) but then can't be opened (this is a pdf creation problem). Last edited by joblack; 12-20-2009 at 10:57 PM. |
![]() |
![]() |
![]() |
#563 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,752
Karma: 4382688
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X C
|
Quote:
IMHO this error only occures if you have registered and activated your ADE on a website where they gave you a RC4, DES, Tripple DES or RC2 instead of an AES with CBC. see at: The algorithms that shall be used to encrypt the enveloped data in the PKCS#7 object are: RC4 with key lengths up to 256-bits, DES, Triple DES, RC2 with key lengths up to 128 bits, 128-bit AES in Cipher Block Chaining (CBC) mode, 192-bit AES in CBC mode, 256-bit AES in CBC mode. The PKCS#7 specification is in Internet RFC 2315, PKCS #7: Cryptographic Message Syntax, Version 1.5 (see the Bibliography). Anyway, only time will show if the bookkey error will be resistant (I never had one in my bought ebooks - if you still have one after trying out the new version drop me a line). Last edited by joblack; 12-20-2009 at 10:52 PM. |
|
![]() |
![]() |
![]() |
#564 | |
Member
![]() Posts: 11
Karma: 12
Join Date: Oct 2009
Device: none
|
![]() Quote:
Its WOOOooOOOrK, Thank you Joblack; ![]() ![]() ![]() ![]() Now we can Read And Print our ebooks; Which bought them at prices expensive. Thank you Joblack for this release. |
|
![]() |
![]() |
![]() |
#565 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 334
Karma: 1234
Join Date: Jul 2009
Location: Hindelbank, Switzerland
Device: P990i, PRS 505
|
![]() |
![]() |
![]() |
![]() |
#566 |
Zealot
![]() ![]() ![]() Posts: 128
Karma: 278
Join Date: Jun 2008
Device: Kindle; PRS-500; MobiPocket on Windows Mobile
|
|
![]() |
![]() |
![]() |
#567 |
Enthusiast
![]() Posts: 28
Karma: 42
Join Date: Aug 2009
Device: none
|
Thank you very much joblack. I've seen changes from version 4, and these are changesin v5 (if ebx_V == 3: V = 3). I couldn't imagine such a change would make this script work.
Thanks joblack |
![]() |
![]() |
![]() |
#568 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,752
Karma: 4382688
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X C
|
Quote:
![]() Last edited by joblack; 12-21-2009 at 06:39 AM. |
|
![]() |
![]() |
![]() |
#569 |
Member
![]() Posts: 11
Karma: 12
Join Date: Oct 2009
Device: none
|
Now we can Automated The script "ineptpdf_auto_version5.pyw version 5"
![]() Thank you Joblack |
![]() |
![]() |
![]() |
#570 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,752
Karma: 4382688
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X C
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fileopen DRM for PDF circumvented | tetrachroma | 26 | 02-09-2012 07:15 AM | |
Adobe ADEPT DRM for EPUB circumvented | i♥cabbages | ePub | 969 | 08-28-2011 08:52 AM |
Barnes & Noble DRM for EPUB circumvented | i♥cabbages | ePub | 83 | 01-30-2011 02:55 PM |
iPhone adept drm for epub on the iphone | philippd | Apple Devices | 24 | 12-28-2009 02:29 PM |
Adobe PDF DRM? | valkyriesound | Sony Reader | 7 | 02-16-2007 11:25 PM |