Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Other formats > IMP

Notices

Reply
 
Thread Tools Search this Thread
Old 04-07-2010, 12:10 PM   #1
surrealmind
Connoisseur
surrealmind began at the beginning.
 
Posts: 71
Karma: 22
Join Date: Dec 2009
Device: Nook Color CM7, EB 1150, TC1100
What in the world is a key file?

Alright, my Internet searching has come up empty, so I am bringing my newbie problem here. Sometimes when I create an .imp file in eBook Publisher, the program generates a key file (BookName.key) along with the .imp file. I can load the book onto my EB1150, but some books created this way will not open. I get an error message about needing to check the book back out, or something along those lines. Again, it's strange because some books work fine this way while others fail. I've tried both standard methods of uploading the book: impserve and direct copy (of both files) onto the Smartmedia card.

So, what am I doing wrong, and is there any way to get eBook Publisher to generate an .imp file without a .key file? Have I accidentally turned on some kind of library-book timestamp in eBook Publisher? Thanks all for any help.
surrealmind is offline   Reply With Quote
Old 04-07-2010, 11:33 PM   #2
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by surrealmind View Post
So, what am I doing wrong, and is there any way to get eBook Publisher to generate an .imp file without a .key file? Have I accidentally turned on some kind of library-book timestamp in eBook Publisher? Thanks all for any help.
Yes, there is a very simple solution to your problem. Do not encrypt the .imp.

When using eBook Publisher, go to the "Edition Settings..." under the "Build Options" tab and un-check "Encrypt". You must have inadvertently checked it.

The .key file holds the encryption information for Secure .imp, but it needs to be tied to your EBW1150's internal serial number for it to be read there. You cannot do that using the PC software as it doesn't know YOUR internal key.

Per Jeffrey Kraus-yao's excellent reverse-engineering of the .IMP format:
Quote:
DATA.FRK File

Element text is extracted and placed in this file. Elements tags are replaced with control characters. This file can be compressed and encrypted with compression occuring before encryption. This file is compressed when the element <meta name="x-SBP-compress" content="on"/> is included in the <x-metadata> element of the package file. The compression algorithm used is LZSS. This file is encrypted when the element <meta name="x-SBP-encrypt" content="on"/> is included in the <x-metadata> element of the package file. The encryption algorithm used is DES. The 8 byte encryption key is in the SoftBook Edition Encryption Key File (.key) at offset 0x0C.

.key File

When an encrypted .imp file is created the DES encryption key is stored in a file with extension .key. The DES key is used to encrypt the content of file DATA.FRK after compression. This key is encrypted with the REB1200 device key and stored in resource !!ky.

offset 0x00: 4 bytes, constant 0x00000001
offset 0x04: 4 bytes, constant 0x00000000
offset 0x08: 4 bytes, constant 0x00000001
offset 0x0C: 8 bytes, DES key
offset 0x14: 4 bytes, constant 0x00000000
Attached Thumbnails
Click image for larger version

Name:	Clipboard01.jpg
Views:	1533
Size:	40.9 KB
ID:	49441  
nrapallo is offline   Reply With Quote
Advert
Old 04-08-2010, 01:21 AM   #3
surrealmind
Connoisseur
surrealmind began at the beginning.
 
Posts: 71
Karma: 22
Join Date: Dec 2009
Device: Nook Color CM7, EB 1150, TC1100
Quote:
You must have inadvertently checked it.
Okay, thanks Nick, problem solved. The real mystery is how anyone could possibly hit that checkbox accidentally, but alas, I somehow found a way.
surrealmind is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shorty key on my K3 pen_sq Amazon Kindle 1 09-04-2010 01:34 PM
Which eReader Features are key?? WantToBuy Which one should I buy? 15 08-14-2010 09:56 PM
Key to Jump to 30%, 40%, 50% etc of book gregcd Sony Reader 6 10-09-2009 03:57 PM
bad key length tolaat Kindle Formats 3 08-21-2009 01:33 PM
access key RandallFlagg Calibre 4 03-25-2009 12:50 PM


All times are GMT -4. The time now is 06:38 AM.


MobileRead.com is a privately owned, operated and funded community.