View Full Version : Adobe ADEPT DRM for EPUB circumvented


Pages : [1] 2 3 4

i♥cabbages
02-18-2009, 11:02 PM
I have successfully and reproducibly circumvented Adobe's ADEPT DRM system for EPUB files. A discussion of the system and the circumvention is available in a blog post I've made on the subject: Circumventing Adobe ADEPT DRM for EPUB (http://i-u2665-cabbages.blogspot.com/2009/02/circumventing-adobe-adept-drm-for-epub.html).

desertgrandma
02-18-2009, 11:08 PM
I have successfully and reproducibly circumvented Adobe's ADEPT DRM system for EPUB files. A discussion of the system and the circumvention is available in a blog post I've made on the subject: Circumventing Adobe ADEPT DRM for EPUB (http://i-u2665-cabbages.blogspot.com/2009/02/circumventing-adobe-adept-drm-for-epub.html).

Hello, I love cabbages, and welcome to MobileRead. :)

Gideon
02-18-2009, 11:15 PM
I have no way to test this, or inclination... but glad to see it done! Now if we could just get those damn tpz (amz1) files cracked! And Sony's LRF.

pilotbob
02-18-2009, 11:21 PM
Good work. DRM liberation scripts are an interesting academic study. What is a .pyw file? Will this run with python 2.5? Or is 2.6 required.

BOb

pilotbob
02-18-2009, 11:23 PM
I just looked at this more... will this not work on Mac... the comments talk about Windows.

BOb

Seabound
02-18-2009, 11:27 PM
Hah! Bravo! Don't anybody tell Adobe now.

llasram
02-18-2009, 11:30 PM
@BOb I believe .pyw is for Windows, where it runs the scripts using a non-console version of the inerpreter, such as for GUI apps.

And it looks like the key script is for Windows only, but that you can get the key then decrypt anywhere.

wallcraft
02-19-2009, 01:12 AM
What is a .pyw file? Will this run with python 2.5? Or is 2.6 required. This was new to me too. A .pyw is a Windows GUI Python script, so you run it by clicking on it (rather than running it from the command line).

You do need to use python 2.6, or at least the 2.6 PyCrypto needs 2.6.

Leep
02-19-2009, 01:35 AM
Any insight as to whether this will work on library books allowing them to be converted to work on a Kindle? Or on a iPod Touch?

cheers

RobbieClarken
02-19-2009, 08:03 AM
Let me just say i ♥ i♥cabbages. :D Hope you can figure out how to decrypt ADEPT PDFs too.

zelda_pinwheel
02-19-2009, 08:39 AM
i never say this, but it seems appropriate : w00t !! now i can finally buy epub books instead of lit !!! yeah baby ! this is good news.

chorpler
02-19-2009, 09:47 AM
Could somebody explain what an ADEPT PDF is? And how it differs from the DRM-protected PDF files that you, say, check out from public libraries that use OverDrive/ContentReserve and the like?

AlfonsVH
02-19-2009, 10:17 AM
Hmm.. is the blog offline already? I only get an empty page.

chorpler
02-19-2009, 10:37 AM
Yep, seems to have disappeared. But it's still there in the February archive:

http://i-u2665-cabbages.blogspot.com/2009_02_01_archive.html

JSWolf
02-19-2009, 11:00 AM
This was new to me too. A .pyw is a Windows GUI Python script, so you run it by clicking on it (rather than running it from the command line).

You do need to use python 2.6, or at least the 2.6 PyCrypto needs 2.6.
The Windows binary for PyCrypto 2.0.1 is corrupt. But, I did install Python 2.5.4 and the 2.5 version of PyCrypto and have successfully removed the DRM from a DRM infected ePub.

Leep
02-19-2009, 12:08 PM
Could somebody explain what an ADEPT PDF is? And how it differs from the DRM-protected PDF files that you, say, check out from public libraries that use OverDrive/ContentReserve and the like?


Yes, I'd like to understand the differences as well if someone would enlighten us.

thanks

pilotbob
02-19-2009, 12:19 PM
Could somebody explain what an ADEPT PDF is? And how it differs from the DRM-protected PDF files that you, say, check out from public libraries that use OverDrive/ContentReserve and the like?

Secure Adobe is what this is talking about. Adobe calls in "ADEPT". So, any protected books that require digital editions to read use adept DRM.

BOb

Jellby
02-19-2009, 12:35 PM
Yep, seems to have disappeared. But it's still there in the February archive

It must be something with blogspot. I had the same problem with Bookeen's blog, I had to click the month "archive" to see the latest post, if I clicked the post title I got an empty page.

Hadrien
02-19-2009, 12:38 PM
The Windows binary for PyCrypto 2.0.1 is corrupt. But, I did install Python 2.5.4 and the 2.5 version of PyCrypto and have successfully removed the DRM from a DRM infected ePub.

What do you mean by corrupt ? I get a message error on my end: "Error: Incorrect padding"

JSWolf
02-19-2009, 01:04 PM
What do you mean by corrupt ? I get a message error on my end: "Error: Incorrect padding"
The version of Windows PyCrypto 2.0.1 compiled for Python 2.6.xdoes not install. When I try to run it from the command line, I get This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. When I try to install via a double click, I get a requester asing me to pick what application to install it with.

But when I removed Python 2.6.x and installed Python 2.5.4 and the PyCrypto 2.0.1 for Python 2.5, it worked fine. I did try a Google search to find another Windows Bonary for Python 2.6.x and could not find any other copy. But at least Python 2.5.4 with the 2.5 version of PyCrypto works fine to strip the DRM.

All of this is on a WindowsXP Pro system.

Leep
02-19-2009, 01:11 PM
I'm still not quite understanding. My library books download as a ebx.etd file. When clicked, it opens and loads the book into Digital Editions. Is it still a .pdf file or an ADE file? In any event, I get an error when running the decrypt program. Got the key, but decrypt error is: "File is not a zip file" Any clues?

cheers

i♥cabbages
02-19-2009, 01:16 PM
What do you mean by corrupt ? I get a message error on my end: "Error: Incorrect padding"

When are you getting that error? Installing PyCrypto, running adeptkey, or running adeptdecrypt?

If it's running adeptkey, could you try creating a registering a new Adobe ID, activate Digital Editions with that ID, and try again?

If it's running adeptdecrypt, could you e-mail a copy of your key and the error-producing book to i.u2665.cabbages@gmail.com?

thx

Valloric
02-19-2009, 01:18 PM
I have successfully and reproducibly circumvented Adobe's ADEPT DRM system for EPUB files. A discussion of the system and the circumvention is available in a blog post I've made on the subject: Circumventing Adobe ADEPT DRM for EPUB (http://i-u2665-cabbages.blogspot.com/2009/02/circumventing-adobe-adept-drm-for-epub.html).

At the risk of sounding coarse, I can't help but say:

Dude, I fucking love you.

zelda_pinwheel
02-19-2009, 01:19 PM
At the risk of sounding coarse, I can't help but say:

Dude, I fucking love you.

dude, me too. :D

desertgrandma
02-19-2009, 01:20 PM
some serious love going on here.......:rofl:

JSWolf
02-19-2009, 01:30 PM
ebx.etd just tells Digital Editions where to download the PDF or ePub.

Once downloaded, the files are stored in my documents\my digital editions (in Windows).

pilotbob
02-19-2009, 01:30 PM
Ok, can someone clarify. I read a post in here that seemed to say that this "required" Adobe Acrobat? Is that true?

BOb

JSWolf
02-19-2009, 01:31 PM
i♥cabbages can you point us to a working copy of PyCrypto 2.0.1 that works under Windows for Python 2.6? The one you linked us to is corrupt.

JSWolf
02-19-2009, 01:33 PM
Ok, can someone clarify. I read a post in here that seemed to say that this "required" Adobe Acrobat? Is that true?

BOb
Adobe Acrobat is not needed to remove the DRM from ePub.

AnemicOak
02-19-2009, 01:52 PM
Ok, can someone clarify. I read a post in here that seemed to say that this "required" Adobe Acrobat? Is that true?

BOb

I'd think you'd need Digital Editions, but don't know why you'd need Acrobat.

Valloric
02-19-2009, 01:53 PM
The version of Windows PyCrypto 2.0.1 compiled for Python 2.6.xdoes not install. When I try to run it from the command line, I get This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. When I try to install via a double click, I get a requester asing me to pick what application to install it with.

But when I removed Python 2.6.x and installed Python 2.5.4 and the PyCrypto 2.0.1 for Python 2.5, it worked fine. I did try a Google search to find another Windows Bonary for Python 2.6.x and could not find any other copy. But at least Python 2.5.4 with the 2.5 version of PyCrypto works fine to strip the DRM.

All of this is on a WindowsXP Pro system.

Works fine here. WinXP, Python 2.6.1 and pycrypto-2.0.1.win32-py2.6.exe. Installs fine, and double-clicking adeptkey.pyw gave me a "key retrieved successfully" message and a shiny adeptkey.der file with the key.

Now just to find an encrypted epub file to test this out (although after getting the key, there should be no problems).

Once more cabby, thanks.

Valloric
02-19-2009, 02:22 PM
The version of Windows PyCrypto 2.0.1 compiled for Python 2.6.xdoes not install. When I try to run it from the command line, I get This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. When I try to install via a double click, I get a requester asing me to pick what application to install it with.

LOL, I just figured this out.

Short version: install the Microsoft Visual C++ 2008 Redistributable Package (http://www.microsoft.com/downloads/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=en). It should work fine then.

Long version: the person who compiled the Windows version of PyCrypto doesn't know much about Visual Studio. Most C++ applications need the runtime library. By default, Visual Studio sets the runtime library flags to "/MD" and "/MDd", depending on whether you're compiling the release or debug build. The "D" in the flag stands for DLL, which means that the application should link to the DLL version of the runtime. It is up to the developer to distribute those DLLs with his application. The person who compiled the win PyCrypt version apparently doesn't know that. It's a classic rookie mistake...

If one didn't want to use the DLL version of the runtime, one could change those flags to "/MT" and "/MTd", and the runtime gets compiled in with the EXE. No need to distribute the DLLs.

I have those DLLs on my system since I have Visual Studio 2008 (they come bundled in). A person without VS 2008 needs to install the redistributable package to get them. If they don't, they get the nice crashing message.

JSWolf
02-19-2009, 02:24 PM
Whoever compiled the 2.5 version did it correctly. And the scripts do work with Python 2.5.4. So for now I'll stick with that. But thank you for solving the problem with the 2.6 version.

Valloric
02-19-2009, 02:29 PM
Whoever compiled the 2.5 version did it correctly. And the scripts do work with Python 2.5.4. So for now I'll stick with that. But thank you for solving the problem with the 2.6 version.

No, they didn't. :D

You can read it on the Voidspace (http://www.voidspace.org.uk/python/modules.shtml#pycrypto) webpage: "The Python 2.6 binary is built with Visual Studio 2008." They switched compilers for the 2.6 version.

JSWolf
02-19-2009, 03:00 PM
No, they didn't. :D

You can read it on the Voidspace (http://www.voidspace.org.uk/python/modules.shtml#pycrypto) webpage: "The Python 2.6 binary is built with Visual Studio 2008." They switched compilers for the 2.6 version.
The scripts did work here when I ran them under Python 2.5.4 and the 2.5 version of PyCrypto 2.0.1.

i♥cabbages
02-19-2009, 03:02 PM
I'm still not quite understanding. My library books download as a ebx.etd file. When clicked, it opens and loads the book into Digital Editions. Is it still a .pdf file or an ADE file? In any event, I get an error when running the decrypt program. Got the key, but decrypt error is: "File is not a zip file" Any clues?

AdobeDE opens both EPUB files and PDF files, and it looks like you have a PDF file. I haven't looked into decrypting PDF files yet. If you donate to the EFF, ACLU, or Creative Commons at least the cost of an average PDF e-book and send a receipt for the donation to i.u2665.cabbages@gmail.com, I'll look into it.

AnemicOak
02-19-2009, 03:08 PM
Just tried this out on the freebie test book from BoB and it worked great. Thanks cabbages.

Leep
02-19-2009, 03:22 PM
Can you tell me which book you used from BOB. I've tried several but they are downloading as .pdf's and don't seem to work.

cheers

wallcraft
02-19-2009, 03:23 PM
Could somebody explain what an ADEPT PDF is? And how it differs from the DRM-protected PDF files that you, say, check out from public libraries that use OverDrive/ContentReserve and the like? ADEPT is Adobe's name for its DRM. The current tools are for ePub, not PDF. From the blog: The same circumvention probably also allows decryption of ADEPT-encrypted PDF files, although I haven't looked into it yet. Most likely (but not certainly) anything that works for standard ADEPT ebooks will work with lending library ebooks. There are not many ePub lending library books yet, but it would be good to know if the existing tools work on them.

AnemicOak
02-19-2009, 03:25 PM
Can you tell me which book you used from BOB. I've tried several but they are downloading as .pdf's and don't seem to work.

cheers

It's called 'The Year of the Dog' by Grace Lin

It's the only free ePub with DRM I could find.

Leep
02-19-2009, 03:47 PM
OK - I finally get it thanks to Brian. It must be truly ePub and unfortunately the public library books that I've tried so far download as pdf. At least we know that with this tool and Calibre, purchased epub books will work on both the iPod Phone and Touch and the Kindle.

Thanks I love Cabbages and Brian (AnemicOak). This is one step forward.

cheers

AnemicOak
02-19-2009, 04:07 PM
For PDF this has been out there for years. Don't know if it works or not (requires Acrobat 6).

http://www.cs.cmu.edu/~dst/Adobe/Gallery/amazon-remedy.txt

chorpler
02-19-2009, 04:38 PM
For PDF this has been out there for years. Don't know if it works or not (requires Acrobat 6).

http://www.cs.cmu.edu/~dst/Adobe/Gallery/amazon-remedy.txt

It works, but it's very fussy, as I discuss over here (http://www.mobileread.com/forums/showthread.php?p=359560#post359560). If you even install a plugin for Acrobat, it will break this. Plus, it doesn't export the bookmarks or "named destinations" in the file, so links break. All in all, it'll be very nice if ilovecabbages just gets his method working for PDFs as well. And then Topaz! ;) Heck, I'd be willing to donate $50 to THAT cause...

Valloric
02-19-2009, 04:40 PM
The scripts did work here when I ran them under Python 2.5.4 and the 2.5 version of PyCrypto 2.0.1.

You misunderstood what I was saying. Yes, the 2.5 version of PyCrypto works for the 2.5 version of Python, but not because somebody compiled it with VS 2008 correctly, but because they didn't compile it with VS at all. They switched to VS 2008 for the 2.6 release of PyCrypto, as it says so on the webpage.

Anyway, the 2.6 version works fine if you download and install the free redistributable I linked to.

Valloric
02-19-2009, 04:52 PM
It's called 'The Year of the Dog' by Grace Lin

It's the only free ePub with DRM I could find.

Yeah, the only one I could find too. It decrypts nicely for me as well.

AnemicOak
02-19-2009, 04:54 PM
OT: Is BoB the only retailer doing ePub so far?

TadW
02-19-2009, 05:00 PM
eBooks.com probably too. Check the PDF I attached.

Valloric
02-19-2009, 05:05 PM
OT: Is BoB the only retailer doing ePub so far?

This site (http://www.epubbooks.com/) lists a few retailers: Waterstone's (http://www.waterstones.com), Mills&Boon (http://www.millsandboon.co.uk), Penguin Books (http://www.penguin.co.uk), WHSmith (http://ebooks.whsmith.co.uk), BooksOnBoard (http://www.booksonboard.com), O'Reilly (http://www.oreilly.com), PanMacmillian (http://www.panmacmillan.com).

Alisa
02-19-2009, 06:01 PM
How about kicking down some karma for our cruciferae-loving friend here.

pilotbob
02-19-2009, 06:02 PM
This site (http://www.epubbooks.com/) lists a few retailers: Waterstone's (http://www.waterstones.com), Mills&Boon (http://www.millsandboon.co.uk), Penguin Books (http://www.penguin.co.uk), WHSmith (http://ebooks.whsmith.co.uk), BooksOnBoard (http://www.booksonboard.com), O'Reilly (http://www.oreilly.com), PanMacmillian (http://www.panmacmillan.com).

This is good info for a Wiki topic.

I'm just sayin...

BOb

Sydney's Mom
02-19-2009, 07:26 PM
Well, I know what I am going to do tonight. I am going to check out a Chicago Public Library Book, and see if it works! I will report back (hopefully shortly!). Thanks, Debra

Sydney's Mom
02-19-2009, 08:36 PM
My mistake. Chicago Public library is Adobe PDF.

Elfwreck
02-19-2009, 09:20 PM
Books On Board has The Year of the Dog (http://www.booksonboard.com/index.php?BODY=viewbook&BOOK=201834) as a free, DRM'd ePub book.

ShortNCuddlyAm
02-19-2009, 09:36 PM
Will give this a try over the weekend I think - thank you!!

Sydney's Mom
02-19-2009, 10:19 PM
Caution: Dumb question

It seems I cannot remember how I saved the scripts before. I have Python 2.6, I installed pycrypto-2.0.1.win32-py2.6, then I renamed the script and saved it in the python directory, but when I click on it, all it does is open in notepad. I am sorry for asking this simple question again.

Thanks, Debra

Leep
02-19-2009, 10:37 PM
I did a quick search at Overdrive and the only library that I found that has epub is Cleveland Public Library. So congrats all you Cleveland guys - you're way ahead of us.

cheers

Leep
02-19-2009, 10:41 PM
Caution: Dumb question

It seems I cannot remember how I saved the scripts before. I have Python 2.6, I installed pycrypto-2.0.1.win32-py2.6, then I renamed the script and saved it in the python directory, but when I click on it, all it does is open in notepad. I am sorry for asking this simple question again.

Thanks, Debra

The way I do it is open the python wineditor and then choose "file" "new". A little window should open and you choose python script. Paste your script in there.

Incidentally, as mentioned before, Python 2.5 works if you use the previous pycrypt0 revision.

cheers

RobbieClarken
02-19-2009, 11:17 PM
AdobeDE opens both EPUB files and PDF files, and it looks like you have a PDF file. I haven't looked into decrypting PDF files yet. If you donate to the EFF, ACLU, or Creative Commons at least the cost of an average PDF e-book and send a receipt for the donation to i.u2665.cabbages@gmail.com, I'll look into it.

I can't support EFF due to their Net Neutrality policies (keep the government's hands off my internet!) or ACLU due to their opposition to school choice and gun rights. Perhaps that's a bit harsh because both organisations do good work in many other areas. Nevertheless, I won't give money to anyone who wants to take away my liberties so I'm left with Creative Commons.

Hoping very much you succeed in bypassing Adept for PDFs, in which case I'll be buying my eBooks exclusively in ePub/Adobe PDF.

JSWolf
02-19-2009, 11:26 PM
Caution: Dumb question

It seems I cannot remember how I saved the scripts before. I have Python 2.6, I installed pycrypto-2.0.1.win32-py2.6, then I renamed the script and saved it in the python directory, but when I click on it, all it does is open in notepad. I am sorry for asking this simple question again.

Thanks, Debra
The first thing to do is go to Windows Explorer.

1. Tools | Folder Options
2. Click the View Tab
3. Under Hidden Files and Folders select Show hidden files and folders-ON
4. Uncheck Hide extensions for known file types-OFF
5. Unckeck Hide protected operating system files (Recommended)-OFF

It is your system. You should be able to see all the files, hidden, operating system, and even all the file extensions.

After you do that, click Apply to All Folders.

Now you can see the full filenames of the scripts and can properly rename them.

JSWolf
02-19-2009, 11:32 PM
I can't support EFF due to their Net Neutrality policies (keep the government's hands off my internet!)

Do you really want the government to interfere in our net usage? What do you think the government can do for us by meddling with the Internet?

I for one don't want them to get involved.

pilotbob
02-19-2009, 11:34 PM
Do you really want the government to interfere in our net usage? What do you think the government can do for us by meddling with the Internet?

I for one don't want them to get involved.

He is saying he is AGAINST Net Neutrality, which I assume by this he means "governed" neutrality. Where the EFF is for Net Neutrality.

BOb

RobbieClarken
02-19-2009, 11:38 PM
The first thing to do is go to Windows Explorer.

1. Tools | Folder Options
2. Click the View Tab
3. Under Hidden Files and Folders select Show hidden files and folders-ON
4. Uncheck Hide extensions for known file types-OFF
5. Unckeck Hide protected operating system files (Recommended)-OFF

It is your system. You should be able to see all the files, hidden, operating system, and even all the file extensions.

After you do that, click Apply to All Folders.

Now you can see the full filenames of the scripts and can properly rename them.

My files are properly renamed .pyw but they still open in Notepad. So I just start "IDLE (Python GUI)", open the PYW files and choose Run|Run Module (or just click F5). They work fine this way however the Decrypt program freezes when I click Quit (if I click the [X] in the titlebar it closes fine).

Edit: I just tried setting python.exe to be the default program to open PYW files and now they behave correctly. I thought this wasn't working before but I remember now that I had copied to code incorrectly at that point.

JSWolf
02-19-2009, 11:43 PM
He is saying he is AGAINST Net Neutrality, which I assume by this he means "governed" neutrality. Where the EFF is for Net Neutrality.

BOb
If I misread, then ignore my previous post in this thread.

RobbieClarken
02-19-2009, 11:46 PM
He is saying he is AGAINST Net Neutrality, which I assume by this he means "governed" neutrality. Where the EFF is for Net Neutrality.

BOb

Correct. :) I want ISPs to be free to try any business model they like. If my ISP implements policies that negatively effect my internet I'll change provider without hesitation. No need for one-size-fits-all government mandates or regulation of what (in Australia at least) is a brutally competitive market.

Sydney's Mom
02-19-2009, 11:48 PM
Thanks, Jon. I get

Error:exception: access violation writing 0x01B813D0

pilotbob
02-19-2009, 11:49 PM
Correct. :) I want ISPs to be free to try any business model they like. If my ISP implements policies that negatively effect my internet I'll change provider without hesitation. No need for one-size-fits-all government mandates or regulation of what (in Australia at least) is a brutally competitive market.

Way :offtopic: What if you don't have a choice of broadband providers. Many people are in this situation. It is the cable company that has the contract for their area, or nothing.

This is why cable TV is regulated, at least in the US... there are generally no competitors. Yes, there are a few markets where there are. But, the majority of places (at least in the US) most people have a choice of 1 or none.

BOb

slayda
02-19-2009, 11:52 PM
I got all the files, installed all OK, ran adeptkey.pyw, got the adeptkey.der, DLed "The Year of the Dog", got a file called "ebx.etd", ran Adeptdecrypt.pyw with that file and got the following error;

Error: File is not a zip file.

Any suggestions where I went wrong? Was that the correct file to try to decrypt?


EDIT: OK, I see JSWolfs note but I am still looking for the epub file. OK got it now.

Second edit: Thanks, Leep & Wallcraft. It helps if you know what you're doing. I hadn't played with epub or Digital Reader previously.

Leep
02-19-2009, 11:59 PM
you need to run the ebx.etd file first by double clicking on it, which will start up Digital Editions and download your epub book. It will store the file in My documents/my digital editions. Then run the first script which gets the key from you copy of ADE and then the second script which will unDRM your book. Run both of these from the command prompt window and neither needs any parameters.

cheers

wallcraft
02-20-2009, 12:04 AM
Then run the first script which gets the key and then the second script which will unDRM you book. You only need run the key script once (to get a key for your Adobe account). From then on the unDRM script should strip the DRM from any ePub encrypted for that account.

slayda
02-20-2009, 12:24 AM
Well I don't love cabbages but I do love all y'all who lit the path for me. :iloveyou:

da_jane
02-20-2009, 12:40 AM
This is freaking amazing.

Sydney's Mom
02-20-2009, 12:54 AM
I'd love to join the love fest, but I keep getting access violation. I unblocked the file, but can't find anything else under properties to allow it to run. Darn vista.

desertgrandma
02-20-2009, 12:56 AM
I'd love to join the love fest, but I keep getting access violation. I unblocked the file, but can't find anything else under properties to allow it to run. Darn vista.

Let me know if you find out it is indeed Vista or something else.

Sydney's Mom
02-20-2009, 01:04 AM
I will. The second file works fine, I just have to get the darn key!

wallcraft
02-20-2009, 01:11 AM
I'd love to join the love fest, but I keep getting access violation. I unblocked the file, but can't find anything else under properties to allow it to run. Darn vista. I don't have Vista, but I got the "This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem." error mentioned earlier in the thread initially under XP because I had the wrong version of Python installed. I got round this by uninstalling 2.5 and installing 2.6. Based on other comments, the least error prone approach may be to download Python 2.5.4 and PyCrypto 2.0.1 for Python 2.5 (post #20). However, 2.6 worked for me, and see post #32 if it does not.

Leep
02-20-2009, 01:18 AM
Have you downloaded books into Adobe Digital Editions before? If not, you may need to "authorize your computer" You do this by opening ADE and clicking on the little arrow next to "library".

cheers

Sydney's Mom
02-20-2009, 01:34 AM
Thank you Wallcraft and Leep. I discovered I didnt have Active Python installed, so I am installing it now. I hope all my other stuff still works. I will let everyone know. I searched online and thought it might be a permissions issue, but I have admin rights. Fingers are crossed.

Sydney's Mom
02-20-2009, 01:44 AM
Nope. I still get an error box, which is entitled Adept Key, which says error access violation. I will try again tomorrow evening. I never give up!

Sydney's Mom
02-20-2009, 02:48 AM
Nothing works. I stayed up and downloaded and installed python 2.5, and pycrypto, and same error message.

i♥cabbages
02-20-2009, 05:36 AM
Thank you Wallcraft and Leep. I discovered I didnt have Active Python installed, so I am installing it now. I hope all my other stuff still works.

You definitely don't need ActivePython. Please uninstall it first and re-run the Python 2.6 installer to make sure Python scripts are associated with Python 2.6.

For the error... I've been wracking my brain, but I don't have many ideas. I've gotten positive reports from Vista users, so it isn't that. Are you running a 64-bit version of Windows? If so, please make sure you've installed the 32-bit version of Python. Does disabling DEP for Python 2.6 help? -- I am dynamically generating a function on the heap. If none of that works, try running the version of adeptkey.pyw at [removed per MR policy -- will PM] and pasting the results into a CODE block here.

Edit: I removed the direct link to the modified script, but updated the version linked to from my blog. Please run that version and report the output.

samtheeagle
02-20-2009, 05:48 AM
I hope this might help those having issues here... I figured that I would just post what I did yesterday, step by step in the hope that it'll clear up some issues people are having...

Others have said that you might need to install the Microsoft Visual C++ 2008 Redistributable Package, this wasn't the case for me, as I already had it. If you're not sure do it anyway. http://www.microsoft.com/downloads/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=en

Install Python 2.6, I use ActivePython on windows:http://downloads.activestate.com/ActivePython/windows/2.6/ActivePython-2.6.1.1-win32-x86.msi

Then install PyCrypto. I used the latest version, the exe style installer.
http://www.voidspace.org.uk/downloads/pycrypto-2.0.1.win32-py2.6.exe

Install Adobe Digital Editions.
http://www.adobe.com/products/digitaleditions/
Once this is installed you'll be prompted about "activating" it. This must be done to create your own personal key that the DRM remover uses. You can use either of the activation options, I selected the "this machine only" one rather than create an account.

Once all of this is done you should be ready to go!

---
Edit: Detailed info on how to use the DRM tool removed. It's our forum policy. Thanks for your understanding.
---

That should be it! The created ePub file will be all squeaky clean, ready for use in any way you see fit :D

I hope this helps anyone who has been having difficulties, it's what I did and it worked first time...

My instructions were too detailed with regards the the running of the actual scripts :S I hope the info that remains is still of use to people. My only intention was to help those having difficulties!

samtheeagle
02-20-2009, 05:54 AM
You definitely don't need ActivePython. Please uninstall it first and re-run the Python 2.6 installer to make sure Python scripts are associated with Python 2.6.

I just wanted to clear this point up a little... YOU NEED a Python 2.6 installation. ActivePython is just a particular distribution which works well in windows. It's what I have used for years, and it is definitely suitable for these scripts.

Obviously there are other distros too, you only really want one of them installed at a time!

And by the way, DOOOOOD! You're totally awesome for coming up with these scripts, very, very much appreciated! :2thumbsup

Over
02-20-2009, 05:57 AM
I'm just wondering if this news will be harmful to the epub format. I guess publishers won't be so eager to adhere to an already cracked format for their precious ebooks.

At least until they convince themselves that DRM-free ebooks are the way to go. :)

HarryT
02-20-2009, 06:50 AM
I'm just wondering if this news will be harmful to the epub format. I guess publishers won't be so eager to adhere to an already cracked format for their precious ebooks.


It's certainly harmful for users, many of whom will become criminals by using this tool.

tompe
02-20-2009, 06:58 AM
I'm just wondering if this news will be harmful to the epub format. I guess publishers won't be so eager to adhere to an already cracked format for their precious ebooks.

At least until they convince themselves that DRM-free ebooks are the way to go. :)

That is probably a good thing. The bad thing with this tool is that people will buy DRM:ed bookd or borrow them from libraries and therefore showing there support for DRM.

And if you are going to borrow a book from a library and then keep it it would be easier just to download (maybe illegally) a clean version from some distribution site. This is much better since then you do not show a support for DRM:ed books.

i♥cabbages
02-20-2009, 07:01 AM
It's certainly harmful for users, many of whom will become criminals by using this tool.

Was it harmful for Thoreau to "become a criminal" by refusing to pay his poll taxes?

HarryT
02-20-2009, 07:03 AM
Was it harmful for Thoreau to "become a criminal" by refusing to pay his poll taxes?

Sorry, I have no idea what you're talking about.

joblack
02-20-2009, 07:03 AM
It works, but it's very fussy, as I discuss over here (http://www.mobileread.com/forums/showthread.php?p=359560#post359560). If you even install a plugin for Acrobat, it will break this. Plus, it doesn't export the bookmarks or "named destinations" in the file, so links break. All in all, it'll be very nice if ilovecabbages just gets his method working for PDFs as well. And then Topaz! ;) Heck, I'd be willing to donate $50 to THAT cause...

I tried that before - didnīt work for me (and I use Adobe 6).

samtheeagle
02-20-2009, 07:05 AM
It's certainly harmful for users, many of whom will become criminals by using this tool.

Sadly as things stand this is the case. But as the DRM dealers already assume that all end users are criminal anyway...

I am more than happy to pay a reasonable price for a decent product, and I think 99% of people feel the same way. The trouble with DRM is that we're paying too much for a crippled product.

Before these DRM removal tools existed I resigned myself to downloading illegal copies :angry: I point blanky refuse to buy DRM products. Now that these scripts exist I have happily purchased the same books from reputable retailers, and then clean them up so that I can use them as I see fit e.g. With the Calibre software. I'm not about to share them with the world, and cause anyone a loss of profit! In fact these tools have helped the publishers and authors get sales they otherwise would not have!

It's sad that the assumption is that we're all untrustworthy and that we need to be boxed into an inconvenient corner to keep us under control. DRM prevents sales and encourages piracy, I'm proof of it!

It's a well known fact, apparent to everyone except those push DRM.

joblack
02-20-2009, 07:10 AM
Sadly as things stand this is the case. But as the DRM dealers already assume that all end users are criminal anyway...

I am more than happy to pay a reasonable price for a decent product, and I think 99% of people feel the same way. The trouble with DRM is that we're paying too much for a crippled product.

Before these DRM removal tools existed I resigned myself to downloading illegal copies :angry: I point blanky refuse to buy DRM products. Now that these scripts exist I have happily purchased the same books from reputable retailers, and then clean them up so that I can use them as I see fit e.g. With the Calibre software. I'm not about to share them with the world, and cause anyone a loss of profit! In fact these tools have helped the publishers and authors get sales they otherwise would not have!

It's said that the assumption is that we're all untrustworthy and that we need to be boxed into an inconvenient corner to keep us under control. DRM prevents sales and encourages piracy, I'm proof of it!

It's a well known fact, apparent to everyone except those push DRM.

I didn't see that problem. I bought over 130 drmed pdfs and was after some time very angry that I can't use it on my ebook readers.

I also have seen the other effect that people who got the ebook version of a book bought afterwards the paperback book.

i♥cabbages
02-20-2009, 07:25 AM
Sorry, I have no idea what you're talking about.

http://en.wikipedia.org/wiki/Civil_Disobedience_(Thoreau)

(Apologies for being terse -- working via TOR (The Onion Router) is kind of choppy.)

HarryT
02-20-2009, 07:30 AM
With the greatest respect, you cannot compare your activities with those of people like Mr. Thoreau or Mr. Gandhi. Those individuals did not hide behind a cloak of anonymity as you are doing; they openly stood up and said to the authorities "I'm breaking the law; what are you going to do about it?". If you truly wish to commit an act of "Civil Disobedience", then please have the courage to follow their example and openly reveal your identity.

i♥cabbages
02-20-2009, 07:40 AM
With the greatest respect, you cannot compare your activities with those of people like Mr. Thoreau or Mr. Gandhi. Those individuals did not hide behind a cloak of anonymity as you are doing. If you truly wish to commit an act of "Civil Disobedience", then please have the courage to openly reveal your identity.

Oh I wasn't suggesting that I was -- I was referring to the newly-minted "criminals" heartlessly removing the encryption from books they had purchased. But it does raise an interesting question -- if any of the past great leaders of peaceful movements against unjust regimes could have operated under the cover of anonymity current technology allows, would they have done so?

HarryT
02-20-2009, 07:49 AM
I don't think so. To my mind (at least) it is the openness which defines the act of civil disobedience.

I'm afraid that I don't see what you're trying to accomplish by this. Its only impact is going to be to increase the sale of DRM-protected eBooks - is that what you want? The only way to take a stance against DRM is to refuse to buy such books. DRM circumvention does nothing to harm publishers who use DRM, and isn't that what your ultimate goal is?

samtheeagle
02-20-2009, 08:09 AM
I'm afraid that I don't see what you're trying to accomplish by this. Its only impact is going to be to increase the sale of DRM-protected eBooks - is that what you want? The only way to take a stance against DRM is to refuse to buy such books. DRM circumvention does nothing to harm publishers who use DRM, and isn't that what your ultimate goal is?

I'm not sure this is 100% true. I can certainly see that viewpoint, but once the DRM is know to be ineffectual it's about as useful as a chocolate teapot. It's no longer going to deliver the purported "benefits" that are so often touted by those who believe in it.

If all of a sudden we see and increase in the sales of books "protected" by a defunct DRM that's a clear sign that people don't want DRM, but want the product...

HarryT
02-20-2009, 08:17 AM
If all of a sudden we see and increase in the sales of books "protected" by a defunct DRM that's a clear sign that people don't want DRM, but want the product...

But the publisher will probably just see it as a sign that people "like" their DRM system. It's certainly no incentive for them to drop it, is it? The only way to achieve that is not to buy from that publisher, but rather to buy from those who sell books without DRM.

I don't actually see anything terribly objectionable about ADE DRM; it's a pretty transparent system for the user - it's not like Mobi DRM, where you need to re-download your books if you change your device, and you're in danger of losing them if your retailer goes bust.

samtheeagle
02-20-2009, 08:28 AM
That's very true, as I imagine that most people will see what they want to see in the sales data... At the end of the day, these scripts give choice back to the end user, which I feel is a very good thing.

These are just my personal opinions on this much discussed topic. I don't pretend to know all the answers.

I personally find it offensive that I should be deemed a potential criminal from the word go. And in doing so the publishers have effectively made me one. Self-fulfilling prophecy or what eh? :D

llasram
02-20-2009, 08:30 AM
If all of a sudden we see and increase in the sales of books "protected" by a defunct DRM that's a clear sign that people don't want DRM, but want the product...

I agree completely. Plus it gives users more choice to go after the best format for their needs. If I want the most standards-compliant format which we will probably be able to easily render as intended for years to come, then now I can buy the EPUB version, no matter what my preferred reading format is.

HarryT
02-20-2009, 08:32 AM
Well, it's your choice of course, but I'd prefer to express mine by buying from publishers like Baen who don't use DRM in the first place.

-Thomas-
02-20-2009, 08:43 AM
This is really great news, and kudos to the fancy hacker!

llasram
02-20-2009, 08:45 AM
Well, it's your choice of course, but I'd prefer to express mine by buying from publishers like Baen who don't use DRM in the first place.

If only I could buy everything from Baen... But their "non-fiction" section isn't very good ;).

HarryT
02-20-2009, 08:49 AM
We're just going to have to "agree to differ", I'm afraid. I just feel (as you may have gathered by now :) ) that DRM-circumvention tools are not the way to persuade publishers to produce DRM-free books and, indeed, are likely to have entirely the opposite effect. Obviously others hold different views!

samtheeagle
02-20-2009, 09:09 AM
Yes, it's 100% a personal choice. Neither is right or wrong, and somewhere along the line we'll find out what the future of DRM is... Let's hope it all gets untangled sooner rather than later :)

nrapallo
02-20-2009, 09:27 AM
Yes, it's 100% a personal choice. Neither is right or wrong, and somewhere along the line we'll find out what the future of DRM is... Let's hope it all gets untangled sooner rather than later :)

Let's see, we also have .lit DRM - "untangled", .prc DRM -"detangled", .pdf DRM - "work in progress", .IMP (Secured OEBFF) DRM - "still intact".

;) Now, where will all the ebook Publishers have to go to ensure their works are secured... (hint starts with i..m..p.. :snicker:) :eek:

For history repeating itself, look at what happened to the Movie Industry, VHS macrovision - "liberated", DVD DRM - "circumvented", HD DVD - "unravelled", Bluray DVD - "well..."

JSWolf
02-20-2009, 09:40 AM
Sony's BBeB (LRX) has yet to be disinfected.

samtheeagle
02-20-2009, 10:22 AM
The essential point here is that whatever cunning DRM system is devised, there are a lot of very clever people out there who will eventually break it!

DRM - It's a fools errand! (IMHO of course) All it has ever achieved is end user frustration.

Lilly
02-20-2009, 11:14 AM
Sony's BBeB (LRX) has yet to be disinfected.

And I will celebrate the day that happens!! I have mine PRS-505 but the only ePud books I have are DRM free, so I'm really looking forward to LRX being set free!

Elfwreck
02-20-2009, 11:35 AM
It's certainly harmful for users, many of whom will become criminals by using this tool.

One way unjust laws are overturned, is by people refusing to obey them. Jury nullification (http://fija.org/) is (in the U.S.) one of our legal ways of declaring "I don't care what legislators decided... I don't think this act should be punished."

If a law is consistently broken, and the courts can't get convictions for it, that indicates that society as a whole disagrees with the law, no matter how pretty its rhetoric, no matter how compelling businesses may find it.

And civil rights limitations are rarely fixed by changing laws; they are fixed by people refusing to abide by the restrictions placed on them by law. Free speech is a civil rights issue--copyright is not an ownership issue, but a monopoly-of-business issue. And while everyone I know agrees that authors/creators need some rights over their productions, that doesn't mean they agree on what those rights are, or that those rights include making the digital editions more limited than the physical ones.

Used books are a substantial market in the US. There's no reason used ebooks shouldn't also be permitted--or at least, that sharing them should not be permitted. There are technical issues involved in the copying--but those technical issues don't negate one's legal right to resell one's possessions. The focus should be on finding tech solutions to tech problems, not calling people "criminals" for doing what is legal with any other bit of their purchased property.

Format shifting, in the US, is legal. Slapping restrictions on that, and declaring that it's illegal to remove the restrictions, strikes most of us as ridiculous.

When laws are ridiculous, they are ignored, and eventually overturned.

Sydney's Mom
02-20-2009, 01:22 PM
:angry:Me again. I uninstalled Active Python 2.6, reinstalled pycrt, reinstalled adobe, reinstalled both scripts. I installed adeptkey v2 in python 2.6 and on my desktop. I have double clicked - nothing. I also tried command line - nothing. I type adeptkey.pwy, and it returns to the directory.

I'm going to try and reinstall visual C+. I will report. Still:ranting:

Sydney's Mom
02-20-2009, 01:28 PM
No luck. At least I got an error message with v1. Now I get 0.

joblack
02-20-2009, 01:34 PM
I just looked at this more... will this not work on Mac... the comments talk about Windows.

BOb

I think it will work on Mac if you substitute the registry requests with the location on the mac. The rest is the same I suppose ...

delphidb96
02-20-2009, 01:49 PM
One way unjust laws are overturned, is by people refusing to obey them. Jury nullification (http://fija.org/) is (in the U.S.) one of our legal ways of declaring "I don't care what legislators decided... I don't think this act should be punished."

If a law is consistently broken, and the courts can't get convictions for it, that indicates that society as a whole disagrees with the law, no matter how pretty its rhetoric, no matter how compelling businesses may find it.

And civil rights limitations are rarely fixed by changing laws; they are fixed by people refusing to abide by the restrictions placed on them by law. Free speech is a civil rights issue--copyright is not an ownership issue, but a monopoly-of-business issue. And while everyone I know agrees that authors/creators need some rights over their productions, that doesn't mean they agree on what those rights are, or that those rights include making the digital editions more limited than the physical ones.

Used books are a substantial market in the US. There's no reason used ebooks shouldn't also be permitted--or at least, that sharing them should not be permitted. There are technical issues involved in the copying--but those technical issues don't negate one's legal right to resell one's possessions. The focus should be on finding tech solutions to tech problems, not calling people "criminals" for doing what is legal with any other bit of their purchased property.

Format shifting, in the US, is legal. Slapping restrictions on that, and declaring that it's illegal to remove the restrictions, strikes most of us as ridiculous.

When laws are ridiculous, they are ignored, and eventually overturned.

When was the last time a major law was overturned by jury nullification? When was the last time a judge explained that this is one of the options to a jury?
When was the last time a judge ruled that people could even stand outside a courthouse handing out literature to prospective jurors explaining this right without fear of being arrested?

Yes, 'jury nullification' is every juror's right - but the current legal system does its very best to ensure no juror EVER finds this out!

Derek

pilotbob
02-20-2009, 01:50 PM
I don't actually see anything terribly objectionable about ADE DRM; it's a pretty transparent system for the user - it's not like Mobi DRM, where you need to re-download your books if you change your device, and you're in danger of losing them if your retailer goes bust.

I would agree with you if every device supported it. But, DRM is vendor lock-in.. nothing more. It's about money not copyright protection. Content owners WANT you to have to buy the same content over and over. (Evidenced by the 6 devices only limit)

Many of us have done just that, going from records to 8-track to cassette to CD and now to digital. They publishers want it to be illegal to rip our CDs to digital because they think we should pay for the music again. They don't consider that we "OWN" the content the consider that we own the media only... and if we want it on a different format we have to pay again.

These media companies have to change this attitude. There continuing revenue stream should be from people that don't own the content and by creating NEW content that people want. Why do you think they want to keep extending the copyright term? They want to do this so they can keep selling us the same old stuff over and over. They know how much easier it is to re-press a CD from masters and re-sell it that to produce new music.

Oh... well I promised myself I wouldn't get sucked into this discussion and it has happened again.

BOb

JSWolf
02-20-2009, 02:01 PM
:angry:Me again. I uninstalled Active Python 2.6, reinstalled pycrt, reinstalled adobe, reinstalled both scripts. I installed adeptkey v2 in python 2.6 and on my desktop. I have double clicked - nothing. I also tried command line - nothing. I type adeptkey.pwy, and it returns to the directory.

I'm going to try and reinstall visual C+. I will report. Still:ranting:
After you install the visual c++ runtime stuff, also install PyCrypto 2.0.1 at http://www.voidspace.org.uk/downloads/pycrypto-2.0.1.win32-py2.6.exe

Sydney's Mom
02-20-2009, 02:02 PM
Add Python 26 to Dep, ran as administrator, get following error

File (stdin) line1 in (module)
NameError: name 'adeptkey' is not defined.

I'm sure this is a dumb mistake. Anyone want to tell me off?

Sydney's Mom
02-20-2009, 02:03 PM
I only use mobidedrm on books I have bought, and I only keep that copy, for my own reading. I do not believe that violates fair use, and even if it did, damages are 0. Same with this, if I ever get it to work!

Leep
02-20-2009, 02:06 PM
Add Python 26 to Dep, ran as administrator, get following error

File (stdin) line1 in (module)
NameError: name 'adeptkey' is not defined.

I'm sure this is a dumb mistake. Anyone want to tell me off?
Either you do not have a python script called adeptkey.py, or your copy of Digital Editions has not been registered with Adobe by my way of thinking.

wallcraft
02-20-2009, 02:11 PM
Either you do not have a python script called adeptkey.py, or your copy of Digital Editions has not been registered with Adobe by my way of thinking. I think the latter (not registered), or perhaps only registered for a particular user (i.e. not for the administrator).

i♥cabbages
02-20-2009, 02:17 PM
Add Python 26 to Dep, ran as administrator, get following error

File (stdin) line1 in (module)
NameError: name 'adeptkey' is not defined.

I'm sure this is a dumb mistake. Anyone want to tell me off?

Ok, it looks what you're doing here is opening the Python interpreter then typing 'adeptkey'. Unfortunately, that's not quite how it works. I do want you to try running adeptkey from the command-line, and here's what to do:


Create a copy of the adeptkey script right in the root of your C: drive. So you should navigate to your C: drive and see "adeptkey.pyw" right there.
Use the Windows "Start" menu (or whatever they call it on Vista) and select the "Run" option.
Type "cmd.exe" (without the quotes) and press "enter" or click "ok"
In that window, type "cd c:\" (no quotes) and press "enter"
Then type "Python26\python.exe adeptkey.pyw" (still no quotes) and press enter.


If it doesn't generate the key, please attach a screenshot of what happens.

JSWolf
02-20-2009, 02:26 PM
[5]Then type "Python26\python.exe adeptkey.pyw" (still no quotes) and press enter.

There's no need to type anything other than adeptkey.pyw as Python sets up the association. I have my copy as adeptkey.py and that worked fine. Maybe it's the .pyw that is the problem?

nrapallo
02-20-2009, 02:37 PM
There's no need to type anything other than adeptkey.pyw as Python sets up the association. I have my copy as adeptkey.py and that worked fine. Maybe it's the .pyw that is the problem?

But, Jon, this was test to see exactly what happens when... for debugging purposes. Been there, done that! :smack:

It's not for typical usage... ;)

JSWolf
02-20-2009, 02:43 PM
But, Jon, this was test to see exactly what happens when... for debugging purposes. Been there, done that! :smack:

It's not for typical usage... ;)
I'm just saying that if it doesn't work without the Python command being specified then something is wrong with the system or the install. I've never needed to use the Python command. All I've ever had to do is give the full name of the script/program with the extension in the command line and it's run.

i♥cabbages
02-20-2009, 03:06 PM
I think the latter (not registered), or perhaps only registered for a particular user (i.e. not for the administrator).

For version 2 of the script I added error-checking for all the common cases I could think of, such as not activated, and for an unexpected error it will display the exception and stack trace in a text box one can easily copy-paste from. I literally cannot see any code path which would lead to the "no output at all" case Sydney's Mom is seeing.

There's no need to type anything other than adeptkey.pyw as Python sets up the association. I have my copy as adeptkey.py and that worked fine. Maybe it's the .pyw that is the problem?

The .pyw extension associates the script with a non-console version of the interpreter. I want to make certain this gets run with the console version so that any uncaught exceptions will generate a stack trace in the console. Plus I'm not sure what's happened with SM's file associations as she seems to have installed multiple Python distros at some point. Just trying to control all variables.

Lilly
02-20-2009, 03:30 PM
Add Python 26 to Dep, ran as administrator, get following error

File (stdin) line1 in (module)
NameError: name 'adeptkey' is not defined.

I'm sure this is a dumb mistake. Anyone want to tell me off?

I had that error. I created a folder in the C drive called ePud and copy and past both script in that folder and then it worked fine.

Valloric
02-20-2009, 03:52 PM
I would agree with you if every device supported it. But, DRM is vendor lock-in.. nothing more. It's about money not copyright protection. Content owners WANT you to have to buy the same content over and over.(Evidenced by the 6 devices only limit)

Many of us have done just that, going from records to 8-track to cassette to CD and now to digital. They publishers want it to be illegal to rip our CDs to digital because they think we should pay for the music again. They don't consider that we "OWN" the content the consider that we own the media only... and if we want it on a different format we have to pay again.

This doesn't happen often, but I completely agree with pilotbob.

Elfwreck
02-20-2009, 04:07 PM
When was the last time a major law was overturned by jury nullification?

We don't know, because juries don't give verdicts of "nullified because we think this law is inapplicable to this situation." They come back with "guilty" or "not guilty," and don't have to explain why.

How many "not guilty" verdicts seem to contradict the evidence or the law?

When was the last time a judge explained that this is one of the options to a jury?

While the right of jury nullification is part of our legal rights (http://www.fija.org/docs/state_language_on_jury_nullification.pdf) and has been upheld, it's also been ruled that judges have no requirement to inform juries of this right (http://www.askthelawguy.info/images/moylan.pdf) ... apparently, they have to discover it on their own.We recognize, as appellants urge, the undisputed power of the jury to acquit, even if its verdict is contrary to the law as given by the judge, and contrary to the evidence.HOWEVER: nowhere does it hold, as appellants here contend, that the jury should be instructed that it may disregard the law as declared by the judge.

So they have the right to nullify, but not the right to be told they have this right.

Sydney's Mom
02-20-2009, 04:19 PM
Thanks, everyone. I will try it as soon as I get home tonight. I tried both pyw and py, and most of the suggestions, but I plan on picking a restore point before yesterday, restoring, and then starting all over.

I plan on drinking champagne tonight, as I was spared in our latest round of job cuts. I'm sure that will only HELP my computer skills.

daesdaemar
02-20-2009, 06:14 PM
Need help please.

I have python 2.6 installed which I've used successfully many time. I installed pycrypto-2.01.win32-py2.6.exe and it installed fine. When I double-click adeptkey.pyw, I get the message: This script requires PyCrypto which must be installed separately. Read the top-of-the-script comments for details.

Help please.

Sydney's Mom
02-20-2009, 06:24 PM
I downloaded Adobe Digital Editions from the library. I registered it with Adobe. Is there somewhere else to get it? Where did you get yours? I'm trying to isolate and since Python 2.6 works (mobidedrm 4 and 5 work like a dream) I think it might be an Adobe problem. I have Adobe installed in C:/Program Files/Adobe/Adobe Digital Editions. I have Python installed C:/Python26.

i♥cabbages
02-20-2009, 06:34 PM
Need help please. I have python 2.6 installed which I've used successfully many time. I installed pycrypto-2.01.win32-py2.6.exe and it installed fine. When I double-click adeptdecrypt.pyw, I get the message: This script requires PyCrypto which must be installed separately. Read the top-of-the-script comments for details.

Do you perhaps have multiple Python distributions installed?; e.g., the official python.org one and ActivePython, or multiple versions of Python? Try re-downloading and re-running the official python.org Python 2.6 installer. It should give you an option to "repair" which will hopefully make sure your file associations are for that Python distribution. If that doesn't work, please try running it from the command line as I suggest in this post (http://www.mobileread.com/forums/showpost.php?p=361219&postcount=119).

daesdaemar
02-20-2009, 06:47 PM
Do you perhaps have multiple Python distributions installed?; e.g., the official python.org one and ActivePython, or multiple versions of Python? Try re-downloading and re-running the official python.org Python 2.6 installer. It should give you an option to "repair" which will hopefully make sure your file associations are for that Python distribution. If that doesn't work, please try running it from the command line as I suggest in this post (http://www.mobileread.com/forums/showpost.php?p=361219&postcount=119).

I re-installed Python and PyCrypto and I got my key. I'll continue to work with it.

Thanks...

delphidb96
02-20-2009, 07:43 PM
We don't know, because juries don't give verdicts of "nullified because we think this law is inapplicable to this situation." They come back with "guilty" or "not guilty," and don't have to explain why.

How many "not guilty" verdicts seem to contradict the evidence or the law?



While the right of jury nullification is part of our legal rights (http://www.fija.org/docs/state_language_on_jury_nullification.pdf) and has been upheld, it's also been ruled that judges have no requirement to inform juries of this right (http://www.askthelawguy.info/images/moylan.pdf) ... apparently, they have to discover it on their own.HOWEVER:

So they have the right to nullify, but not the right to be told they have this right.

And with several generations being raised with "civics education" classes that somehow manage to NEVER MENTION jury nullification, just when, where and how are all these potential jurors gonna learn of their right to do so??? Hmmmm....:smack:

That's just part of the whole concept of current education philosophy. Right along with explanations that the Bill of Rights is NOT a list of what citizens can do but what government is specifically prevented from denying to citizens.

Yep. No conspiracy on the part of judges, lawyers, educators and politicians here. Move along, there's nothing to see here. :D

Derek

pilotbob
02-20-2009, 08:26 PM
And with several generations being raised with "civics education" classes that somehow manage to NEVER MENTION jury nullification, just when, where and how are all these potential jurors gonna learn of their right to do so??? Hmmmm....:smack:

That's why you are supposed to watch "The Practice" and its spinoff "Boston Legal".

BOb

daesdaemar
02-20-2009, 09:34 PM
I don't wish to belittle the magnitude of this accomplishment. However, I believe the REAL cat's a$$ will be breaking Adobe Digital Edition's PDF DRM.

joblack
02-20-2009, 09:53 PM
I don't wish to belittle the magnitude of this accomplishment. However, I believe the REAL cat's a$$ will be breaking Adobe Digital Edition's PDF DRM.

Don't press down the accomplishment. The DE PDF encryption uses the same techniques only different metadata and format configuration ...

Valloric
02-20-2009, 09:56 PM
I don't wish to belittle the magnitude of this accomplishment. However, I believe the REAL cat's a$$ will be breaking Adobe Digital Edition's PDF DRM.

Read on. (http://www.mobileread.com/forums/showthread.php?t=31408&page=2#post359156)

Sydney's Mom
02-21-2009, 12:18 AM
OK. I uninstalled Python 26. I then installed Python 2.61, and pyrocrypt. I then copied both scripts to my desktop, saved them to a file I created C:\EPub and renamed them to .pwy. When I doubleclicked on the icon, nothing happened. So I ran the script from the command prompt C:/. Here is my screen shot:

Traceback (most recent call last):
File "C:\Python26\adeptkey.pyw", line 197, in main
retrieve_key(keypath)
File "C:\Python26\adeptkey.pyw", line 139, in retrieve_key
vendor = cpuid0()
File "C:\Python26\adeptkey.pyw", line 102, in cpuid0
cpuid0__(buffer)
WindowsError: exception: access violation writing 0x019F79D0

Any help would be greatly appreciated.

Sydney's Mom
02-21-2009, 12:44 AM
Ok, it looks what you're doing here is opening the Python interpreter then typing 'adeptkey'. Unfortunately, that's not quite how it works. I do want you to try running adeptkey from the command-line, and here's what to do:


Create a copy of the adeptkey script right in the root of your C: drive. So you should navigate to your C: drive and see "adeptkey.pyw" right there.
Use the Windows "Start" menu (or whatever they call it on Vista) and select the "Run" option.
Type "cmd.exe" (without the quotes) and press "enter" or click "ok"
In that window, type "cd c:\" (no quotes) and press "enter"
Then type "Python26\python.exe adeptkey.pyw" (still no quotes) and press enter.


If it doesn't generate the key, please attach a screenshot of what happens.

I don't know how to do a screen shot of the cmd.exe, but when I did exactly the above, this is what I got

C:\>Python26\python.exe.adeptkey.pyw
File "adeptkey.pyw", line1
SyntaxError: Non-ASCII character '\xff' in file adeptkey.pyw on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

Thanks. I am going to try and check out the python html. Debra

Sydney's Mom
02-21-2009, 12:53 AM
I think I am getting somewhere. If I simply rename the file, and run it from my desktop, it opens a command prompt window, and on top of that I get the following:

Traceback (most recent call last):
File "C:\Users\Debra\Desktop\adeptkey.pyw.txt", line 197, in main
retrieve_key(keypath)
File "C:\Users\Debra\Desktop\adeptkey.pyw.txt", line 139, in retrieve_key
vendor = cpuid0()
File "C:\Users\Debra\Desktop\adeptkey.pyw.txt", line 102, in cpuid0
cpuid0__(buffer)
WindowsError: exception: access violation writing 0x019F1570

Sydney's Mom
02-21-2009, 12:54 AM
PS: Adeptdecrypt.pyw runs fine.

nrapallo
02-21-2009, 12:55 AM
I don't know how to do a screen shot of the cmd.exe

Just click your command prompt window to activate it, then press the keys 'Alt' 'Print Screen'
(like you would press 'shift' 'A').

Now find and launch the MS Paint program or your favourite graphics editor and Paste...

Presto, window screen shot. For the entire screen, press 'Ctrl' 'Print Screen". :)

wallcraft
02-21-2009, 01:08 AM
PS: Adeptdecrypt.pyw runs fine. If adeptdecrypt.pyw strips the DRM, then you already have a good key, in adeptkey.der, and you don't need to run adeptkey.pyw again. If not, I assume you have adeptkey.pyw version 2?

pilotbob
02-21-2009, 01:21 AM
WindowsError: exception: access violation writing 0x019F1570

This looks like it is trying to write the file and can't. I could be wrong but.. what OS are you running? Is it Vista?

BOb

Sydney's Mom
02-21-2009, 01:33 AM
Yes, dreaded vista. Adeptdecrypt runs, but I don't have the key, yet. Just need that.

i♥cabbages
02-21-2009, 08:54 AM
SyntaxError: Non-ASCII character '\xff' in file adeptkey.pyw on line 1

WindowsError: exception: access violation writing 0x019F1570

These are two entirely different errors, which is making this harder to diagnose. The first one means that you saved the Python script as something other than ASCII, in this case seemingly UTF-16. Open a new instance of notepad, showing a completely empty file. Copy-paste from the web page again, making certain to copy from the text-box and not from the syntax-colored page content.

The second error means that one of the embedded machine code functions in the Python script attempted to access invalid memory. But (a) I have absolutely no idea in hell what could be causing that and (b) when I simulate generating an access violation I get the exception-trace window I added for adeptkey v2. I'd say that you're still running v1, except the line numbers from the exception traces match v2.

I'm hoping the second error is somehow an artifact of the encoding problem causing the first error. If not, I'm out of ideas.

JSWolf
02-21-2009, 09:06 AM
Yes, dreaded vista. Adeptdecrypt runs, but I don't have the key, yet. Just need that.
Turn off UAC. What I am thinking is that adeptkey isn't allowed access to where Adobe Digital Edition stores the key. UAC is nothing more then Microsoft telling you you cannot have access to your system to do what you want. So turn UAC off and never look back. If you don't know how to turn UAC off, look in Help and Support and type in UAC. That will help you turn it off.

hekkel
02-21-2009, 09:32 AM
Turn off UAC. What I am thinking is that adeptkey isn't allowed access to where Adobe Digital Edition stores the key. UAC is nothing more then Microsoft telling you you cannot have access to your system to do what you want. So turn UAC off and never look back. If you don't know how to turn UAC off, look in Help and Support and type in UAC. That will help you turn it off.

Bad advice IMHO. If you're not very computer savvy, you'd better leave UAC on. And it doesn't interfere with the script, I used Vista when uncloaking my key.

BTW, both scripts work in wine as well as I found out later.

-maarten

JSWolf
02-21-2009, 09:34 AM
Bad advice IMHO. If you're not very computer savvy, you'd better leave UAC on. And it doesn't interfere with the script, I used Vista when uncloaking my key.

BTW, both scripts work in wine as well as I found out later.

-maarten
But it also depends if the account that is being used on Vista has administrator privileges or not. UAC is best left turned off. It was a bad idea by Microsoft. Besides, I do not enjoy having to authorize everything I want to do on MY system. This is why I turned off UAC on our laptop.

pilotbob
02-21-2009, 11:05 AM
But it also depends if the account that is being used on Vista has administrator privileges or not. UAC is best left turned off. It was a bad idea by Microsoft. Besides, I do not enjoy having to authorize everything I want to do on MY system. This is why I turned off UAC on our laptop.

Presumably if you are able to use ADE and it needs to read the Key from somewhere... then your user has rights to read it. So, your user account has rights to read it, so it will when you run this script.

Also, if you were running UAC and the program requested access to something your non-elevated token it should request elevation via the UAC prompt.

Even with running UAC you can start the command window "as administrator" and then any process it spawns will also have full admin rights.

Many people blame UAC for things it isn't responsible for. Although UAC is mostly annoying because many apps still are written properly for Vista and/or to run as "standard user" account.

BOb

joblack
02-21-2009, 02:17 PM
Please help me get a BeBook for my wife. Use the email code jswolf@gmail.com to purchase a BeBook and get a discount for yourself.


Please don't do advertisment here - anyway your wife isn't able to work for herself?

desertgrandma
02-21-2009, 02:23 PM
Please don't do advertisment here - anyway your wife isn't able to work for herself?

If you have a problem with a members signature, I think you need to bring it to the attention of a Mod.

I don't have any problem with his sig, and if I did, I'd just ignore it.

pilotbob
02-21-2009, 02:39 PM
Please don't do advertisment here - anyway your wife isn't able to work for herself?

People are perfectly welcome to have a reasonable length signature here with any content they'd like. As long as it isn't illegal or lewd I don't see a problem with it. As long as they aren't obviously SPAM posting to get that "ad" seen.

BOb

nrapallo
02-21-2009, 03:15 PM
BOb

:thumbsup: And I'd like to add, that's BOb the Mod! :stare:

Sydney's Mom
02-21-2009, 03:22 PM
These are two entirely different errors, which is making this harder to diagnose. The first one means that you saved the Python script as something other than ASCII, in this case seemingly UTF-16. Open a new instance of notepad, showing a completely empty file. Copy-paste from the web page again, making certain to copy from the text-box and not from the syntax-colored page content.

The second error means that one of the embedded machine code functions in the Python script attempted to access invalid memory. But (a) I have absolutely no idea in hell what could be causing that and (b) when I simulate generating an access violation I get the exception-trace window I added for adeptkey v2. I'd say that you're still running v1, except the line numbers from the exception traces match v2.

I'm hoping the second error is somehow an artifact of the encoding problem causing the first error. If not, I'm out of ideas.


Okay, I am a real computer dope, so please forgive me. I was saving the color-page, merely downloading and renaming. So, I copied the text, pasted into notebook, and then saved as adeptkey.pyw, all files, in python26. I used the command prompt as administrator, and typed C:/Python26>python.exe adeptkey.pyw

This is the error message I got, in and ADEPT Key box:

Traceback (most recent call last):
File "adeptkey.pyw", line 197, in main
retrieve_key(keypath)
File "adeptkey.pyw", line 139, in retrieve_key
vendor = cpuid0()
File "adeptkey.pyw", line 102, in cpuid0
cpuid0__(buffer)
WindowsError: exception: access violation writing 0x01A3E5F8

When I tried the second, I got:

Traceback (most recent call last):
File "adeptkey.pyw", line 198, in main
retrieve_key(keypath)
File "adeptkey.pyw", line 140, in retrieve_key
vendor = cpuid0()
File "adeptkey.pyw", line 103, in cpuid0
cpuid0__(byref(buffer))
WindowsError: exception: access violation writing 0x019B1E30

JSWolf
02-21-2009, 03:28 PM
Please don't do advertisement here - anyway your wife isn't able to work for herself?
What has that to do with anything in this thread?

JSWolf
02-21-2009, 03:30 PM
Okay, I am a real computer dope, so please forgive me. I was saving the color-page, merely downloading and renaming. So, I copied the text, pasted into notebook, and then saved as adeptkey.pyw, all files, in python26. I used the command prompt as administrator, and typed C:/Python26>python.exe adeptkey.pyw

This is the error message I got, in and ADEPT Key box:

Traceback (most recent call last):
File "adeptkey.pyw", line 197, in main
retrieve_key(keypath)
File "adeptkey.pyw", line 139, in retrieve_key
vendor = cpuid0()
File "adeptkey.pyw", line 102, in cpuid0
cpuid0__(buffer)
WindowsError: exception: access violation writing 0x01A3E5F8

When I tried the second, I got:

Traceback (most recent call last):
File "adeptkey.pyw", line 198, in main
retrieve_key(keypath)
File "adeptkey.pyw", line 140, in retrieve_key
vendor = cpuid0()
File "adeptkey.pyw", line 103, in cpuid0
cpuid0__(byref(buffer))
WindowsError: exception: access violation writing 0x019B1E30
Go back to pasebin. Click the link at the top labeled download and then give the script the proper name of adeptkey.pyw and save it. Then try running it. It's what I did.

Sydney's Mom
02-21-2009, 03:41 PM
Tried something else.
C:\>python26
C:\Python26>python.exe
Python2.6.2 ,r261:67517, Dec 4 2008, 16:51:00> [MSC v.1500 32 bit <Intel>] on win32
type "help", "copyright"' "credits" or "license" for more information.

>>>

Then I typed adeptkey.pyw

I got

Traceback <most recent call last>:
File "<stdin>", line 1, in <module>
NameError: name 'adeptkey' is not defined
>>>


so it looks like python is working, correct? I am just doing something wrong in saving adeptkey.pyw. I copied and pasted from text bin, then saved as All Files adeptkey.pyw in Python26.

Thanks for your help. As I indicated, Adeptdecrypt is working (just asking for a key I don't have). I did the exact same thing with both. I am running the command prompt as administrator.

Thanks, Debra

Leep
02-21-2009, 04:06 PM
It looks like you're getting python open ok. With the python editor open, click on "file" "new". You will get a little box asking if you want to save it as a python script, click ok and then paste the information you copied from pastebin in here. Then save the script with the name adeptkey.pyw and see if that works for you.

cheers

joblack
02-21-2009, 04:44 PM
What has that to do with anything in this thread?

Exactly, I don't write in every forum posting:

Please donate me money, my {wife, dog, girfriend} wants new shoes ...

slayda
02-21-2009, 05:18 PM
Exactly, I don't write in every forum posting:

Please donate me money, my {wife, dog, girfriend} wants new shoes ...

What, they're all pregnant at the same time? You dog!! :rofl:

Sydney's Mom
02-21-2009, 05:30 PM
It looks like you're getting python open ok. With the python editor open, click on "file" "new". You will get a little box asking if you want to save it as a python script, click ok and then paste the information you copied from pastebin in here. Then save the script with the name adeptkey.pyw and see if that works for you.

cheers

Thanks, Leep. what is Python Editor? Phythonw? I really don't know much about python, just that it works with everything!

thanks, Debra

desertgrandma
02-21-2009, 05:31 PM
What, they're all pregnant at the same time? You dog!! :rofl:

:rofl:..........I just don't know what to say here........:rofl:

Sydney's Mom
02-21-2009, 05:53 PM
Here we go. For some reason, adeptdecrypt saved as a Python file (.py). But adeptkey saves as a Python file (No console) (.pyw).

Sydney's Mom
02-21-2009, 06:20 PM
Jswolf was nice enough to send me a zip copy of the file. I extracted it into python26, into epub and onto my desktop. The result was the same. If I double clicked on it, I got a python exe screen, with an adept key error box on top, which says:

Traceback (most recent call last):
File "C:\Users\Debra\Desktop\adeptkey02.py", line 197, in main
retrieve_key(keypath)
File "C:\Users\Debra\Desktop\adeptkey02.py", line 139, in retrieve_key
vendor = cpuid0()
File "C:\Users\Debra\Desktop\adeptkey02.py", line 102, in cpuid0
cpuid0__(buffer)
WindowsError: exception: access violation writing 0x01ABE6F0

If I use the command prompt, I get
'adeptkey.pyw' is not recognized as an internal or external command, operable program or batch file.

Sydney's Mom
02-21-2009, 06:27 PM
Here is the pycrypto I installed:

pycrypto-2.0.1.win32-py2.6.exe

I just can't figure this out. Like I said, adeptdecrypt works fine. I have tried just about everything I can think of.

slayda
02-21-2009, 06:48 PM
:rofl:..........I just don't know what to say here........:rofl:

I think you already did with that post. :D:thumbsup:

JSWolf
02-21-2009, 07:10 PM
Here is the pycrypto I installed:

pycrypto-2.0.1.win32-py2.6.exe

I just can't figure this out. Like I said, adeptdecrypt works fine. I have tried just about everything I can think of.
Can you view ePub or PDF with DRM using Adobe Digital Editions 1.7?

AnemicOak
02-21-2009, 07:20 PM
Can you view ePub or PDF with DRM using Adobe Digital Editions 1.7?

I was just going to ask the same thing. If you download 'The Year of the Dog' in ePub from BoB does it open ok in ADE?


When I tried this out earlier I used an XP machine. To try & see if I could come up with the same problems you're having in Vista I just did it on my MacBook Pro using Vista. Works perfectly here. I'm using Python 2.6.1.1 from Activestate.

JSWolf
02-21-2009, 07:41 PM
The link to Year of the Dog in ePub is http://www.booksonboard.com/index.php?BODY=viewbook&BOOK=201834&v=buynow and it is free. So give it a try and see if it can be opened with Digital Editions 1.7.

Sydney's Mom
02-21-2009, 10:51 PM
Hey, it is me. I really had some problems, and Leep and I love Cabagges were nice enough to help me. I have the key. When I try and decrypt the Year of the Dog, which I have saved as ebx, epub, and zip, it says Error: File is not a zip file. what is supposed to be a zip file - input or output?

There must be something wrong with my security settings. Someone sent me my key, and I had to use another computer to send it. That is now loading fine, but what is this zip file? Thanks, Debra

desertgrandma
02-21-2009, 10:52 PM
I"m so glad you aren't giving up. Soon, this will be just a bad dream for you, and you'll be happily 'doing what comes naturally'........:)

chorpler
02-21-2009, 10:58 PM
Hey, it is me. I really had some problems, and Leep and I love Cabagges were nice enough to help me. I have the key. When I try and decrypt the Year of the Dog, which I have saved as ebx, epub, and zip, it says Error: File is not a zip file. what is supposed to be a zip file - input or output?

There must be something wrong with my security settings. Someone sent me my key, and I had to use another computer to send it. That is now loading fine, but what is this zip file? Thanks, Debra

An .epub file is a zip file. You need to use Digital Editions to open the ebx.etd file, which will download the actual ePub file into your My Documents\My Digital Editions directory. Then you can use the decrypt script with that .epub file (which is actually a zip file that contains a bunch of other files that have the actual content of the ebook in them).

Sydney's Mom
02-21-2009, 10:59 PM
You are so kind, Desertgrandma. Actually, I did give up - I let someone take my info and get my key for me. Obviously, there must be something wrong with this computer - it certainly can't be me!

I have used the other tools I have learned on this site to get all kinds of books
(I have bought all kinds of books) on my kindle. If they could just come out with a standard format, we could forget about this. Of course, what fun is that?

Sydney's Mom
02-21-2009, 11:18 PM
FILE SUCCESSFULLY CONVERTED!!!!!!

I can't believe it!!!! It worked like a charm, and Calibre converted it to mobi. I love cabagges, you are a computer god!!! Thank you, thank you. And thank you all MobilRead members for putting up with me - I know i hijacked this thread, but I am sooo excited to be able to convert epub! I have bought books in formats that I converted with modedrm, mobi2html, etc. There is no piracy here - just freedom to use my hard-earned $$ to reward those authors whose work I value. Thank you soooo much!

My daughter's netbook was ruined today (the dog chewed the ac adapter). It will take until next week to get one. She has been breathing over my shoulder all day, wanting my laptop. It isn't as nice as her netbook, but it WORKS. ADEPTDECRYPT ROCKS!!!

:thanks::thanks::thanks::thanks::thanks::thanks:

JSWolf
02-21-2009, 11:24 PM
Well done!

I was going to suggest one thing... remote accessing your computer. But since it's all sorted, no need.

desertgrandma
02-21-2009, 11:24 PM
HOORAY!!!! :2thumbsup:2thumbsup

Sydney's Mom
02-22-2009, 01:10 AM
An .epub file is a zip file. You need to use Digital Editions to open the ebx.etd file, which will download the actual ePub file into your My Documents\My Digital Editions directory. Then you can use the decrypt script with that .epub file (which is actually a zip file that contains a bunch of other files that have the actual content of the ebook in them).

Thank you, chorpler. You got me over the finish line.

Debra

:thanks:

samtheeagle
02-22-2009, 04:05 AM
Woo hoo! I'm so glad that you got there in the end! Well done on persevering with it :)

Valloric
02-22-2009, 08:38 AM
(the dog chewed the ac adapter).

I hope the dog survived!

joblack
02-22-2009, 10:58 AM
Hey, it is me. I really had some problems, and Leep and I love Cabagges were nice enough to help me. I have the key. When I try and decrypt the Year of the Dog, which I have saved as ebx, epub, and zip, it says Error: File is not a zip file. what is supposed to be a zip file - input or output?

There must be something wrong with my security settings. Someone sent me my key, and I had to use another computer to send it. That is now loading fine, but what is this zip file? Thanks, Debra

That error message normally comes if you try to decrypt a pdf instead ...

Sydney's Mom
02-22-2009, 07:53 PM
Yes, the dog survived. If she survived chewing up my fancy night guard, she can survive anything!

My daughter may not survive, though. She spilled a half a bottle of Diet Snapple on my computer this morning. I was able to get it dried out, but the "d" wasn't working, and my password has a d. Anyway, I was able to connect another keyboard, back-up EVERYTHING (but no d's) and then I sprayed some computer cleaner in it. It seems to be working. More importantly, I found her another tip, and her father soldered it on her present charger. I am erasing her log in on this computer.

pilotbob
02-22-2009, 07:54 PM
I am erasing her log in on this computer.

Oh?!

BOb

desertgrandma
02-22-2009, 08:09 PM
Yes, the dog survived. If she survived chewing up my fancy night guard, she can survive anything!

My daughter may not survive, though. She spilled a half a bottle of Diet Snapple on my computer this morning. I was able to get it dried out, but the "d" wasn't working, and my password has a d. Anyway, I was able to connect another keyboard, back-up EVERYTHING (but no d's) and then I sprayed some computer cleaner in it. It seems to be working. More importantly, I found her another tip, and her father soldered it on her present charger. I am erasing her log in on this computer.

Sydney, did you know you could buy a 'waterproof' keyboard? I think they are pretty reasonable. I had one, wish I had one for the laptop.....

ShortNCuddlyAm
02-22-2009, 08:47 PM
I am erasing her log in on this computer.

You're letting her off lightly!!!

Sydney, did you know you could buy a 'waterproof' keyboard? I think they are pretty reasonable. I had one, wish I had one for the laptop.....

You can also get waterproof covers for keyboards - like a silicon membrane that sits over the top.

I won't tell you what most techies I know call them, if only because if you decide to get one I don't want to be responsible for the term sticking in your mind and you asking for one!!

Sydney's Mom
02-22-2009, 08:53 PM
Oh, I bet I know! I don't need it, because I have NEVER spilt a Diet Coke (drink them constantly) on my keyboard. And Syd will never again be anywhere near it!

At least everything is now backed up!

pilotbob
02-22-2009, 09:26 PM
You can also get waterproof covers for keyboards - like a silicon membrane that sits over the top.

I won't tell you what most techies I know call them, if only because if you decide to get one I don't want to be responsible for the term sticking in your mind and you asking for one!!

I think you made it pretty obvious.

BOb

Leep
02-22-2009, 10:20 PM
Oh, I bet I know! I don't need it, because I have NEVER spilt a Diet Coke (drink them constantly) on my keyboard. And Syd will never again be anywhere near it!

At least everything is now backed up!
And I was thinking maybe the dog's name was Sidney.

Guess not.

pilotbob
02-22-2009, 10:26 PM
And I was thinking maybe the dog's name was Sidney.


:snicker:

carld
02-22-2009, 10:42 PM
I did a quick search at Overdrive and the only library that I found that has epub is Cleveland Public Library. So congrats all you Cleveland guys - you're way ahead of us.

cheers

Sadly, I looked through their ePub selection and found little of interest, especially no sci-fi/fantasy in ePub. I finally picked "The Celestine Prophecy" to download just because it was something I'd heard of. Everything else I might have been even vaguely interested in had a waiting list.

It did at least convert over to the Kindle well.

Sydney's Mom
02-23-2009, 03:44 PM
And I was thinking maybe the dog's name was Sidney.

Guess not.

Sydney is 11. Before I got her, my screen name was Toby's Mom. Toby was the cutest fawn pug you have ever seen. (But he went over the Rainbow Bridge.) My husband resented being referred to as Toby's Dad. I don't understand why.

pilotbob
02-23-2009, 04:25 PM
Sydney is 11. Before I got her, my screen name was Toby's Mom. Toby was the cutest fawn pug you have ever seen. (But he went over the Rainbow Bridge.) My husband resented being referred to as Toby's Dad. I don't understand why.

Maybe a psuedo that shows what defines you as person rather than as an extension to a dog or child??? :2thumbsup

BOb

Sydney's Mom
02-23-2009, 04:45 PM
I refused to take my husband's name when we married. I refused to quit work when I had a child. I think it is just guilt.

BTW, this was Toby.

jbjb
02-24-2009, 07:00 AM
Does anyone know of a free ePub DRMed ebook to test this other than the BooksOnBoard "The Year of the Dog"? I just get a "This title is not for sale within your country" message when I try to download it.

/JB

Spectrum
02-24-2009, 08:47 AM
Does anyone know of a free ePub DRMed ebook to test this other than the BooksOnBoard "The Year of the Dog"? I just get a "This title is not for sale within your country" message when I try to download it.

/JB

Use a USA based proxy to download..

-Thomas-
02-24-2009, 08:54 AM
Or just go to your profile and change your country to USA. That worked in my case.

Valloric
02-24-2009, 10:49 AM
i♥cabbages, do you have a unifying name for these two scripts? I don't know how to refer to this DRM-removing system. We have mobidedrm, so possibly epubdedrm?

I don't really care what you call it, just give it a name we can use. :)

nrapallo
02-24-2009, 11:39 AM
I don't really care what you call it, just give it a name we can use. :)

:chinscratch: I nominate "A-bupe" script - the Adobe's ADEPT reverse(-engineered) epub script! It's the subject of some urban legends... :eek: :rofl:

zelda_pinwheel
02-24-2009, 11:46 AM
:chinscratch: I nominate "A-bupe" script - the Adobe's ADEPT reverse(-engineered) epub script! It's the subject of some urban legends... :eek: :rofl:

:snicker:

i♥cabbages
02-24-2009, 02:07 PM
i♥cabbages, do you have a unifying name for these two scripts? I don't know how to refer to this DRM-removing system. We have mobidedrm, so possibly epubdedrm?

I wasn't going to go here, but Adobe really left themselves open by calling their DRM system something like "ADEPT"... So let's call the ADEPT-removal system "INEPT" -- I♥cabbages iNformation Extraction and Preservation Technology.

zelda_pinwheel
02-24-2009, 02:07 PM
I wasn't going to go here, but Adobe really left themselves open by calling their DRM system something like "ADEPT"... So let's call the ADEPT-removal system "INEPT" -- I♥cabbages kNowledge Extraction and Preservation Technology.

ha excellent !!!! :pandalol:

nrapallo
02-24-2009, 02:08 PM
I wasn't going to go here, but Adobe really left themselves open by calling their DRM system something like "ADEPT"... So let's call the ADEPT-removal system "INEPT" -- I♥cabbages KNowledge Extraction and Preservation Technology.

OK, I change my vote to "INEPT"! Very befitting... but how about "IKNEPT"? :rolleyes:

Valloric
02-24-2009, 02:12 PM
I wasn't going to go here, but Adobe really left themselves open by calling their DRM system something like "ADEPT"... So let's call the ADEPT-removal system "INEPT" -- I♥cabbages iNformation Extraction and Preservation Technology.

LOL, this is perfect. INEPT it is.

EDIT: Maybe the mods can add this word to the title of the thread, so that people can easily search for it when it is referenced?

=X=
02-24-2009, 03:23 PM
I wasn't going to go here, but Adobe really left themselves open by calling their DRM system something like "ADEPT"... So let's call the ADEPT-removal system "INEPT" -- I♥cabbages iNformation Extraction and Preservation Technology.

Great name! Also many thanks got the tool even though I don't own any ePUB it's great to have as many alternatives.

I'd really would like to see a PDF tools since I do have many secure PDF tools.

Great job i♥cabbages.

=X=

Leep
02-25-2009, 01:25 PM
Not only a talented reverse engineering job, but a fun sense of humor as well. We like you! "rimshot"

cheers

nrapallo
02-25-2009, 01:43 PM
Not only a talented reverse engineering job, but a fun sense of humor as well. We like you! "rimshot"

cheers

:rimshot:

Sydney's Mom
02-25-2009, 05:03 PM
Not only a talanted reverse engineering job and a fun sense of humor, but sympathy for those of us that make a PEST of ourselves with our ineptitude!


:thumbsup:

zelda_pinwheel
02-25-2009, 05:04 PM
i♥cabbages has a posse. ;)

i think i want that on a t-shirt.

gokalp
03-01-2009, 12:00 AM
i♥cabbages, that is amazing work, thanks a lot. INEPT is a very cool and smart name indeed ;)

PieOPah
03-03-2009, 01:02 PM
Finally, I have all of by E-books DRM free. Those few pesky Epub books were always causing me to wonder what I would do if I ever had a problem.

Many many thanks for developing this.

Now I can convert to a prefered format, correct some of the mistakes I come across and change the margins which for the books I have bought all seem a little wide!

Again, a hundred thank you's :D

mshunter80
03-06-2009, 06:13 AM
thank you very much for this :)
btw, is there a way to compile it for windows? to run without py installed?

draghetto
03-06-2009, 07:15 AM
I tried to execute this script but hwat i got is

"Failed to decrypt user key key (sic)"

Any idea why this happened, i have DE 1.7 installed on my pc

chorpler
03-06-2009, 07:31 AM
Which script was that -- the script for retrieving the key or for decryping the file?

draghetto
03-06-2009, 07:38 AM
No thanks i fixed it, i had to reinstall DE

pilotbob
03-06-2009, 09:30 AM
thank you very much for this :)
btw, is there a way to compile it for windows? to run without py installed?

Are you asking if you can run the python script without python installed? The answer is no. Unless it is packed as an .EXE by someone. But this basically embeds python into it. So, not much of an advantage.

BOb

Valloric
03-06-2009, 01:09 PM
Are you asking if you can run the python script without python installed? The answer is no. Unless it is packed as an .EXE by someone. But this basically embeds python into it. So, not much of an advantage.

There's a great advantage: the end user doesn't need to install python.

@mshunter80: Take a look at cx_Freeze and py2exe.

pilotbob
03-06-2009, 01:10 PM
There's a great advantage: the end user doesn't need to install python.

Sure, but size wise your getting the same thing. Installing python really isn't that much of an arduous task. You only need to do it once.

Or, you can by a Mac which already has python 2.5.x pre-installed.

BOb

PieOPah
03-06-2009, 01:11 PM
Or, you can by a Mac which already has python 2.5.x pre-installed.

BOb

Quite an expensive solution though...

pilotbob
03-06-2009, 01:13 PM
Quite an expensive solution though...

I know. I was teasing. But, it worked for me. :smack:

BOb

pilotbob
03-06-2009, 01:13 PM
Quite an expensive solution though...

Ok, what about Ubuntu. I think it has python included in its distro.

BOb

PieOPah
03-06-2009, 01:17 PM
Ok, what about Ubuntu. I think it has python included in its distro.

BOb

Hmmm, I am sure I have python installed on my N95. I guess this means I could strip DRM on the move???

pthwaite
03-06-2009, 01:46 PM
Do the python scripts work on a MAC "as is"?

My reading of the forum seemed to suggest there was some windows only functionality unless you download additional components. As I haven't got any epub books yet, I've only having a watching brief here so far.

Howard

DesiLinguist
03-06-2009, 04:30 PM
Do the python scripts work on a MAC "as is"?

My reading of the forum seemed to suggest there was some windows only functionality unless you download additional components. As I haven't got any epub books yet, I've only having a watching brief here so far.

Howard

The script relies on 'windll' from the ctypes python module which means it won't work natively on a mac, as far as I can tell.

Valloric
03-06-2009, 05:18 PM
Ok, what about Ubuntu. I think it has python included in its distro.

I don't know of a modern linux distro that doesn't come with python pre-installed.

But that's not the point. What we think of as trivial is hard work to other people. Just look at all the questions here on MobileRead about getting python scripts running. The average Windows user doesn't know they need python installed, and they don't care. They just want it to work, and work now. They don't want to go through various steps of installing python and running .py scripts. They find it confusing, scary and oftentimes, they mess it up. I don't know why (or how), but they do.

Wrapping it up as an EXE makes it easier for them, at least a little bit.

pilotbob
03-06-2009, 05:27 PM
Wrapping it up as an EXE makes it easier for them, at least a little bit.

I don't disagree with that at all. But, I don't see it happening. Putting some script on pastbin or other clipboard share site is easy to do. But, finding a place to host a questionable .exe is a bit tougher.

Then again, if you are going to break the law, you should have to put a bit of effort in it, eh? :D

BOb

Sydney's Mom
03-06-2009, 08:40 PM
Hey, I am an "average Windows user." You have no idea how many times I went back to the Wiki in the beginning - and did everything step by step. Installing python was a rush! I know absolutely zip about computers, but I can download a script from pastebin and do some minor things myself. The sense of accomplishment is huge! If I could have gotten exe files, knowing what I would have to go through to get to the same place, I would pass.

Valloric
03-07-2009, 10:09 AM
But, finding a place to host a questionable .exe is a bit tougher.

Not that I'm trying to give anyone any ideas or anything :), but Origo (http://www.origo.ethz.ch/) is a good place. It's hosted in Switzerland, and AFAIK it is legal to remove DRM there (IANAL). They host more than just software projects.

AndrewBurgess
03-09-2009, 10:30 AM
xxxxx

joblack
03-09-2009, 03:20 PM
The script relies on 'windll' from the ctypes python module which means it won't work natively on a mac, as far as I can tell.

As far I can see only the keyrecovery script has to be adjusted (because the Mac is saving their keys not in a registry). The actual decryption script will probably work as planed (it worked on a debian linux machine) ...

pthwaite
03-09-2009, 07:25 PM
That's promising :)

MisBloo
04-20-2009, 10:35 PM
I can't figure out what I'm doing wrong. I've been trying for days to figure this out. I get all the way to the part where I get this: adeptkey.der but when I click on it the command box pops up and goes away too quickly to see anything. What am I missing?

wallcraft
04-20-2009, 11:40 PM
I get all the way to the part where I get this: adeptkey.der but when I click on it the command box pops up and goes away too quickly to see anything. If you have an adeptkey.der, then you have your key. Don't click on the .der file, but instead click on the per-ebook .pyw script (i.e. the other .pyw script). It will bring up a dialog box.

MisBloo
04-21-2009, 09:14 PM
Oh, thanks! I got that to work and I decrypted the book but when I move it to kindle it won't open. What is the best way to move it over? I can't get calibre to work on my computer. Can I use mobipocket reader?

wallcraft
04-21-2009, 09:50 PM
Oh, thanks! I got that part now. But what goes in the input and output file? Input is the ePub with DRM, output is the DRM-free epub (use a different name). Click on the "..." to browse for the file, note the help in the window title.

wallcraft
04-21-2009, 09:57 PM
when I move it to kindle it won't open. Can I use mobipocket reader? The Kindle only reads MOBI ebooks, filename extension .prc or .mobi.

Windows Desktop MobiPocket Reader will import a .epub file and convert it to MOBI. Open WMR on its eBooks view, and click on import (EPUB is one of the options). The converted ebook will come up in the Reader, but the .prc file will be in your default MOBI directory (probably My Documents\My eBooks). I suggest installing the latest (beta, but very stable) WMR, from here (http://www.mobipocket.com/dev/beta/desktop.asp).

MisBloo
04-21-2009, 10:22 PM
wallcraft, thank you so much for your help! I got it to work.

Bilbo1967
04-26-2009, 02:36 PM
Errm...is it just me or are the links to the scripts on I Love Cabbages blog broken?

gossymer
04-26-2009, 04:36 PM
Yeah, same here - would love to try this out on my purchased epub books but D:

Would anyone be willing to send the scripts over privately?

wallcraft
04-26-2009, 07:21 PM
The name of the script is ineptepub. There are actually more copies around of ineptpdf, because Adobe issued a take down notice for it. Note that ineptkey is needed for either one, and is the same for both so far as I know.

gossymer
04-26-2009, 10:21 PM
Thank you so much - I was so nervous since I had no idea what I was doing but I just followed the instruction step by step and voila - am converting to an alternate format right :)

Bilbo1967
04-27-2009, 05:43 PM
Thank you so much - I was so nervous since I had no idea what I was doing but I just followed the instruction step by step and voila - am converting to an alternate format right :)

gossymer - where did you find the scripts please?

nrapallo
04-27-2009, 06:09 PM
gossymer - where did you find the scripts please?

I guess it was too subtle, then.

If you were to look for the name of the script, what search engine would be first on your list... ;)

Bilbo1967
04-27-2009, 06:11 PM
I guess it was too subtle, then.

If you were to look for the name of the script, what search engine would be first on your list... ;)

:o D'oh!! :thanks:

keng2000
04-30-2009, 01:09 PM
hint:
He did post the script sources some place.
It is all over the torrent and also links for scripts in the eReader forum.
People can use the same way on epub with the pdf.
I do not test it myself yet.

joblack
05-05-2009, 02:12 PM
As mentioned in the pdf section there is now an automated inept epub script (ainept).

mobelby
05-22-2009, 09:01 PM
A bit belated but many, many thanks from downunder to the king of cabbage.

I've been waiting to buy a certain book that's out of stock here in Australia and won't be in stock again until a new edition is released in September (ie four months away) as a tie in with a film release. I am also hoping to buy a new reader in June (at this stage the bebook mini or cool-er). What you have done is let me buy that book now (as an epub from one the UK ebook retailers) and read it on my PCs/netbooks etc and later I can reread it on whichever ereader I buy.

You are the biz :)
Thanks a million

halljames
05-28-2009, 10:02 AM
The other day I bought an epub from penguin books, and just to see if I could, I tried these python scripts I found on the internet. And lo and behold, I now have a epub that has no drm and I can add it to my calibre library instead of just having it in Adobe Digital Editions.

I couldnt believe how easy it was to do.

PieOPah
05-28-2009, 10:08 AM
I now have a epub that has no drm and I can add it to my calibre library instead of just having it in Adobe Digital Editions.


You could have still added it to Calibre regardless of DRM.

halljames
05-28-2009, 10:56 AM
Very true, I tried that, but then you can't read it using calibre, and I dont even know if you would be able to transfer it to my sony reader with calibre. I just thought, "get rid of the drm" and I can do what I want.

Wes
06-04-2009, 03:54 PM
For those using Vista in any of it's many flavors you may get errors that look similiar to this:

This is the error message I got, in and ADEPT Key box:

Traceback (most recent call last):
File "adeptkey.pyw", line 197, in main
retrieve_key(keypath)
File "adeptkey.pyw", line 139, in retrieve_key
vendor = cpuid0()
File "adeptkey.pyw", line 102, in cpuid0
cpuid0__(buffer)
WindowsError: exception: access violation writing 0x01A3E5F8

When I tried the second, I got:

Traceback (most recent call last):
File "adeptkey.pyw", line 198, in main
retrieve_key(keypath)
File "adeptkey.pyw", line 140, in retrieve_key
vendor = cpuid0()
File "adeptkey.pyw", line 103, in cpuid0
cpuid0__(byref(buffer))
WindowsError: exception: access violation writing 0x019B1E30

This is DEP acting to keep your system safe from a program Vista has deemed rogue. DEP is data execution protection. You can find out more about it here: http://windowshelp.microsoft.com/Windows/en-US/help/186de3d0-01af-4d4c-981d-674637d2f4bf1033.mspx

The solution is to tell the system you trust pythonw and python. It will then allow these scripts to run as they should. See my post here for how to do this, substituting pythonw.exe and python.exe as appropriate.

http://www.mobileread.com/forums/showthread.php?t=48263&highlight=wes Post #3

Wes

Yosa
06-16-2009, 04:51 AM
Finally a fix. I was having all those same errors on Windows XP. I allowed the DEP for python.exe and pythonw.exe and ran the scripts and low and behold it worked!

Now I feel better about buying epub books!