DRM Removal Tools for eBooks

Version 6.5.3 released on 12 January, 2017

Welcome to Apprentice Alf’s blog

This blog is intended to help anyone looking for free and simple software for removing DRM from their Kindle ebooks, stripping DRM from their Adobe Digital Editions ebooks, getting rid of DRM from their Barnes and Noble ebooks, freeing their Kobo ebooks of DRM, or decrypting their Fictionwise eReader ebooks.

If you want to find out more about ebooks, DRM and why you will probably want to remove the DRM from your ebooks, see this post:  Ebook Formats, DRM and You — A Guide for the Perplexed.

If you already know that you want to strip the DRM from your ebooks, you’ve found the right place.

The Tools

To get started on removing DRM from your ebooks, just download the tools archive from the link below. Unzip the archive, and start reading.

The latest release can be found at the top of this page:
https://github.com/apprenticeharper/DeDRM_tools/releases

Getting Help with the Tools

If you have any questions about the tools, ebooks, and DRM, check the FAQs at the GitHub repository:
https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md

If you have any problems with the current tools, please ask for help in a comment on this post or open a new issue at the GitHub repository. If you are having a problem with an older version of the tools, please first update to the current version, and see if that solves your problem.

Before commenting here, please check the ReadMe file and the FAQs (see link above).

In any bug report or help request, please include:

  • which tool was used
  • which OS you are using
  • where the ebook file came from (device or application)
  • any error messages
  • a log of the DRM-removal attempt (see the FAQs on how to get a log).

Anti-Piracy Notice

Please only use these tools for gaining full access to your own ebooks for archiving/conversion/convenience. De-drmed ebooks should not be uploaded to open servers, torrents, or other methods of mass distribution. No help will be given to people doing such things. Authors, retailers and publishers all need to make a living, so that they can continue to produce books for us to read. Don’t be a parasite.

Origin of the Tools

The tools for removing DRM from ePubs were originally posted at i♥cabbages’ blog. The tools for Kindle/Mobipocket were originally posted at The Dark Reverser’s blog.

They have since been improved by many people, but mostly some_updates, DiapDealer, Apprentice Alf, and Apprentice Harper. While there are many sites that redistribute these tools, the most up-to-date versions of the tools are currently released here.

Other Sources

Anyone trying to sell you ebook DRM removal tools for Adobe Adept ePub and PDFs, Barnes & Noble ePubs, Kindle ebooks, Kobo ebooks, or eReader ebooks has probably just repackaged (an earlier) version of the tools available here.

Advertisements

3,493 thoughts on “DRM Removal Tools for eBooks

  1. I couldn’t load the plugin onto calibre. I’m running Windows 10, 64 bit. Here is my error message:

    calibre, version 2.85.1
    ERROR: Unhandled exception: InvalidPlugin:The plugin in u’C:\Users\scott\Downloads\DeDRM_tools_6.5.3.zip’ is invalid. It does not contain a top-level init.py file

    calibre 2.85.1 [64bit] embedded-python: True is64bit: True
    Windows-8-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\preferences\plugins.py”, line 317, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 460, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 59, in load_plugin
    File “site-packages\calibre\customize\zipplugin.py”, line 192, in load
    File “site-packages\calibre\customize\zipplugin.py”, line 290, in _locate_code
    InvalidPlugin: The plugin in u’C:\Users\scott\Downloads\DeDRM_tools_6.5.3.zip’ is invalid. It does not contain a top-level init.py file

  2. I recently purchased an ebook on booklive.jp and I’ve tried to remove the DRM from it using Calibre. However, it doesn’t seem to be working. Is it possible to do this? I don’t want to purchase any other books from them unless I can remove the DRM.

      • Yeah, I tried to import it through Adobe Digital Editions 3.0 and it says that “Errors were encountered”. I decided to use a Hex editor to see what I could find within the epub file and got this from the header:

        ….ftypodcf….odcf….odrm…..’ž>…….^odhe…..application/vnd.oma.drm.dcf…6ohdr………..’.œ……urn:booklive:cid:411108007….odda..

        Does any of this help identify what kind of DRM I’m dealing with here?

        • If you can open it with ADE 2.0.1 authorized with your Adobe ID, then it has the type of Adobe DRM which can be removed by these tools. If you can only read it in ADE 3 or newer, then it has DRM which can’t be removed yet.

          • Thanks for the advice thus far.

            I tried to open the file with ADE 2.01 and 3.0. Neither version can open it. It always says “Unable to add document. Errors were encountered with this item”

            When I try and open it up in Calibre, I get the following error details:

            calibre, version 2.85.1
            ERROR: Could not open e-book: Failed to read book, C:\Users\karyu_000\Documents\Calibre Library\Unknown\0 EB000041110800700101502021 (5)\0 EB000041110800700101502021 – Unknown.epub click “Show Details” for more information

            Traceback (most recent call last):
            File “site-packages\calibre\utils\ipc\simple_worker.py”, line 286, in main
            File “site-packages\calibre\ebooks\oeb\iterator\book.py”, line 64, in extract_book
            File “site-packages\calibre\customize\conversion.py”, line 245, in call
            File “site-packages\calibre\ebooks\conversion\plugins\epub_input.py”, line 247, in convert
            File “site-packages\calibre\utils\localunzip.py”, line 231, in extractall
            File “site-packages\calibre\utils\localunzip.py”, line 218, in _extractall
            ValueError: Not a ZIP file

              • The DeDRM tools work with EPUBs downloaded with Adobe Digital Editions 2.0.1 (Kobo, Google), Kindle books, and Barnes & Noble EPUBs. Obok handles Kobo kepubs.

                • Thanks very much for your help! I’ll try purchasing from one of those vendors instead, and see if I have better luck!

                  • Okay so I purchased another book – this time via books.rakuten.co.jp (they use Kobo) and I’ve located the folder where the kepub file is stored. I made a copy of the file and renamed it to a .kepub file and tried to import it into Calibre. While it does display the title, author and publisher in the list, when i try and open the book, it comes up as garbage text. Have I missed a step somewhere? Thanks again for the continued help!

                    • Okay I got it to work! I did what you said about the Obok plug-in. That did the trick! Thank you so much for all the help. Totally appreciate it!

  3. Hi, I installed the plugins on calibre and everything went good, but when I try to convert an ebook it still tells me it can’t break the DRM protection.
    Can you help me? Thanks

  4. Hello I am running a mac 10.6.8 and therefore using an older version of calibre (1.48). I could install the plugin fine but then I import the ebook from my reader and the DRM is still active. Thanks for your help! Here is the log from the debug:

    InputFormatPlugin: MOBI Input running
    on /Users/thierrygarcia/Thierry/home/Calibre/Datis Kharrazian/Why Do I
    Still Have Thyroid Symptoms_ When My Lab Tests Are Normal_ A revolutionary
    breakthrough (15)/Why Do I Still Have Thyroid Symptoms_ When – Datis
    Kharrazian.azw3
    Found KF8 MOBI of type ‘standalone’
    calibre Debug log
    calibre 1.48 isfrozen: True is64bit: True
    Darwin-10.8.0-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘10.8.0’, ‘Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT
    2011; root:xnu-1504.15.3~1/RELEASE_I386’)
    Python 2.7.5
    OSX: (‘10.6.8’, (”, ”, ”), ‘i386’)
    Starting up…
    Started up in 19.45 seconds with 2 books
    Worker Launch took: 0.146527051926
    Job: 1 Read metadata (0 of 1) finished
    Read metadata (0 of 1)
    DeDRM v6.5.3: Trying to decrypt Why Do I Still Have Thyroid
    Symptoms_ When My Lab Tests Are Normal_ A revolutionary breakthrough in
    und_B00A3KO1Q6.azw3
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 256
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Why Do I Still Have Thyroid
    Symptoms? When My Lab Tests Are Normal: A revolutionary breakthrough in
    understanding Hashimoto’s disease and hypothyroidism
    Found 0 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.3: Failed to decrypt with error: No key found in 0 keys
    tried.
    DeDRM v6.5.3: Looking for new default Kindle Key after 0.1 seconds
    Found k4Mac kinf2011 file: /Users/thierrygarcia/Library/Application
    Support/Kindle/storage/.kinf2011
    Found k4Mac kindle-info file: /Users/thierrygarcia/Library/
    Application Support/Kindle/storage/.kindle-info
    Decrypted key file using IDString ‘a5ba56fb736a’ and UserName
    ‘thierrygarcia’
    Couldn’t decrypt file.
    DeDRM v6.5.3: Found 1 new key
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 256
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: Why Do I Still Have Thyroid
    Symptoms? When My Lab Tests Are Normal: A revolutionary breakthrough in
    understanding Hashimoto’s disease and hypothyroidism
    Found 4 keys to try after 1.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.3: Ultimately failed to decrypt after 1.1 seconds.
    Read the FAQs at Harper’s repository: https://github.com/
    apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages/calibre/customize/ui.py”, line 154, in
    _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 610, in run
    File “calibre_plugins.dedrm.init“, line 560, in
    KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.3: Ultimately failed to decrypt after 1.1
    seconds
    Added Why Do I Still Have Thyroid Symptoms? When My Lab Tests Are Normal: A
    revolutionary breakthrough in understanding Hashimoto’s disease and
    hypothyroidism to db in: 0.780879020691 seconds
    Worker Launch took: 0.421769142151

  5. Hi,

    Is this legal to use? I have an Amazon Kindle and I want to buy a Nook e-book. So I will not pirate a book I just want to read a bought Nook book on my Kindle. Can this cause me any problem from Amazon (disable my Kindle for punishment)?

    • DRM removal is a legal grey area. I’m not a lawyer, but I personally feel that you’re reasonably safe as long as you’re only doing so for your own personal use. I can’t imagine Amazon would actually check to see if your sideloaded books had DRM removed. In general, I think publishers are much more concerned about DRM than ebook sellers. But as long as you purchased a legal copy and you’re not sharing it around, they wouldn’t know and shouldn’t care either.

  6. Windows 7 32, Kindle for Windows 1.20.1, Calibre debug follows.
    Imported the ebook fine but when try to open it gave the DRM cannot do error.
    It seems that it is KFX format. When are you going to go over this hurdle?

    calibre Debug log
    calibre 2.85.1 embedded-python: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.9
    Windows: (‘7’, ‘6.1.7601’, ‘SP1’, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM (6, 5, 3)
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 72.035450517 x 72.0
    Starting up…
    Started up in 12.70 seconds with 219 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘(\xfb\xc1W\xab\xa8\xbd\xcc6\xa6K}hm\xa5p5]\x9f\x81\x0f1j\x90\x03O\xc8-r\x96\xc4’, ‘\\SMS.na.an.net\Users\DRG4\My Documents\My Kindle Content\B0013TR80_EBOK\B0013TR80_EBOK.azw’]
    DeDRM v6.5.3: Trying to decrypt B0013TRR80_EBOK.azw
    Using Library AlfCrypto DLL/DYLIB/SO
    DeDRM v6.5.3: Failed to decrypt with error: KFX format detected. This format cannot be decrypted yet.
    DeDRM v6.5.3: Looking for new default Kindle Key after 0.8 seconds
    searching for kinfoFiles in C:\Users\DRG4\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\DRG4\AppData\Local\Amazon\Kindle\storage.kinf201
    Decrypted key file using IDString ‘3266446047’ and UserName ‘6769616e6e16b70’
    DeDRM v6.5.3: Found 1 new key
    DeDRM v6.5.3: Ultimately failed to decrypt after 0.9 seconds.
    Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 170, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 610, in run
    File “calibre_plugins.dedrm.init“, line 560, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.3: Ultimately failed to decrypt after 0.9 seconds
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 416, in get_file_type_metadata
    File “site-packages\calibre\customize\builtins.py”, line 284, in get_metadata
    File “site-packages\calibre\ebooks\metadata\mobi.py”, line 494, in get_metadata
    File “site-packages\calibre\ebooks\mobi\reader\headers.py”, line 284, in init
    File “site-packages\calibre\ebooks\mobi\reader\headers.py”, line 312, in identity
    MobiError: Unknown book type: ÄÞ|Œ”
    Added B0013TRR80 EBOK to db in: 3.0
    Added 1 books in 4.8 seconds
    Worker Launch took: 0.280999898911

  7. So I have the plugin installed and everything, but when I import books that I downloaded from the kindle for PC App, it tells me that the files are still DRMed. I have removed them from the library, then re-imported the books without success. I am running Calibre 64 bit.

    I reinstalled calibre as well thinking that might work. Do I need to have calibre and DeDRM installed first, before installing the kindle app, in order for calibre to grab the key? SHould I reinstall the kindle app?

    Thanks guys

  8. I recently installed the latest calibre plug in and Kindle for PC version 1.20.1. I used kindle for PC to download a book which appeared as expected with an AZW extension under ‘My Kindle content. When I imported it there was no indication that this was a KFX – but the file was NOT converted on import and could NOT be read

  9. I’m using last version of Calibre and DeDRM. I downloaded the book from the “Manage Your Content and Devices” and got a .azw3 file. The book is successfully imported into Calibre, but cannot be read or convert. Every time I try, I got the same message saying that the book have DRM.

    • I’m just saying that the only way look like using Kindle version 1.17. Downloading from the “Manage Your Content and Devices” doesn’t seem to be working.

      • “Manage Your Content and Devices” must list an eInk device (from Amazon) associated to it. From this device you need to enter the serial number in the DeDRM plugin in Calibre. This can be easily done with copy&paste from the “Manage Your Content and Devices” -> Tab “Your Devices” and then click on the “…” for the eInk-Device, that shows the serial number. No eInk-Device – no Key available for the DeDRM-plugin. The layout of that page was changed, it was a little easier in the past with one of the pages directly showing the serial-number of the device. You may have to strip the blanks from the serial number.

        Kindle Version 1.17 (either for PC or Mac) is a different way and uses a different key. This key should be automatically found by the DeDRM plugin, but sometimes it is not. Reasons for that may be older DeDRM plugins (should be removed and deleted) or a login Username with special characters, there are probably other reasons.

    • It should work if it’s for an E-ink Kindle (not a Fire) and you have its serial number entered correctly into the plugin customization.

  10. Hi – I can’t install this plugin on my calibre

    There is a message:

    calibre 2.85.1 [64bit] embedded-python: True is64bit: True
    Windows-7-6.1.7601-SP1 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.9
    Windows: (‘7’, ‘6.1.7601’, ‘SP1’, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: LubimyCzytac (2, 0, 23) && Find Duplicates (1, 6, 2)
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\preferences\plugins.py”, line 317, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 460, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 59, in load_plugin
    File “site-packages\calibre\customize\zipplugin.py”, line 192, in load
    File “site-packages\calibre\customize\zipplugin.py”, line 290, in _locate_code
    InvalidPlugin: The plugin in u’C:\Users\k……..a\Downloads\DeDRM_tools_6.5.3\DeDRM_calibre_plugin\DeDRM_plugin\alfcrypto_src.zip’ is invalid. It does not contain a top-level init.py file

  11. I have just installed Kindle for PC (windows 10), Calibre & DeDRM 6.5.3. I have downloaded a book I purchased into Kindle for PC & have tried, unsuccessfully to add it to Calibre. This is the error log.

    calibre Debug log
    calibre 2.85.1 embedded-python: True is64bit: False
    Windows-8-6.2.9200 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM (6, 5, 3)
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 100.861627907 x 100.55257732
    Starting up…
    Started up in 8.52 seconds with 1 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘\xe33\x8d\x81\xa61C\x80\xf0;w\xd7\x9e\xe2\xea_H\xd5\xf5`\xa5\xd2yc\xd4Q\xa2\xf1\x92\xaf\x03)’, ‘C:\Users\laura\Documents\My Kindle Content\B019WVPSRW_EBOK\B019WVPSRW_EBOK.azw’]
    DeDRM v6.5.3: Trying to decrypt B019WVPSRW_EBOK.azw
    Using Library AlfCrypto DLL/DYLIB/SO
    DeDRM v6.5.3: Failed to decrypt with error: KFX format detected. This format cannot be decrypted yet.
    DeDRM v6.5.3: Looking for new default Kindle Key after 0.7 seconds
    searching for kinfoFiles in C:\Users\laura\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\laura\AppData\Local\Amazon\Kindle\storage.kinf2011
    Decrypted key file using IDString ‘1248711896’ and UserName ‘6c61757261’
    DeDRM v6.5.3: Found 1 new key
    DeDRM v6.5.3: Ultimately failed to decrypt after 0.8 seconds.
    Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 170, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 610, in run
    File “calibre_plugins.dedrm.init“, line 560, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.3: Ultimately failed to decrypt after 0.8 seconds
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 416, in get_file_type_metadata
    File “site-packages\calibre\customize\builtins.py”, line 284, in get_metadata
    File “site-packages\calibre\ebooks\metadata\mobi.py”, line 494, in get_metadata
    File “site-packages\calibre\ebooks\mobi\reader\headers.py”, line 284, in init
    File “site-packages\calibre\ebooks\mobi\reader\headers.py”, line 312, in identity
    MobiError: Unknown book type: ÄÞ|Œ”
    Added B019WVPSRW EBOK to db in: 1.8
    Added 1 books in 3.6 seconds

  12. De-DRM from ADE don´t work

    calibre 2.85.1 [64bit] embedded-python: True is64bit: True
    Windows-8-6.2.9200 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ‘8’, ‘6.2.9200’)
    Python 2.7.9
    Windows: (‘8’, ‘6.2.9200’, ”, ‘Multiprocessor Free’)
    Qt: Untested Windows version 10.0 detected!
    Successfully initialized third party plugins: DeDRM (6, 5, 3)
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 93.6046065259 x 93.6245733788
    Starting up…
    Started up in 2.34 seconds with 213 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘\x89\x07\xf1\xe9\xf2\xc7\t\x88\xc2-\xca]\x100\xa5\x1d\xbf:\xde!|E\xc6LKj\xe0\x8b\x8fq\xbe\x95’, ‘C:\Users\Bizi\OneDrive\Documents\My Digital Editions\Na begu.epub’]
    DeDRM v6.5.3: Trying to decrypt Na begu.epub
    DeDRM v6.5.3: Verifying zip archive integrity
    DeDRM v6.5.3: “Na begu.epub” is neither an Adobe Adept nor a Barnes & Noble encrypted ePub
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 170, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 621, in run
    File “calibre_plugins.dedrm.init“, line 397, in ePubDecrypt
    DeDRMError: DeDRM v6.5.3: Couldn’t decrypt after 0.3 seconds. DRM free perhaps?
    Added Na begu to db in: 0.2
    Added 1 books in 1.3 seconds

    • Looks like a piece of the DRM that the tools need to unlock the book must be stored outside of the book itself. How did you downlaod it?

  13. using new calibre V2.85.1. the plugin will not generate a key when I enter login info for B&N. i tried deleting the book and re importing. no joy. any suggestions?

  14. Hello: Does Alf’s tool work on ipad pro? I use the stand alone Alf’s tool on my macbook pro and wanted to use it on the ipad pro if possible. Thankyou

  15. Here is the log from the debug (Mac 10.9.5, calibre 2.85.1 and DeDRM 6.5.3, the book was purchased today 08.06.2017 from Amazon):

    calibre Debug log
    calibre 2.85.1 embedded-python: True is64bit: True
    Darwin-13.4.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘13.4.0’, ‘Darwin Kernel Version 13.4.0: Mon Jan 11 18:17:34 PST 2016; root:xnu-2422.115.15~1/RELEASE_X86_64’)
    Python 2.7.11
    OSX: (‘10.9.5’, (”, ”, ”), ‘x86_64’)
    Successfully initialized third party plugins: DeDRM (6, 5, 3)
    devicePixelRatio: 1.0
    logicalDpi: 72.0 x 72.0
    physicalDpi: 128.000001922 x 128.000001922
    Starting up…
    Started up in 2.08 seconds with 0 books
    DeDRM v6.5.3: Trying to decrypt B01APWFEC6_EBOK.azw
    Using Library AlfCrypto DLL/DYLIB/SO
    DeDRM v6.5.3: Failed to decrypt with error: KFX format detected. This format cannot be decrypted yet.
    DeDRM v6.5.3: Looking for new default Kindle Key after 0.0 seconds
    Found k4Mac kinf2011 file: /Users/Inna/Library/Application Support/Kindle/storage/.kinf2011
    Decrypted key file using IDString ‘b5e55639dfa1’ and UserName ‘Inna’
    DeDRM v6.5.3: Found 1 new key
    DeDRM v6.5.3: Ultimately failed to decrypt after 0.4 seconds.
    Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages/calibre/customize/ui.py”, line 170, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 610, in run
    File “calibre_plugins.dedrm.init“, line 560, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.3: Ultimately failed to decrypt after 0.4 seconds
    Traceback (most recent call last):
    File “site-packages/calibre/customize/ui.py”, line 416, in get_file_type_metadata
    File “site-packages/calibre/customize/builtins.py”, line 284, in get_metadata
    File “site-packages/calibre/ebooks/metadata/mobi.py”, line 494, in get_metadata
    File “site-packages/calibre/ebooks/mobi/reader/headers.py”, line 284, in init
    File “site-packages/calibre/ebooks/mobi/reader/headers.py”, line 312, in identity
    MobiError: Unknown book type: БƒёЬМ”
    Added B01APWFEC6 EBOK to db in: 0.0
    Added 1 books in 1.0 seconds

  16. On May 26, responding to Laura, you wrote:

    <<>>

    I just installed calibre 2.85.1, which I believe is the current version. I downloaded DeDRM 6.5.3 and unzipped the file. The result is a directory called “DeDRM_tools_6.5.3”. Inside that directory, I find the directory “DeDRM_calibre_plugin”, and inside that I find “DeDRM_plugin.zip”, just as you indicate. But I cannot see how to load the plugin into calibre. When I select Preferences > Get plugins …, I get a list that (obviously) does not include DeDRM, but I see no way to browse to an add-on on disk. When I drag the zip file into the calibre window, it tries to treat it as a book. What to do, please?

    • Preferences > Change calibre behavior > Plugins > Load plugin from file. (Or if you just click the Preferences button instead of its menu: Preferences > Plugins > Load plugin from file.)

      • Hi again. Okay, I installed Kindle for PC 1.17. I installed the DeDRM plugin in Calibre. I opened two versions of a book, one .mobi, in which DRM was already removed by someone else, and one .azw3, which appears in Calibre but which I cannot open due to DRM. Is there some additional step I need to take to make the whole setup work?

        Thank you.

        • If the AZW3 is from an E-ink Kindle (not a Fire), then you need to enter its serial number into the plugin customization. Otherwise, download it with Kindle for PC and import from there.

          • This particular ebook was not available for purchase in the U.S., only in the U.K. So my friend here asked his friend there to buy it for us and send us the file. He used calibre with DeDRM and created a .mobi file, which opens here fine. But the original AZW3 file, which he sent to us, won’t open. So, if I understand correctly, we need to contact him and ask him to send us the serial # for his E-ink Kindle, assuming that he made the purchase using one (and not, say from a desktop machine), correct?

              • We’re paying for the book. In my mind, this is no different than asking something to pick up something on the way home. Apparently you choose not to answer my question; this saddens me, because we’ve done nothing wrong, IMO.

                • Not arguing right or wrong. It’s still technically not a book from your own account so I won’t be answering any more questions about it.

            • You will not get real help here, as what you are asking for is illegal.
              But, to point out, you already have the book in a readable Kindle-format without DRM, getting the serial number eInk from your friend will change nothing, you will get the same file – AZW is a container which can contain a few different file-formats, mobi being one of them, which is what you need, this what you get.

  17. Oops! What you wrote on May 26 was: Unzip DeDRM_tools_6.5.3.zip, look in the DeDRM_calibre_plugin folder, and load DeDRM_plugin.zip into calibre.

  18. Hi,
    I’m running Calibre and the DeDRM plugin in Linux (Ubuntu Mate) and ADE in a Windows VM in VirtualBox on the same machine.
    I am successfully loading and stripping DRM from Amazon books, all on the Linux desktop but am struggling with getting books purchased and downloaded through the VM into ADE to import without drm into Calibre. This, I think, is because I can’t get the relevant key information from ADE in the VM into the plugin in the host Linux machine. I have read the readme instructions but they assume wine is being used. Is there any way to achive this using a VM please?

    • You could briefly install and run calibre with the DeDRM plugin in your Windows VM to obtain your ADE key, and then export it from the Windows calibre and import it into your main calibre. Then ADE books downloaded in your Windows VM using ADE 2.0.1 should get their DRM stripped when imported into your main calibre.

      Once you’ve obtained the key, you can delete calibre from your Windows VM.

  19. Hello, I’m running an older version of Calibre on Windows XP (I know, I know) and own a Kindle Paperwhite. I have previously imported books no problem. I was recently given a Kindle Fire. I added my Kindle Fire serial number in the same area as my Kindle Paperwhite serial number – so both devices are listed – I have no plans to give away or stop using either. Files previously stripped and stored transferred and worked on fine on my Kindle Fire. However, new files are not being stripped as they were previously. I upgraded to the new deDRM plugin thinking my old one might be the problem. I deleted the locked books and reimported them with no change. I click on the file and it says it is locked, DRM, yada yada. These files are directly from Amazon and are in the classic .azw3 format. Can somebody help me please?

      • Hi Laura, thanks for your reply. I have a comment and another question.

        Okay, so I went back into Calibre and I removed the books that were locked. Then I deleted the Kindle Fire serial number out of the plugin area. I reimported the books and that still did not work. So I deleted those files and started over. I went into Amazon and told it to mark my Kindle Paperwhite as my primary device and redownloaded the .azw3 files telling the system that I would be transferring them to the Kindle Paperwhite (and not the Fire, which it was previously defaulted to) via USB. Bingo, imported into Calibre and problem solved.

        Now, my question is, if I have to files that are designated to my Kindle Fire and I want to save all this headache, is there a way to unlock those? I have two left.

        Thanks!

        • Go to your Manage Your Content and Devices page at Amazon, find the book you want, select “Download & transfer via USB”, then choose your Paperwhite.

      • I just tried another program – KindleDRM Removal – and it said it detected that these last two files are KFX. I know that KFX has to do with the new Kindle for PC program, but just figured that I would know if I had those files because they would end with .kfx. Is that incorrect? Can azw3 files be kfx as well?

        • AZW files may be KFX, but AZW3 won’t be. AZW3 is the extension for Kindle Format 8 files (KF8), and KFX stands for Kindle Format 10. (BTW, I hope you didn’t purchase that other program. From what I understand, it’s based on the tools offered for free here and can’t do anything beyond the ones here.)

  20. Hi, I’ve always used the plug-in without problems and last time I’ve used the stand-alone app correctly, but today I’ve got a file that does not work: it’s named like B*********_EBOK.AZW, instead of BOOKTITLE.AZW and when I try to import it in Calibre it’s added to the library but does not open: I’ve tried the convert command, but the error says “This is an Amazon KFX book” even if the extention is AZW; so I think that’s why both Calibre plug-in and DeDRM app stad-alone won’t work even if I inserted the correct Kindle serial number in the preferences. But how can I download a file that’s a real AZW that can use to store a deDRMed version of my purchase for backup?

      • Thank you. After re downloading the files, I’ve obtained a real azw and the plug-in worked perfectly! I was confused because I didn’t understand how an AZW file was really a KFX instead. Thank you for your help 🙂

        • AZW is actually a generic extension used by Kindle for PC (and Mac?) for all of their various ebook file types: Mobi, KF8 (AZW3), KFX, Topaz, etc.

          • I suppose if it’s proprietary it ain’t fragmentation. I really like a lot of what Amazon does, but I won’t buy a kindle because of they’re funky format.

            Thankfully, because of the wonderful work the ‘apprentices’ here do, it allows me to port any Amazon purchase (or ANY purchase) I make to the format of my choosing on the device of my choosing.

            Currently considering buying the Kobo Aura H2O. I haven’t bought a new eReader since 2012. It’s beach season and that’s when I break out my very old Nook First Edition, It has some cracks and scratches so it’s not a worry. Ooops, sorry for digressing 🙂

  21. 6.5.3 Mac application, running 10.12.5. Nook 1st gen. Getting this message:
    There is 1 ebook to be decrypted.
    Processing file: Surviving After Cancer_ Living the New Nor – Anne Katz.epub
    shellcommand: /usr/bin/python ‘/Applications/DeDRM.app/Contents/Resources/zipfix.py’ ‘/Users/chummer/Desktop/Surviving After Cancer_ Living the New Nor – Anne Katz.epub’ ‘/Users/chummer/Desktop/Surviving After Cancer_ Living the New Nor – Anne Katz_fixed.epub’ > ‘/Users/chummer/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: sh: /Users/chummer/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log: No such file or directory
    There was an error with 1 ebook:
    Surviving After Cancer_ Living the New Nor – Anne Katz.epub had a problem with ZipFix:
    sh: /Users/chummer/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log: No such file or directory

    shellcommand: /usr/bin/python ‘/Applications/DeDRM.app/Contents/Resources/ignoblekeyfetch.py’ ‘chummer@mac.com’ ‘gB9-fXG-Qxf-Ah7’ ‘/Users/chummer/Library/Preferences/com.apprenticealf.dedrm/chummer@mac.com.b64’ > ‘/Users/chummer/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log’
    shellresult: sh: /Users/chummer/Library/Preferences/com.apprenticealf.dedrm/DeDRM_temp.log: No such file or directory

    Any assistance would be appreciated!

    • Looking at the log, I’d say try creating the folder /Users/chummer/Library/Preferences/com.apprenticealf.dedrm/ and see if that works. You may just need to download fresh copies of your books though. I’m guessing books from an original Nook might be too old to unlock with your current key, but new copies should work.

  22. I’ll just leave this here. This is a tool that can decrypt DRMION ebooks downloaded by Kindle for PC.
    If you want to compile it, you need Delphi 2010+ or Lazarus 1.6.4+ with Free Pascal 3.1 (trunk).
    http://www7.zippyshare.com/v/Xel89bZa/file.html
    It also contains a more complete list of field names for Kindle’s secure storage (.kinf2011).

  23. It looks like a lot of work went into that. Thanks for your effort. I only wish you had written it in Python instead of Pascal.

    Now that there is a way to decrypt KFX books it will be possible to discover some of the hidden details of how the format works.

    I noticed that the program has a placeholder for conversion of KFX to HTML. Without that functionality this program is mostly of academic interest since the result cannot be used to convert from KFX to another format. Still, it is a big step.

    • Come on dude, no one is obligated to spenf time learning Python just for our convenience. Researching a new encryption format is time consuming enough. We should appreciate this effort without any ifs and buts, especially considering how long it’s taken for anyone to crack KFX.

      • I did say thanks and acknowledge the effort involved.

        I then moved on to practical issues that will arise in making use of the software, both for myself in understanding KFX and for the developers of the Tools that this blog is for. I apologise to lulzkabulz if my post came across as ungrateful.

        Again, thanks to lulzkabulz!

  24. Hi, I’m follow your instructions because apparently is not working. Thank you in advance for your help.

    calibre Debug log
    calibre 3.0 Portable embedded-python: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.12+
    Windows: (‘7’, ‘6.1.7601’, ‘SP1′, u’Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM (6, 5, 3) && Find Duplicates (1, 6, 3)
    calibre 3.0 Portable embedded-python: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.12+
    Windows: (‘7’, ‘6.1.7601’, ‘SP1′, u’Multiprocessor Free’)
    Successfully initialized third party plugins: DeDRM (6, 5, 3) && Find Duplicates (1, 6, 3)
    Turning on automatic hidpi scaling
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 71.9292035398 x 72.0
    Using calibre Qt style: True
    Starting up…
    Started up in 6.83 seconds with 0 books
    Storage number map:
    {(7L, 0L): [(2L, ‘C’), (3L, ‘D’), (4L, ‘E’)],
    (7L, 1L): [(1L, ‘F’)],
    (7L, 2L): [(1L, ‘G’)]}
    Storage number for USBSTOR\DISK&VEN_KINDLE&PROD_INTERNAL_STORAGE&REV_0100\B023170124460DVS&0: StorageDeviceNumber(type=7L, number=2L, partition_number=0L)
    Drive letters for USBDevice(vendor_id=0x1949 product_id=0x4 bcd=0x100 devid=usb\vid_1949&pid_0004&rev_0100 devinst=3180)
    {u’drive_letters’: [‘G’],
    u’pnp_id_map’: {‘G’: u’\\?\usbstor#disk&ven_kindle&prod_internal_storage&rev_0100#b023170124460dvs&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}’},
    u’readonly_drives’: set([]),
    u’sort_map’: {‘G’: (2L, 1L)}}
    Job: 1 Get device information started
    DeviceJob: 1 Get device information done, calling callback
    DeviceJob: 1 Get device information callback returned
    Job: 2 Set library information started
    DeviceJob: 2 Set library information done, calling callback
    DeviceJob: 2 Set library information callback returned
    Job: 3 Get list of books on device started
    DEBUG: 0.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= None
    DEBUG: 0.0 USBMS: dirs are: G:\ documents
    DEBUG: 0.0 USBMS: scan from root False G:\documents
    DEBUG: 0.1 USBMS: count found in cache: 13, count of files in metadata: 13, need_sync: False
    DEBUG: 0.1 USBMS: Finished fetching list of books from device. oncard= None
    DEBUG: 0.1 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
    DEBUG: 0.1 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= cardb
    DeviceJob: 3 Get list of books on device done, calling callback
    DeviceJob: metadata_downloaded: Starting set_books_in_library
    DeviceJob: set_books_in_library: books to process= 13
    DeviceJob: set_books_in_library finished: time= 0.00200009346008
    DeviceJob: metadata_downloaded: updating views
    DeviceJob: metadata_downloaded: syncing
    DeviceJob: metadata_downloaded: refreshing ondevice
    DeviceJob: metadata_downloaded: sending metadata_available signal
    DeviceJob: 3 Get list of books on device callback returned
    Job: 3 Get list of books on device finished
    No details available.
    Job: 2 Set library information finished
    No details available.
    Job: 1 Get device information finished
    No details available.
    DeviceJob: set_books_in_library: books to process= 13
    DeviceJob: set_books_in_library finished: time= 0.0620000362396
    Job: 4 Set library information started
    DeviceJob: 4 Set library information done, calling callback
    DeviceJob: 4 Set library information callback returned
    Job: 4 Set library information finished
    No details available.
    Job: 5 Prepare files for transfer from device started
    DeviceJob: 5 Prepare files for transfer from device done, calling callback
    DeviceJob: 5 Prepare files for transfer from device callback returned
    DeDRM v6.5.3: Trying to decrypt The Broken Road The Broken Serie-asin_B00IIRLIBC-type_EBOK-v_0.azw3
    Using Library AlfCrypto Python
    Job: 5 Prepare files for transfer from device finished
    No details available.
    MobiDeDrm v0.41.
    Copyright © 2008-2012 The Dark Reverser et al.
    MOBI header version 8, header length 264
    Extra Data Flags: 3
    Decrypting Kindle Format 8 ebook: The Broken Road (The Broken Series Book 1)
    Found 0 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.5.3: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.5.3: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in d:\Users\teaosj\AppData\Local
    No K4PC kindle.info/kinf/kinf2011 files have been found.
    DeDRM v6.5.3: Ultimately failed to decrypt after 0.2 seconds.
    Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 170, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 610, in run
    File “calibre_plugins.dedrm.init“, line 560, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.5.3: Ultimately failed to decrypt after 0.2 seconds
    Added The Broken Road (The Broken Series Book 1) to db in: 1.9
    Added 1 books in 3.0 seconds
    DeviceJob: set_books_in_library: books to process= 13
    DeviceJob: set_books_in_library finished: time= 0.0369999408722
    Worker Launch took: 0.0780000686646

    • If it’s from or for an E-ink Kindle (not a Fire), then you need to enter its serial number into the plugin customization. Otherwise, install Kindle for PC version 1.17 and import from there.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s