What does HackerNews think of DeDRM_tools?

DeDRM tools for ebooks

Language: Python

One can also get the commit from github itself.

Also, see https://news.ycombinator.com/item?id=29932282 for a newer hash.

    # clone the old repo noDRM/DeDRM_tools forked from
    git clone https://github.com/apprenticeharper/DeDRM_tools
    cd DeDRM_tools

    # fetch the commit hash archive.org tells us about:
    git fetch origin 8c819c71376ab76445dd79d5cf2b28b6c0c2819e
    git checkout -b noDRM FETCH_HEAD
Why do we use DeDRM tools or equivalent? to be able to move a file from one ereader to another, from another brand; to feel that we "own" ebooks we have "bought"; to be sure that we keep ebooks in case the booksellers goes off-market; to be able to give and ebook we bought to a few friends.

What does kindle and other proprietary DRMs offer? none of it.

What do companies adopting Readium LCP offer? all of the above.

The original https://github.com/apprenticeharper/DeDRM_tools is still open, everybody can use it, Amazon, Adobe, B&N, Kobo don't bother, so it can be used, updated without bits of Readium LCP. LCP which is moving in the right direction IMO: being able to give an ebook to a friend by simply giving the password is great.

Plus, why do some people want to keep and share with the world ebooks they had for free from a public library: they totally crush the only solution which makes litterature available to everyone: if this spreads, libraries will not be able to get ebooks from major publishers anymore. Is it what they really want?

The open-source Calibre eBook management software has a plugin called DeDRM [1] which provides the ability to decrypt any Amazon eBook.

[1] https://github.com/apprenticeharper/DeDRM_tools

I use DeDRM. Works as a plugin for Calibre. I import the books into Calibre and the DRM is stripped away automatically. Mostly painless.

https://github.com/apprenticeharper/DeDRM_tools

The GitHub repo for the DRM removal tools is here:

https://github.com/apprenticeharper/DeDRM_tools

The README says this:

> Note that DRM can only be removed from KFX format files downloaded with Kindle for PC/Mac 1.26 or earlier. Amazon changes the DRM for KFX files in Kindle for PC/Mac 1.27 and later.

KFX is different from older versions in that the file is tailored to the device it is downloaded on. If you download with the Kindle for PC, the file is optimized for your big, high resolution screen and isn't going to be great on an eink device.

There are no cracks that work with the KFX files extracted from the Kindle reader.

It's possible to use DeDRM tools from the command line, the plugin just makes it easier.

Simply git clone https://github.com/apprenticeharper/DeDRM_tools/ and then:

  python2.7 DeDRM_tools/DeDRM_plugin/k4mobidedrm.py \
    -k ~/.local/share/wineprefixes/kindle/drive_c/users/*/Local Settings/Application Data/DeDRMPrefs/kindlekey.k4i' \
    ~/Documents/My\ Kindle\ Content/book.azw .
or

  python2.7 DeDRM_tools/DeDRM_plugin/ineptepub.py \
    adeptkey.der book.epub book_dedrm.epub
(I'm not exactly sure where to get adeptkey.der but I'm certain it can be extracted from an old python2 Calibre + DeDRM installation.)
> What is the latest word (as of 2020) on reading Kindle books on the ReMarkable? Is there a tool that makes it easy to buy Kindle books and strip them of their DRM?

You go to amazon.com/myk, switch to the Content tab, three dots next to the book, Download & transfer via USB. You then drag-and-drop them into Calibre with this add-on set up: https://github.com/apprenticeharper/DeDRM_tools

There's some initial setup required to get your decryption key (easy if you have their e-reader — just enter the key you'll find in device info, slightly complicated if you don't), but once that's done, the friction for decrypting ebooks is pretty negligible.

You'll have to convert them to epub or PDF to be able to read them on ReMarkable, but that's as easy as right-clicking a book within Calibre and choosing "convert".

Most of the other ebook decrypters are basically slapping some interface on top of this Calibre plugin and hiding it behind a paywall.

While it's not DRM free... DeDRM [0] can be run stand alone or as a plug-in to Calibre. I have it auto run when I import a new book to my collection. From there you can do what you like with it.

[0]: https://github.com/apprenticeharper/DeDRM_tools

you don't need the chinese website, you can use github instead...

https://github.com/apprenticeharper/DeDRM_tools

It's possible to strip drm from kindle and other books to avoid getting tied to a platform by prior purchases.

https://github.com/apprenticeharper/DeDRM_tools

If you are already using Calibre, it's not hard to protect yourself from Amazon. I have a Kindle PaperWhite that's about ~3 years old and it only connected to the Internet once during initial setup. I've put it in flight mode after that and it will never go online again.

As for books, when I buy them on Amazon I select "transfer via USB" which let's me download it and when I add it to Calibre, the DRM is stripped by DEDRM_tools [1][2] before transfering into the Kindle.

[1] https://github.com/apprenticeharper/DeDRM_tools

[2] Note that the tool only removes the DRM, it doesn't anonymise the file. It's still associated with your account.

Wow, seems like it really is the case.

Well, turns out my strategy of de-DRMing Kindle books[0] is more than a good suggestion, just to be on the safe side.

Under my moral compass, after I have purchased one edition of the book, I have the right to convert it to whatever the hell I want.

https://github.com/apprenticeharper/DeDRM_tools/

I'm afraid you're misinformed, but for socially-conscious individuals (ie, they don't support a scorched-earth, ends-justify-the-means policy to get that $250,000* from your nephew for torrenting Inside Out) I'm including my comment below.

If you are a programmer, security researcher, artist, or entrepreneur you can make a difference.

1. As an individual: if you understand the methods, contribute to open-source tools that allow individuals to exercise their rights. https://github.com/apprenticeharper/DeDRM_tools (one example)

Artists: Use self-publishing platforms (gumroad, bandcamp, even spotify...) and self-incorporate. Discriminate against giving your business to companies that don't support open, sane protocols. Don't let them exert their power against the populace through backdoor trade deals.

Entrepreneurs: Create new content delivery and streaming platforms that force the transition to digital--rightsholders like to claim that piracy is responsible for their failed economics, though the truth is that they had an artificial market advantage of scarcity. User-generated content has bloomed with the advent of digital, and more consumer choice is a death knell to the traditional monopoly.

2. As a cause: support the EFF, and any politician looking to work with the FCC who understands this issue is deeper than "restricting content," and could undermine the rights of property and security of ownership. Do not trust anyone who does not comprehend the societal implications of critical infrastructure being "security through obscurity." http://apps.fcc.gov/ecfs/comment/view?id=60001303221

The security of your laptop, the concept of personal ownership, and your right not to be digitally inspected at over 40 international borders is at stake.

* figure revised to more accurately reflect the reality of the american justice system.

This.

Everyone should take note of the proper way to fight encroaching copyright law:

If you are a programmer, security researcher, artist, or entrepreneur you can make a difference.

1. As an individual: if you understand the methods, contribute to open-source tools that allow individuals to exercise their rights. https://github.com/apprenticeharper/DeDRM_tools (one example)

Artists: Use self-publishing platforms (gumroad, bandcamp, even spotify...) and self-incorporate. Discriminate against giving your business to companies that don't support open, sane protocols. Don't let them exert their power against the populace through backdoor trade deals.

Entrepreneurs: Create new content delivery and streaming platforms that force the transition to digital--rightsholders like to claim that piracy is responsible for their failed economics, though the truth is that they had an artificial market advantage of scarcity. User-generated content has bloomed with the advent of digital, and more consumer choice is a death knell to the traditional monopoly.

2. As a cause: support the EFF, and any politician looking to work with the FCC who understands this issue is deeper than "restricting content," and could undermine the rights of property and security of ownership. Do not trust anyone who does not comprehend the societal implications of critical infrastructure being "security through obscurity." http://apps.fcc.gov/ecfs/comment/view?id=60001303221

The security of your laptop, the concept of personal ownership, and your right not to be digitally inspected at over 40 international borders is at stake.