Obtaining ccHash from the Nook Windows store app #9
Replies: 17 comments 40 replies
-
Beautiful! I look forward to trying this when I get a chance. |
Beta Was this translation helpful? Give feedback.
-
Wow, that looks way easier than all the other current workarounds to acquire the key. I will give this a try and if it works without issues I will definitely add that code to the plugin. Thanks! |
Beta Was this translation helpful? Give feedback.
-
This worked perfectly for me! Thanks so much. |
Beta Was this translation helpful? Give feedback.
-
Thank you fesiwi! I spent days trying to figure out the new B&N storage in the summer. Finally gave up. Your script gave me my key and I am able to unlock Nook books again! |
Beta Was this translation helpful? Give feedback.
-
Just tried to test this but I can't install the Nook app. Tested two Windows 10 machines with an up-to-date Windows (21H2), neither of these display the "Install" / "Download" button for the Nook app. Am I doing something wrong, or did they take the app down? Maybe they noticed this script already and are building a new version? |
Beta Was this translation helpful? Give feedback.
-
I've just included that code in the plugin (including support for Python2 / Calibre < 5). When you click the "+" button for a new B&N key, you'll be asked if you want to use the "old" way (username and password / CC number), if you want to extract data from the installed Windows app (this uses your code), or if you want to grab the key from dumped Android app data (this is your code adapted to the Android app, which works similarly). Support for the key retrieval method (entering mail address and password, then downloading the ccHash directly from B&N) has been removed as the necessary server seems to have been shut down long ago. If you want to test without waiting for the next release, you can click on the "Actions" tab at the top, then click on the newest workflow run, then on the "plugin" artifact at the bottom and you'll be able to download a ZIP file with the newest plugin packaged from the latest commit. |
Beta Was this translation helpful? Give feedback.
-
Good results with fesiwi's method! Exfiltrated my spouse's--OK, a few were mine ;)--Nook collection so we can read on our local e-ink devices vice crappy phone screens. Windows 10 10.0.19041 For those Google-surfers more on my level, I just coped the terminal output from fesiwi's method above into a notepad terminal and saved with the .b64 extension. I imported that file using the "import Existing Keyfiles" button on the Barnes and Noble customization control tool under Prefs>Plugins>(highlight DeDRM)>Customize Plugin>Barnes and Noble ebooks. I imported all the downloaded Nook files from the app at: %user%\AppData\Local\Packages\BarnesNoble.Nook_ahnzqzva31enc\LocalState\ via the Calibre Add Books tool, and they all showed up good-to-go on in my Calibre Library. Fesiwi, I'm not sure how that code works--but I'm glad you're on our side :) J |
Beta Was this translation helpful? Give feedback.
-
noDRM, fesiwi,and spoolio |
Beta Was this translation helpful? Give feedback.
-
I have been using DeDRM 7.21 on Calibre 5.33.2 to remove DRM from Barnes&Noble books so that I can use a decent epub reader. I have three B&N keys configured in DeDRM, the latest retrieved in 2018. I downloaded a book and a magazine yesterday - DRM removal was successful on the magazine but not the book (none of the keys worked). DeDRM was not able to fetch/create new keys ("Could not retrieve key"). ElleKayEm pointed me here. I have Nook app version 1.11.0.4 installed on Windows 10 Home and can use it to read the book. I downloaded and unzipped nook-decoder.py from the top post into the Calibre2 directory. When I run the latest nook-decoder.py, I get:
Has B&N tightened the screws again or should I have first replaced DeDRM with the latest noDRM? Thanks, Norbert |
Beta Was this translation helpful? Give feedback.
-
This worked perfectly for me! |
Beta Was this translation helpful? Give feedback.
-
what did I do wrong? C:\Users\Natha>calibre-debug -e nook-decoder.py |
Beta Was this translation helpful? Give feedback.
-
Hello! Github noob here! |
Beta Was this translation helpful? Give feedback.
-
Thanks! I will give smaller batches a try.
…On Sun, Sep 4, 2022 at 2:33 PM ElleKayEm ***@***.***> wrote:
Don't try to import them all at once or DeDRM will get overwelmed and some
will slip past without decryption. Try 20 or so and see if all of those
worked. Then you can try more or less with the next batch depending on how
it goes.
—
Reply to this email directly, view it on GitHub
<#9 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A24YCCPQFEBH46WRW26KIWTV4TTQTANCNFSM5KLG6OQQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thank you again.
I had thought of that and erased all, uninstalled the Nook reader app, then
reinstalled and re-downloaded all the books so they were “fresh”.
It’s an odd issue because the books that are staying “locked” seem spread
out over my purchase history but do lean toward older purchases.
There may be an issue with an older key, but the account has been linked to
the same email since I got the first nook on pre-order ages ago.
…On Sun, Sep 4, 2022 at 11:22 PM ElleKayEm ***@***.***> wrote:
Were some of them downloaded a while ago? Maybe try a fresh download. It's
usually all or nothing. But perhaps your key changed since some of them
were downloaded.
—
Reply to this email directly, view it on GitHub
<#9 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A24YCCNIWKA7OQSS3FDBE73V4VROBANCNFSM5KLG6OQQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Just curious if this would work. If install Calibre on a windows machine and use this script to obtain the hash can I then take that hash over to my Ubuntu server and enter it in to the DeDRM plugin there and have it still work? |
Beta Was this translation helpful? Give feedback.
-
For whatever reason, it seems that this is only working on some books for me, not on all. I've currently got two books downloaded in my Nook app, one 800kB Jane Austen novel and one 80MB manga volume. I've confirmed that both are DRM-laden, within the Nook download directory. And importing the Jane Austen novel into Calibre strips the DRM from it without any fuss, but importing the manga volume into Calibre doesn't; it remains DRM-laden and unusable even post-import. (I'm guessing this is a small-file-versus-large-file issue, but I don't own enough Nook books of different file sizes to be able to do any serious experimentation to confirm it; perhaps it's some other thing entirely, and the file-size difference is just a red herring.) I'm not sure what to try here. Based on the discussions upthread of issues when importing too many books at a time, I wondered if it was a "my CPU is busy being hogged by some other program and thus Calibre is being throttled as though in a multi-book export"-type issue, but I tried again once the other program was done and my CPU was freed up, and the issue persisted. I've failed to generate additional ideas since then. Do people here have any suggestions? |
Beta Was this translation helpful? Give feedback.
-
Worked great first time out. Thank you. I use Linux but this computer has a Windows 10 install that I shrunk and left on its partition before installing Linux. So I finally found something to use it for. I had tried the Android Studio method but kept coming up with a NULL value when I ran SQLite. I guess the NoDRM method would only work in Windows (which I'm going to test). I had "liberated" most of my B&N books when the encryption was based on my CC number. But I've bought a few since. Mostly though, I wanted to get this working because I would rather buy from B&N than Amazon (they often run the same sales). Now I can do that without feeling "trapped." |
Beta Was this translation helpful? Give feedback.
-
Experimental Python script to extract the Barnes and Noble Nook decryption key (ccHash) from the Nook Windows store app. If it proves useful perhaps it could be included into the DeDRM plugin. The actual script has been zipped for posting here.
Instructions:
Install calibre version 5 or later on your PC. (This Python script relies on calibre version 5 or later being installed to supply
the correct libraries for its execution.)
Install the Nook app from: https://www.microsoft.com/en-us/p/nook-books-magazines-newspapers-comics/9wzdncrfj33h
(Requires a recent Windows version.)
Sign in to the Nook app with your email and password and then close the app.
Run this script by entering at a Windows command prompt:
calibre-debug -e nook-decoder.py
This procedure has been tested with Nook app version 1.11.0.4 under Windows 11.
nook-decoder.zip
Beta Was this translation helpful? Give feedback.
All reactions