Conversation
Removed unused imports, cleaned up unused code (Linux and fopn_flock)
Added encrypted URL request and responses.
Updated from Windows Vista, to Windows 10 64-bit
|
If someone else can upload a PDF that wasn't decrypting to try and debug it that would help. I don't know if my changes break previous requests - I haven't got a PDF to test with.. |
There was a problem hiding this comment.
I have many file open files, mainly Australian standards I've paid for but don't open. how do i send them to you to try. Not sure what to do with that script. does it need compiling to run? I posted the debug out of calibre, is thats of any use. back on the apprentice page. let me know how to get it to you.
There was a problem hiding this comment.
You need Python 2.7 installed to run this script - maybe I should update it for Python 3.
These are the modules I have installed:
certifi @ certifi-2019.11.28.tar.gz
pycrypto @ pycrypto-2.6.1.tar.gz
pywin32==225
certifi and pycrypto were both installed as packages downloaded.
Then to run it you an just double click it, or I use the command prompt and type in
C:\Python27\python27.exe "ineptpdf8.6.0.pyw"
Some providers still use the original URL scheme (i.e. not base64 encoded) - these weren't working. Now they should.
|
Idea for improvement. ;) When I handle lines 2397-2401 it with a try-except block, it works. |
Updated the FileOpen DRM so it uses the new URL encryption scheme.
Fixed the computation of the machine and disk keys, so you can decrypt previously opened files from your computer. Previously the machine key was always generating "22222222", and the machine code was slightly off so the last 2 digits were wrong.