DRM Removal Tools for eBooks

Last updated on 18 January, 2016

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 my FAQs post:  Frequently Asked Questions about the DRM removal tools.

If you have any problems with the current tools, please ask for help in a comment on this post. 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 folder)
  • 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 this application for gaining full access to your own ebooks for archiving/converson/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.

1,128 thoughts on “DRM Removal Tools for eBooks

  1. How can Calibre work with VBK files? I tried bringing a VBK file into Calibre but it says I do not have a license for the book. I purchased the book but I do not want to be forced to use VitalSource Bookshelf. Is there anyone you can work with to get VBK support in Calibre?

    • You can only view/convert DRM-free books with calibre. VBK is basically a DRM wrapper around an epub or pdf file. There may be a tool to extract them, but it isn’t currently included with the tools here.

  2. Need a bit of help here, please.

    Lost my motherboard in a lightning strike (dramatic, but bugger!), had to re-install Windows and all apps. Now I can’t get the DeDRM_Drop tool working for Kindle books. I’d be grateful for any help.

    I don’t use Calibre. ActivePython and pycrypto are both installed. Kobo purchases are downloaded through the Kobo Desktop, and the Obok script (v. 6.3.6a) handles them fine. For Kindle books, I created a new shortcut for the Drop tool, and dragged it to the desktop. It works … sometimes.

    The books I’m having trouble with are all downloaded with the Kindle for PC app from Amazon. Some work, and are saved as “nodrm” copies, but some fail, with no message as to why.

    I assume it generates a log? I can’t seem to find one. How can I troubleshoot this, please?

      • Yes, you’re right, Paul, thanks. I didn’t think to look in the root of the folder.

        The log says, in part:

        Keys not found in the database C:\Users\XXXX\AppData\Local\DeDRMPrefs\kindlekey.k4i.
        Found 0 keys to try after 0.0 seconds
        Crypto Type is: 2
        Error decrypting book after 0.0 seconds: No key found in 0 keys tried.

        The file “kindlekey.k41” exists, and is timestamped at the same time I logged the new installation of “Kindle for PC” into my Amazon account, so I assumed the key would be there.

        I tried deleting the books from the “My Kindle Content” folder and re-downloading them, but still no go.

        How do I create the necessary file, but with a legitimate key?

        • That file is created by the app. You need to create a proper one, or find out why that one didn’t work. Since you’re doing this outside calibre, the simplest way would be to run the kindlekey.py script yourself. Take the file that outputs and replace the bad copy at C:\Users\XXXX\AppData\Local\DeDRMPrefs\kindlekey.k4i. (make sure you get the name right – that an ‘i’ not a ‘1’)

          Or, if kindlekey.py fails, post the output of that script.

  3. Hi, Little problem loading the plugins to Calibre. The error msg follows:

    calibre, version 2.12.0
    ERROR: Unhandled exception: InvalidPlugin:The plugin in u’C:/Users/BC Dell/Documents/DeDRM_plugin/alfcrypto_src.zip’ is invalid. It does not contain a top-level __init__.py file

    calibre 2.12 isfrozen: 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.8
    Windows: (‘7’, ‘6.1.7601’, ‘SP1’, ‘Multiprocessor Free’)
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\preferences\plugins.py”, line 316, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 386, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 53, in load_plugin
    File “site-packages\calibre\customize\zipplugin.py”, line 188, in load
    File “site-packages\calibre\customize\zipplugin.py”, line 286, in _locate_code
    InvalidPlugin: The plugin in u’C:/Users/BC Dell/Documents/DeDRM_plugin/alfcrypto_src.zip’ is invalid. It does not contain a top-level __init__.py file

    As I can clearly see the init py file, I’m baffled about this error.

    Thanks.

  4. Hi,

    I’ve problems with the plugin with calibre V2.49.0:

    calibre, version 2.49.0
    FEHLER: Nicht abgefangener Fehler: AttributeError:’module’ object has no attribute ‘ConfigWidget’

    calibre 2.49 isfrozen: True is64bit: True
    Linux-3.16.0-38-generic-x86_64-with-debian-jessie-sid Linux (’64bit’, ‘ELF’)
    (‘Linux’, ‘3.16.0-38-generic’, ‘#52~14.04.1-Ubuntu SMP Fri May 8 09:43:57 UTC 2015’)
    Python 2.7.9
    Linux: (‘debian’, ‘jessie/sid’, ”)
    Successfully initialized third party plugins: DeDRM
    Traceback (most recent call last):
    File “site-packages/calibre/gui2/preferences/plugins.py”, line 289, in double_clicked
    File “site-packages/calibre/gui2/preferences/plugins.py”, line 370, in modify_plugin
    File “site-packages/calibre/customize/__init__.py”, line 154, in do_user_config
    File “calibre_plugins.dedrm.__init__”, line 621, in config_widget
    AttributeError: ‘module’ object has no attribute ‘ConfigWidget’

    Xubuntu 14.04 64-bit; Python 2.7.6

    What’s the problem here?

    Thanks,
    Rob

  5. Hello,

    Thank you very much! I love reading my books on my Kobo ereader, and with this plugin I use to convert my (legally acquired) Kindle books.

    Keep doing good things, generously. God bless you.

  6. I’m trying to get my kindle ebook textbook into a PDF so that I can print it, but I keep getting a “Failed: convert 1 book of 1″ error. I have the full book downloaded and am importing from kindle, BUT, it IS a 7 day trial for the book, I did not want to but it unless I know that I can for sure print the pages some way or another as it is a math workbook and is useless without the ability to print important pages. Is this error a result of the book being a trial? Or is this book just unbreakable?

    Here is the error log that it gives me”

    calibre, version 2.49.0 (win32, isfrozen: True)
    Conversion Error: Failed: Convert book 1 of 1 (Reconceptualizing Mathematics)

    Convert book 1 of 1 (Reconceptualizing Mathematics)
    Resolved conversion options
    calibre version: 2.49.0
    {‘asciiize’: False,
    ‘author_sort’: None,
    ‘authors’: None,
    ‘base_font_size’: 0.0,
    ‘book_producer’: None,
    ‘change_justification’: u’original’,
    ‘chapter’: u”//*[((name()=’h1′ or name()=’h2′) and re:test(., ‘\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))’, ‘i’)) or @class = ‘chapter’]”,
    ‘chapter_mark’: u’pagebreak’,
    ‘comments’: None,
    ‘cover’: u’C:\\Users\\Beau\\AppData\\Local\\Temp\\calibre_wl55xr\\b_yl1a.jpeg’,
    ‘custom_size’: None,
    ‘debug_pipeline’: None,
    ‘dehyphenate’: True,
    ‘delete_blank_paragraphs’: True,
    ‘disable_font_rescaling’: False,
    ‘duplicate_links_in_toc’: False,
    ’embed_all_fonts’: False,
    ’embed_font_family’: None,
    ‘enable_heuristics’: False,
    ‘expand_css’: False,
    ‘extra_css’: None,
    ‘filter_css’: u”,
    ‘fix_indents’: True,
    ‘font_size_mapping’: None,
    ‘format_scene_breaks’: True,
    ‘html_unwrap_factor’: 0.4,
    ‘input_encoding’: None,
    ‘input_profile’: ,
    ‘insert_blank_line’: False,
    ‘insert_blank_line_size’: 0.5,
    ‘insert_metadata’: False,
    ‘isbn’: None,
    ‘italicize_common_cases’: True,
    ‘keep_ligatures’: False,
    ‘language’: None,
    ‘level1_toc’: None,
    ‘level2_toc’: None,
    ‘level3_toc’: None,
    ‘line_height’: 0.0,
    ‘linearize_tables’: False,
    ‘margin_bottom’: 5.0,
    ‘margin_left’: 5.0,
    ‘margin_right’: 5.0,
    ‘margin_top’: 5.0,
    ‘markup_chapter_headings’: True,
    ‘max_toc_links’: 50,
    ‘minimum_line_height’: 120.0,
    ‘no_chapters_in_toc’: False,
    ‘no_inline_navbars’: False,
    ‘old_pdf_engine’: False,
    ‘output_profile’: ,
    ‘override_profile_size’: False,
    ‘page_breaks_before’: u”//*[name()=’h1′ or name()=’h2′]”,
    ‘paper_size’: u’letter’,
    ‘pdf_add_toc’: False,
    ‘pdf_default_font_size’: 20,
    ‘pdf_footer_template’: None,
    ‘pdf_header_template’: None,
    ‘pdf_mark_links’: False,
    ‘pdf_mono_family’: u’Courier New’,
    ‘pdf_mono_font_size’: 16,
    ‘pdf_page_numbers’: False,
    ‘pdf_sans_family’: u’MS Shell Dlg 2′,
    ‘pdf_serif_family’: u’Times New Roman’,
    ‘pdf_standard_font’: u’serif’,
    ‘prefer_metadata_cover’: False,
    ‘preserve_cover_aspect_ratio’: False,
    ‘pretty_print’: False,
    ‘pubdate’: None,
    ‘publisher’: None,
    ‘rating’: None,
    ‘read_metadata_from_opf’: u’C:\\Users\\Beau\\AppData\\Local\\Temp\\calibre_wl55xr\\5anzxr.opf’,
    ‘remove_fake_margins’: True,
    ‘remove_first_image’: False,
    ‘remove_paragraph_spacing’: False,
    ‘remove_paragraph_spacing_indent_size’: 1.5,
    ‘renumber_headings’: True,
    ‘replace_scene_breaks’: u”,
    ‘search_replace’: ‘[]’,
    ‘series’: None,
    ‘series_index’: None,
    ‘smarten_punctuation’: False,
    ‘sr1_replace’: None,
    ‘sr1_search’: None,
    ‘sr2_replace’: None,
    ‘sr2_search’: None,
    ‘sr3_replace’: None,
    ‘sr3_search’: None,
    ‘start_reading_at’: None,
    ‘subset_embedded_fonts’: False,
    ‘tags’: None,
    ‘timestamp’: None,
    ‘title’: None,
    ‘title_sort’: None,
    ‘toc_filter’: None,
    ‘toc_threshold’: 6,
    ‘toc_title’: None,
    ‘uncompressed_pdf’: False,
    ‘unit’: u’inch’,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    Python function terminated unexpectedly
    No embedded PDF found in AZW4 file (Error Code: 1)
    Traceback (most recent call last):
    File “site.py”, line 132, in main
    File “site.py”, line 109, in run_entry_point
    File “site-packages\calibre\utils\ipc\worker.py”, line 190, in main
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 31, in gui_convert_override
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 25, in gui_convert
    File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1037, in run
    File “site-packages\calibre\ebooks\azw4\reader.py”, line 23, in unwrap
    ValueError: No embedded PDF found in AZW4 file

  7. Hi, I know this for report bugs but theres is another way to download the plugin? github is having servers problems (few days ago) I cant access their webpage :/

  8. Just had a Kindle book with DRM that Calibre would not remove. Strange since it was a 5 book set and it worked fine on 4 of the 5. What I want to share is that I went to use the suggested “calibre-debug -g” to generated a log I could use here to get help and while in that mode I tried to remove the DRM and it worked! So it didn’t work in normal mode but did work when in the debug mode. Don’t have a clue why but am happy because it worked and I have my DRM free copy to archive. Maybe just a fluke but perhaps you have a theory and can use that to help others.
    Appreciate your efforts to help those who just want to archive purchased books in a non-proprietary format.

    • I’ve seen a couple people over at GitHub post what might be the same issue. What OS and what versions of calibre and DeDRM? And how were you downloading the Kindle books?

            • May have been a fluke that it worked once. Had another book that Calibre did not remove the DRM and tried the debug mode trick and it did not work. Sorry if I jumped to conclusions.

                • Oops. Sorry
                  I had the bright idea of deleting the book and downloading it again from Amazon on the chance it was somehow corrupted. Well when I looked at the new download it had no DRM and was already in MOBI format. Since it was a Bible and free, maybe they rethought the need for DRM. Don’t know. The copy I had before was in AZW format and had DRM. Same exact book however.
                  If I again have a problem with another book I will not be so quick to mess further with it so you can see what is going on.
                  Appreciate what you do.

                  • FYI, everything downloaded with Kindle for PC starts with an AZW extension. If you import it into calibre and it still has that extension, then the DeDRM plugin didn’t work correctly. Regardless of whether it started out with DRM or not, the extension should change. There isn’t really a plain AZW format. There’s MOBI, AZW3, AZW4, etc.

                    • Interesting! Guess I didn’t realize that.
                      Well the first try with the Bible (that failed) was an old download (probably had it a couple of years before trying to use Calibre on it.. I think it kept the AZW extension and then it came up with a message in Calibre that it had DRM and could not be converted. All the books I have successfully converted in Calibre start with an AZW or some version of it like AZW3 but then list an additional extension (MOBI after the conversion if I convert it to MOBI, so it shows both extensions in the window at the right). I need to pay more attention to the “before” and “after” extensions – I thought there was a plain AZW and the AZW3 was just a newer version.
                      Glad you are patient.

      • Same happened to me with Adobe Digital Editions 4.5.1 and Calibre 2.50.1 on Windows 10. Dedrm 6.3.6.
        Tried with calibre-debug -g everything and everything worked fine except a first failed dedrm attempt made with default_key while the second attempt with default_key2 worked as expected (but I suppose this is not an issue)

  9. Hi there,

    I’m trying to get this working on a recently purchased Kindle book. The book is downloaded to Kindle for Mac but the key can’t seem to be found.

    Ran kindlekey.py with the following output:

    Found k4Mac kinf2011 file: /Users/[username]/Library/Application Support/Kindle/storage/.kinf2011
    Couldn’t decrypt file.

    Using DeDRM 6.3.6a and Kindle 1.12.0.

    Thanks for all your help!

  10. I just downloaded the tool and installed it, and tried running it several times with a new Kindle download from Amazon and got this log:

    calibre Debug log
    calibre 2.50.1 isfrozen: 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
    Starting up…
    Started up in 54.07 seconds with 219 books
    DeDRM v6.3.6: Trying to decrypt I Ching.azw3
    Using Library AlfCrypto DLL/DYLIB/SO
    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 Complete I Ching — 10th Anniversary Edition: The Definitive Translation by Taoist Master Alfred Huang
    Found 0 keys to try after 0.1 seconds
    Crypto Type is: 2
    DeDRM v6.3.6: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.3.6: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\Bit\AppData\Local
    No K4PC kindle.info/kinf/kinf2011 files have been found.
    DeDRM v6.3.6: Ultimately failed to decrypt after 0.1 seconds.
    Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 153, in _run_filetype_plugins
    File “calibre_plugins.dedrm.__init__”, line 597, in run
    File “calibre_plugins.dedrm.__init__”, line 547, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.3.6: Ultimately failed to decrypt after 0.1 seconds
    Added The Complete I Ching — 10th Anniversary Edition: The Definitive Translation by Taoist Master Alfred Huang to db in: 0.2
    Added 1 books in 1.5 seconds
    Worker Launch took: 0.163000106812

    • If that book is from/for an EInk Kindle, enter the Kindle’s serial number.
      Otherwise, install Kindle for PC from the Amazon web site and download the book through that and import that copy.

  11. Can someone please help me. I have Calibre installed on Win 8.1, that I copied over from a back up drive, it is working fine I can open the books etc. Today I added a book from ADE into Calibre, went to convert it, didn’t work. On previous computer when I originally got Calibre I had used DRM removal tool from this blog, installed fine and working great but now it’s not working. I have read all the instructions and downloaded the latest version and followed instructions to the best of my ability (bearing in mind I managed the installation with no bother on previous computer) but I must be doing something wrong but I cannot figure out what. Have downloaded the tool several times, checking where I think I need to unzip but nothing is working. Would anyone kindly talk me through this please?

  12. Hi, I have Calibre for Win 10, and I’m trying remove the DRM from a B&N book downloaded using the nook app. I grabbed the key using my B&N email and password, but it still doesn’t seem to be working. I have DeDRM v6.3.4.

    Log file: (Note: I have a couple different key files in deDRM, named newKey, Key1, key2, & key3. None of the files are empty)

    C:\Users\theze>calibre-debug -g
    calibre 2.42 isfrozen: 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’)
    Qt: Untested Windows version 10.0 detected!
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 3.54 seconds with 97 books
    DeDRM v6.3.4: Trying to decrypt 9780544633711.epub
    DeDRM v6.3.4: Verifying zip archive integrity
    DeDRM v6.3.4: ���9780544633711.epub��� is a secure Barnes & Noble ePub
    DeDRM v6.3.4: Trying Encryption key Newkey
    Could not decrypt o8bozq.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
    File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.py”, line 95, in new
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.py”, line 59, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\blockalgo.py”, line 141, in __init__
    ValueError: Key cannot be the null string

    DeDRM v6.3.4: Failed to decrypt with key Newkey after 0.4 seconds
    DeDRM v6.3.4: Trying Encryption key KeyX
    Could not decrypt o8bozq.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
    File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.py”, line 95, in new
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.py”, line 59, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\blockalgo.py”, line 141, in __init__
    ValueError: Key cannot be the null string

    DeDRM v6.3.4: Failed to decrypt with key KeyX after 0.4 seconds
    DeDRM v6.3.4: Trying Encryption key keyX
    Could not decrypt o8bozq.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
    File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.py”, line 95, in new
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.py”, line 59, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\blockalgo.py”, line 141, in __init__
    ValueError: Key cannot be the null string

    DeDRM v6.3.4: Failed to decrypt with key keyX after 0.4 seconds
    DeDRM v6.3.4: Trying Encryption key keyX
    Could not decrypt o8bozq.epub because of an exception:
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.ignobleepub”, line 278, in decryptBook
    File “calibre_plugins.dedrm.ignobleepub”, line 209, in __init__
    File “calibre_plugins.dedrm.ignobleepub”, line 180, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.py”, line 95, in new
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\AES.py”, line 59, in __init__
    File “site-packages\pycrypto-2.6.1-py2.7-win32.egg\Crypto\Cipher\blockalgo.py”, line 141, in __init__
    ValueError: Key cannot be the null string

    DeDRM v6.3.4: Failed to decrypt with key keyX after 0.4 seconds
    DeDRM v6.3.4: Looking for new NOOK Study Keys after 0.4 seconds
    No nook Study log files have been found.
    DeDRM v6.3.4: Ultimately failed to decrypt after 0.4 seconds.
    Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 155, in _run_filetype_plugins
    File “calibre_plugins.dedrm.__init__”, line 601, in run
    File “calibre_plugins.dedrm.__init__”, line 277, in ePubDecrypt
    DeDRMError: DeDRM v6.3.4: Ultimately failed to decrypt after 0.4 seconds.
    Added Games Wizards Play to db in: 2.1
    Added 1 books in 3.1 seconds

    Can anyone figure out what’s going on?

  13. Can someone, anyone, please explain, in as few steps as possible, how to remove the drm from a kobo book in calibre? I added the plug-in…………………..Wait!!! I got it! Thank you for the help, but I suggest you organize your site better. Like a numbered list of steps. I found every solution online was too WORDY! But ty ty!

  14. Is everything still working with the Kindle for Android key-extraction instructions? They worked before, but after a full system recovery I’ve had to re-install everything. Now the ‘adb backup com.amazon.kindle’ command only produces a 41byte backup.ab file, and the customize-add-on dialogue can’t get a key from it. I’ve run adb on Linux and win7, and on three different devices (samsung note 4, note pro 12.2, and Nexus 7) with the same size output file, and results. Does anyone have a working backup.ab file? what size is it? I don’t know if it’s a changed amazon-kindle app storing its keys differently, or something else. Unfortunately all my devices have updated their OS recently too!

    The tools work fine with the Kindle on PC files, but every now and again I buy a book which refuses to load on PC, and is only readable on Android. I’d like to back them up as well.

    Thanks for any help or ideas..

  15. Neat tool – have used before for backups, but now fails on a new book (windows-10).

    C:\Users\guthrie>calibre-debug -g
    calibre 2.50.1 isfrozen: 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’)
    Qt: Untested Windows version 10.0 detected!
    Successfully initialized third party plugins: DeDRM
    Starting up…
    Started up in 3.04 seconds with 35 books
    DeDRM v6.3.6: Trying to decrypt myBook.azw
    Using Library AlfCrypto DLL/DYLIB/SO
    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: myBook
    Found 0 keys to try after 0.2 seconds
    Crypto Type is: 2
    DeDRM v6.3.6: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.3.6: Looking for new default Kindle Key after 0.2 seconds
    searching for kinfoFiles in C:\Users\guthrie\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\guthrie\AppData\Local\Amazon\Kindle\storage\.kinf2011
    Decrypted key file using IDString ‘1432573045’ and UserName ‘67757468726965’
    DeDRM v6.3.6: Found 1 new key
    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: myBook
    Found 4 keys to try after 0.4 seconds
    Crypto Type is: 2
    DeDRM v6.3.6: Ultimately failed to decrypt after 0.4 seconds.
    Read the FAQs at Alf’s blog: https://apprenticealf.wordpress.com/
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 153, in _run_filetype_plugins
    File “calibre_plugins.dedrm.__init__”, line 597, in run
    File “calibre_plugins.dedrm.__init__”, line 547, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.3.6: Ultimately failed to decrypt after 0.4 seconds
    Added myBook to db in: 0.9
    Added 1 books in 2.5 seconds

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