![]() |
#16 | |
Dark Lord of the Sith
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 60
Karma: 95334
Join Date: Jul 2010
Location: A Galaxy Far Far Away
Device: Sony PRS-505 and PRS-300, Kobo Wifi, Touch and Mini, Kindle 4NT
|
Quote:
If you've already got ADE running in wine, Just install Windows python and PyCrypto and it'll just work. Good luck! |
|
![]() |
![]() |
![]() |
#17 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 256
Karma: 112042
Join Date: Oct 2010
Location: Maryland, USA
Device: Sony PRS-650
|
Quote:
I want to get better at Python anyway, and poking around and figuring things out is fun. The only difficulty is that If I do come up with a good script or program, I'll be hesitant to share it for fear that evil doers will shut me down and fine me. One thing I need to figure out is how to fetch the epub. The .acsm file has a URL but it also has lots of other information. I'm wondering if ADE adds HTTP GET parameters to the URL when it downloads, maybe something like ..covers.com/?hmac=5Uax... |
|
![]() |
![]() |
![]() |
#18 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 155
Karma: 1008328
Join Date: Oct 2010
Device: Sony PRS-650SC
|
Interesting - could you post the relevant portion from the acsm? I'd like to look at that and see if I can understand what it's doing. (I'm at work
![]() |
![]() |
![]() |
![]() |
#19 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 256
Karma: 112042
Join Date: Oct 2010
Location: Maryland, USA
Device: Sony PRS-650
|
Quote:
Code:
<fulfillmentToken fulfillmentType="buy" xmlns="http://ns.adobe.com/adept"> <distributor>urn:uuid:00000000-0000-0000-0000-000000000000</distributor> <operatorURL>http://acs4.shortcovers.com:8080/fulfillment</operatorURL> <expiration>2010-11-15T06:16:04-06:00</expiration> <transaction>00000000-0000-0000-0000-000000000000</transaction> <resourceItemInfo> <resource>urn:uuid:00000000-0000-0000-0000-000000000000</resource> <resourceItem>1</resourceItem> <metadata> <dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">The Book Title</dc:title> <dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Author</dc:creator> <dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">application/epub+zip</dc:format> <dc:publisher xmlns:dc="http://purl.org/dc/elements/1.1/">Company</dc:publisher> <dc:language xmlns:dc="http://purl.org/dc/elements/1.1/">en-US</dc:language> <dc:description xmlns:dc="http://purl.org/dc/elements/1.1/"></dc:description> <dc:identifier xmlns:dc="http://purl.org/dc/elements/1.1/">0000000000000</dc:identifier> </metadata> <src>http://ecimages.shortcovers.com/00000000-0000-0000-0000-000000000000.epub</src> <downloadType>simple</downloadType> </resourceItemInfo> <hmac>000000000000000000000000000=</hmac> </fulfillmentToken> |
|
![]() |
![]() |
![]() |
#20 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 155
Karma: 1008328
Join Date: Oct 2010
Device: Sony PRS-650SC
|
http://ecimages.shortcovers.com/0000...000000000.epub
Here's the book - that should be downloadable using your browser. |
![]() |
![]() |
![]() |
#21 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,769
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Hi,
Yes that will get you the exact same DRM encoded epub EXCEPT that it will not have the rights.xml file that includes the encoded key needed by ineptepub along with information from encryption.xml to actually decode your book. The key idea here is that there is only one encryption done for that particular book at the source for everyone. The ADE grabs that file and takes the key that will actually decode it and then encodes that key with info based on your personal ADE account (based on your registered device) and creates the rights.xml file inside the epub. Without that right.xml file you can not remove the DRM. So you will need to take a peak at the network traffic (which might be ssl encrypted itself!) that goes on when ADE grabs the book using that .acsm info if you somehow want to get things to work for you under Linux. It is a shame that ADE has not simply made a Linux client. |
![]() |
![]() |
![]() |
#22 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 256
Karma: 112042
Join Date: Oct 2010
Location: Maryland, USA
Device: Sony PRS-650
|
Quote:
|
|
![]() |
![]() |
![]() |
#23 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,769
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Ken,
A google search for this exact string: "ContentServer_UserManual.pdf" is an interesting read. The key idea is without the right signed public/private key pair xml conversation going on between ADE and the fullfillment site (and by the way the hmac is a sha1 hash of the entire xml node conversation so no changes can be inserted) with the proper xml acsm info you will not get a proper rights.xml file created in the .epub you download and so you are out of luck! Pretty smart as it means only an ADE with a registered signature and key pair can get to a usable form of the book! Ingenious really. FWIW, I think this would be very very hard to implement outside of ADE or even to mimic what happens in ADE. So I would simply stick to running Wine or even XP on a virtual machine and running ADE to get your ebooks. Then run ineptkey once to get your adeptkey.der and then the whole conversion can be done from Linux. The funny thing is the ACS code is java and so Linux is used as the server for most of the process. So the back ends runs on Linux just not the ability to actually read an ADE ebook! |
![]() |
![]() |
![]() |
#24 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 256
Karma: 112042
Join Date: Oct 2010
Location: Maryland, USA
Device: Sony PRS-650
|
Thanks again, Kevin, That is and interesting read.
Yes, ironies abound. |
![]() |
![]() |
![]() |
#25 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 155
Karma: 1008328
Join Date: Oct 2010
Device: Sony PRS-650SC
|
Any progress with this?
|
![]() |
![]() |
![]() |
#26 |
01000100 01001010
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,889
Karma: 2400000
Join Date: Mar 2009
Device: Polyamorous
|
|
![]() |
![]() |
![]() |
#27 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 256
Karma: 112042
Join Date: Oct 2010
Location: Maryland, USA
Device: Sony PRS-650
|
Working through the inept code made me realize just how much I need to learn python. So I stopped working on that and started working on learning python.
But then I noticed that you can download python documentation, and I thought hey, wouldn't it be great if I could convert that HTML documentation into a nice epub so I can read it on my eReader? So I played with that for a while and found it's not a trivial exercise. This is in addition to enjoying reading on my delightful eReader. Plus surfing the web and being amazed at the wealth of books available for free (including on this site). (And then there's Christmas.) I feel insecure not being able to control the books that I will eventually purchase, so I'll definitely keep at this. But I've only made a tiny bit of progress so far. |
![]() |
![]() |
![]() |
#28 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 155
Karma: 1008328
Join Date: Oct 2010
Device: Sony PRS-650SC
|
I develop using Python every day at work so I might be able to offer some assistance/effort after Christmas. I wanted to see if I could write a plugin for Calibre to automatically download and add an epub bought from say Kobo.
|
![]() |
![]() |
![]() |
#29 | |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Sep 2011
Device: Entourage Edge
|
Quote:
|
|
![]() |
![]() |
![]() |
#30 |
42, the answer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 124
Karma: 17798
Join Date: Sep 2011
Location: Germany
Device: Pocketbook 603
|
Had the very same problem.
What to do with the acsm file, here is the "simple" solution: I put the acsm file in the same dir where the ade-exe resists, in my case: ~/.wine/drive_c/Programme/Adobe/Adobe Digital Editions I change to that dir and than execude this command: Code:
wine digitaleditions URLLink.acsm Last edited by mclien; 11-14-2011 at 05:45 AM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adobe epub pdf and URLLINK.acsm | Mutts | ePub | 14 | 01-21-2012 03:16 PM |
ACSM file - anyway to download book without ADE? | flyash | Reading and Management | 9 | 06-19-2010 10:58 PM |
File names with "(" and ")" can cause screen freezes | greenapple | Ectaco jetBook | 5 | 02-04-2010 08:25 PM |
"clock" issues with borrowed library books? and ADE ?? | GraceKrispy | Sony Reader | 5 | 01-08-2009 03:54 AM |
Help! the "Make Sony Reader File" under "Options" is different | Dr. Drib | Sony Reader | 6 | 04-23-2007 02:56 AM |