View Full Version : bad key length


tolaat
08-09-2009, 05:31 PM
I am trying to use mobidedrm to transform a prc file to a drm free one
I have python 3.1
I am using as parameters the source and new file names and then my mobipocket pid withing quotes.
I am getting "bad key length"
What's missing?
Thanks

demoric
08-09-2009, 05:36 PM
I've read that mobidedrm prefers the 2.6.x branch of python instead of the 3.x
Try using that version of python (I can't confirm or deny that that is an issue). Also if your using a windows system the single quotes aren't required.

Lastly if your books have spaces in the file name you either need to rename them (what I'd recommend) or put them inside of quotes.

mobidedrm I_like_really_long_titles.prc New_File_Name.mobi" 'PID'
mobidedrm "I like really long titles.prc" "I like really long titles.mobi" 'PID'

====UPDATE====
CONFIRMED 2.6.x branch only
http://www.mobileread.com/forums/showthread.php?t=34190&page=3

tolaat
08-14-2009, 10:40 AM
Thanks a lot, that worked easily
Another question now:
Will mobipocket 6.0 show the PID for Kindle DX ?
Will the kindlepid script show it?
Thanks

demoric
08-21-2009, 12:33 PM
Mobipocket Reader version 6.2 build 608 shows a vaild PID for windows systems.
(Also, if you are using a Linux based system you can use WINE and Mobiepocket Reader 4.9 build 446)

As for the Kindle DX I don't know as I don't have one, but fictionwise no longer accepts PID's with an asterix in them (E.G. kindles) when purchasing .prc files. As far as I know the kindlepid will still display the DX PID, but you only need one valid PID to use unless your inserting keys (with other software) instead of removing keys.