View Single Post
Old 05-03-2009, 11:50 AM   #276
joblack
Wizard
joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.
 
Posts: 1,752
Karma: 4382688
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X C
Quote:
Originally Posted by haytham View Post
when i run the new ineptpdf, i am getting the following error "error decrypting book by session key". i am using ineptkey version 2 to extract adeptkey.der
does anybody know how i can fix it?

thanks
That's the line

if bookkey[0] != '\x02':
raise ADEPTError('error decrypting book session key')

I always thought that this was my error (wrong key) because I've got that error, too.

It still occures with the new script but I can't say if it's the 'script's fault' or mine (I debugged the complete script up to this error, it seems that the book key is wrongly decrypted).

Perhaps there is another decryption algorithm which isn't supported by the actual script. Can you open the original encrypted pdf?
joblack is offline   Reply With Quote