-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DeDRM with Nook #814
Comments
Right now the ways these tools use to retrieve the key are broken. If you already had your key, you would still be able to remove DRM. If your Nook HD is rooted or if you have a rooted Android device with the Nook app, it's possible to find the key and manually import it into DeDRM. |
How would I know if my device is rooted? |
If you don't know, it's not. Unless you have some tech savvy person who you let mess about with your devices. If so, ask them. |
Where is the key located on a rooted device? |
Not sure exactly. I've seen it on an old rooted Nook device, but it's been a while. Someone recently commented on the Alf blog that they found it on a rooted Android device. It will be in an unencrypted SQLite database. Look for something called "ccHash." 28 characters long ending in an equal sign =. Copy it into a plain text file with nothing else. Change the file extension to .b64. Import it into the plugin customization. |
Good to know. On a Glowlight 3, I'll be sure to bring it here if I find it. So far I haven't been able to find either ccHash (which I imagine means credit card hash?) or the SQLite Database. Still searching though. |
Yes, ccHash is from when the key was based on your default credit card. They stopped doing that at the end of 2014, but the key is still called that. I'll be curious to see if it can be found on the Glowlight 3. Hopefully they haven't encrypted it, as they apparently have in the Windows 10 Nook app. |
I know this is an old thread, but here are the steps I took to strip the DRM from my nook epubs on Windows 10. This worked on 5/27/2019 on regular ebooks. It didn't work for the one comic in my library. Also, my nook seems to be functioning ok after removing root, however I wasn't really concerned with it as I'm switching to a kindle. Please remember that rooting your device could brick it. Downloaded my nook epubs
Download Android SDK
Download the rootGLP scripts
Enable debugging on your nook glowlight plus
Enable root shell on your nook glowlight plus
Remove SuperSU from your nook and return it to normal
|
Thanks for the detailed explanation! |
Cleo, Thank you for going to the trouble of explaining your process. I don't currently have a Nook e-reader. The one I had was pretty worn out and was stolen, in any case. I have an Onyx Nova Pro, which I am generally liking as an e-ink reader. I have a ton of content that I purchased from B&N. Without purchasing a Nook, can I get the epubs I purchased without DRM? I can't even seem to find an epub file to bring into Calibre. I have successfully converted my Kindle and my Google Play Books, but so far haven't figured this one - the big one. Any direction you can point me in would be great! I'd hate to repurchase things if I don't have to. Thank you, in advance. |
As Cleo said, you can get the epubs from the Windows 8/10 Nook app. But if you don't have your key from before Nook for PC and Nookstudy stopped working, then the only other way I know to get the key (and the books) would be a rooted Android device with the Nook app. |
Cleo, I know you probably moved to your kindle already but I have a rooted nook and some ebooks. None of the ebooks are comics. Anyway, I get two hashes -- '�� �E�dvjyB6xkLB3LGlHL6pGbOdnkpHEk=BLANK ��E vjyB6xkLB3LGlHL6pGbOdnkpHEk=root@ntx_6sl:/data/data/bn.ereader/databases I tried it with just the 28 characters from each set -- did not work-- then I tried it using various incarnations with it truncated at places and it did not work. Can you please give me some insight here ? |
BTW, I am using the nook Glowlight 3 but I just ordered a glowlight plus today. |
Hi Cleo, Thank you! |
I figured out the problem. The cchashdata.db file had limited permissions so I did a "chmod 755 cchashdata.db" because pulling the file with adb did not work before that command. Then I pulled the file and ran the sqlite3 database command line on it then issued the command “sqlite3.exe cchashdata.db”. At the database prompt, enter “select hash from cc_hash_data;”. Don’t forget the semicolon. Viola ! Then it gave me my hash. |
@DracoSentien @tjmhsdca |
Thanks but no thanks , I already figured it out ! I already stripped the DRM of all my nook ebooks before you even posted that reply ! See my third comment above. |
Yup, I see you posted while I was still looking at something else. Glad you figured it out. |
Thank you, again, for your patience. I had my Dell XPS have a fit of Blue
Screens of Death, so I had to postpone my de-DRMing. So, currently, I do
not have my Galaxy S2 rooted. I bought a newer tablet, so I'm fine rooting
it. Do you have a recommendation for what I use in place of the Samsung
setup? Any guidance would be great. I'm tempted to just get a Nook and
possibly return it after since I have so much content there that really
needs to be portable. Thank you, again!
…On Sat, Jun 29, 2019 at 3:26 PM ElleKayEm ***@***.***> wrote:
@DracoSentien <https://github.com/DracoSentien>
This is your key:
vjyB6xkLB3LGlHL6pGbOdnkpHEk=
@tjmhsdca <https://github.com/tjmhsdca>
Yes, you can find your key on a rooted Android device with the Nook app as
well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#814?email_source=notifications&email_token=AL36UGTZCB7GBO2SC44MFL3P47OPTA5CNFSM4HI2BJBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY4BGWQ#issuecomment-506991450>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AL36UGUUPH6HQ6GNS7LMIPLP47OPTANCNFSM4HI2BJBA>
.
|
I don't know, but you can probably find something at the xda forums: |
Thank you!
…On Fri, Jul 12, 2019, 3:45 AM ElleKayEm ***@***.***> wrote:
I don't know, but you can probably find something at the xda forums:
https://forum.xda-developers.com/
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#814?email_source=notifications&email_token=AL36UGRAG2GGFQCXI73P3YDP7BOELA5CNFSM4HI2BJBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZZNEIY#issuecomment-510841379>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AL36UGXESWLTFFV62BBN6QLP7BOELANCNFSM4HI2BJBA>
.
|
@cleo2525 @DracoSentien @tjmhsdca I'm wondering if there's something I'm missing. I installed Nook for Android on a virtual device, and signed in. I was able to access the relevant database and extract the hash from it. Following the instructions @cleo2525 posted, I created the key file. The DeDRM plugin in Calibre allows me to import the file. However, my books aren't stripped of their DRM when I import them. I continually get the dreaded "This book has DRM" popup. When the problem occurred on my Mac, I tried the same on a Windows virtual machine, with the same result. If any of your experience might suggest something I've missed, I'd be grateful. |
Many thanks, @ElleKayEm, for the instructions on how to get the log. If it makes a difference, this is from a Mac running 10.14.6. Here's what the log says: calibre Debug log DeDRM v6.6.3: Failed to decrypt with key BNobleX after 0.1 seconds Debugging DND event Firefox rurl: None None |
How did you download the books and was it recently? |
Has anyone else had trouble with a blank cchashdata.db file? Using Nook for Android on my (rooted) phone. Followed the instructions of cleo2525 (allowing for slight variances due to a different device), and attempted to extract the hash. But the output of 'cat cchashdata.db' was the following:
@cleo2525 @tjmhsdca @DracoSentien I would be grateful for any help you might be able to provide! ETA: One difference, which I assume is related to the OS but mentioning just in case. My cchashdata.db file is located in 'data/data/com.nook.app/databases', not '/data/data/bn.ereader/databases'. And a couple extra details, in case they're relevant:
|
@ElleKayEm I used the Windows 10 Nook application in my Windows VM — that was the only app I could get to work. I downloaded the books on Tuesday. The emulated Android device was a Nexus 5 running Nougat. I extracted the hash from there this afternoon (Wednesday). |
@fitzshayla @acavender |
@ElleKayEm Yup, and also made sure my books were downloaded to my device. (Which I double-checked by accessing them offline.) |
Just wanted to leave my experience in case it helps others. Thanks for the assistance to everyone in the thread, especially Aric. My goal was to strip the DRM off Nook manga, which needed more steps than a standard ebook. Successful steps to get decrypted manga:
Note: all attempts to use the Nook Windows app failed. Calibre was never able to properly decrypt the files, even with attempting to manually add the "rights.xml" file into the epub and using the same encryption key that worked for books retrieved from the emulator. Honestly, it's hard to justify this level of effort for new manga purchased from B&N, but sometimes they're the only option for certain series. Cheers, everyone. |
As an added note RE: Vlinur32's guide for comics, manga, and graphic novels I followed all the instructions to a T, but the page order of my book was scrambled on some devices (my phone/ereader but not my main computer, oddly). The solution to this if you have it is, after deleting all the "thumbs" files, make sure all the pages have leading 0s so that the page number has the same number of integers in it. For example, in a 200+ page graphic novel, add two leading 0s to pages 1-9, and one leading 0 to pages 10-99 So instead of Best of luck all! |
I'm another poor sod whose |
With AVD, Aric's writeup has a Nexus 5 device using Android 7.1.1 (Google APIs) as the base image. Someone else upthread mentions a Nexus 6 with Android 11 working. |
I've also heard that now the BN key will change with new installations of the Nook app. So be sure to grab new copies of books as well as key at the same time. |
I tried both of those combinations and still nothing in the table. |
I don't know. Maybe this just doesn't work anymore. You were able to download and read your books in the app? |
Yup, in all cases. |
Hmmm, it doesn't seem like it needs to put the cchash in there. I don't know what triggers it to do so in some cases and not in others. What version of the Nook app are you using? I see Aric used 5.0.2.38 which looks like it's from a couple years ago. |
I used the newest version from APK Mirror, which was 5.5.x. I'll try the older version and see if that makes any difference. In my defense, I figured the post referenced older versions of Android and the Nook app because the post itself was pretty old, but I see that's not the case. |
Haha, I did need the old version! I got my key and successfully de-DRM-ed my books. Thanks for the suggestion! |
Good to hear! I was worried this method just wasn't working any longer. |
Has anyone used these instructions? Stuck on 19. No idea how to find where the books are. On the emulator, it’s in SDCard/Android/data/bn.ereader but I can’t find that at all on windows file explorer. Any advice? Show hidden items is ticked. |
@digitalfreaknyc They won't show up in Windows Explorer. You need to use I used the instructions against a rooted android device, and they worked perfectly. I installed
Used the latest DeDRM release (7.2.1). |
I'm stuck trying to install the Nook app in my virtual device. Either I get a message that my device has insufficient storage, I get a parsing error, or that the app is incompatible with my device. I've tried four virtual devices so far, and different versions of Android. The device/Android combo in Aric Renzo's description wouldn't work for me, either. Still looking for a combination that will work. I'm on a Mac, if that makes a difference. I'm open to any suggestions of what has worked for you! |
I discovered my problem. I have a Mac with an M1 chip. Even with installing the Android Studio version for M1, the virtual devices do not work as expected. Some won't work at all. Now attempting with my Intel Microsoft Surface Go. |
Well, I went through the whole process, extracted the key a 28 digit key ending in =, added it to the DeDRM plugin in Calibre... and it didn't strip the DRM. I'm using the Nook app for Windows 10-11. I'll try again later. |
I decided to try the key on my Mac Calibre setup. I downloaded three Nook books on the Nook Windows app and copied them to my Mac. Calibre on Mac removed DRM from two out of the three books. |
Try the books from the app where you got the key. Are they all epubs? |
They are all epubs. I tried two from the app where I got the key. I had the same result. The one from which Calibre couldn't remove DRM is in this format: long number_epub.v4.epub, while the other, that Calibre successfully removed DRM from, is: long number_epub.v3.epub. Some books are epub.v2.epub, and others epub.v1.epub. I don't know if those differences have any relevance to my DRM problem! |
Is the one that doesn't work a comic? In any case, let's take a look at a log: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md#i-cannot-solve-my-problem-with-the-dedrm-plugin-and-now-i-need-to-post-a-log-how-do-i-do-that |
tmp972pzot7.txt |
Hmmm, doesn't seem to like those keys. Can we see a log from one of the ones that succeeded? |
Well, I tried one more thing. It finally dawned on me that I have an old rooted Nexus 7 which is now running Android 11, courtesy of XDA. I installed Nook 5.02.38 on it and, using sqlite on cchashdata.db, found a code that was different from the one I had from my Android emulator. I made a new key with this code for DeDRM. I downloaded a few books through that Nook app and tried importing them into Calibre. No books had their DRM removed. Thank you for your help, but I wonder if it's worth it for me to keep chasing this. My Kindle setup with Alf and Calibre works fine. |
Development of these tools has been picked up by someone calling themself noDRM here at GitHub. I haven't looked at it myself, but I've heard there are improvements to the Nook part of things in addition to merging pull requests that have been lingering here for a while. So maybe look for that and give it one more shot. |
Thanks for your response! In the meantime, I discovered noDRM, thanks to comments on the Mobileread forums. I decided to test it out. I installed Calibre on a Windows 11 VM I have on my Mac and then installed the noDRM plugin in Calibre. The noDRM plugin gives me the option to set up a key for Nook books using the old algorithm. I then tried some Nook books I downloaded from the Nook app for Windows 10/11. Here's the result: the book that I couldn't remove DRM from before, noDRM removed! However, noDRM didn't remove DRM from other Nook books I tested. I noticed in the noDRM readme that no claim is made to be able to remove DRM from Nook books (because there are difficulties with such removal), even though the plugin itself has a B&N button. YMMV, I guess. |
Anything in particular about the ones that didn't work? Downloaded from a different app? Fresh copies or downloaded some time ago? From the same publisher? |
Hello:
I have been a Nook owner for years, and recently decided to switch over to Kindle. Looking to covert my Nook books to my Kindle and have tried everything there is available on the net, but can't seem to get anything to work. No matter what program I use, I get to the point where I have to enter my Nook account login info, and it always come back telling me that I do not have the correct information. I have checked, double checked and triple checked, and I am positive that I have the correct information. I have seen in posts here that Barnes and Noble my have changed the way to get keys to remove the DRM. Is that the case, and is there no way to remove the DRM now?
BTW, I am working with a Windows 10 PC and a Nook HD. Any information would be a great help and much appreciated.
The text was updated successfully, but these errors were encountered: