Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 06-07-2020, 04:48 AM   #796
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,989
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
I've just had a go with the new kindlekey.py file, and it doesn't work on Mac. I haven't tested on PC.
pdurrant is offline  
Old 06-07-2020, 08:34 AM   #797
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,075
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by pdurrant View Post
I've just had a go with the new kindlekey.py file, and it doesn't work on Mac. I haven't tested on PC.
There are separate sections of code for handling PC and Mac platforms in that file. The pull request only changes the PC logic. You would have to add the equivalent logic to the Mac section before testing in order to have a chance of it working.
jhowell is offline  
Advert
Old 06-07-2020, 10:17 AM   #798
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,989
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by jhowell View Post
There are separate sections of code for handling PC and Mac platforms in that file. The pull request only changes the PC logic. You would have to add the equivalent logic to the Mac section before testing in order to have a chance of it working.
I suppose it's just possible that Amazon has finally converged the Mac and PC cryptography code. Worth a try. (I did update it to at least find the .kinf2018 file on Mac.) When I next have some free time...
pdurrant is offline  
Old 06-07-2020, 08:27 PM   #799
darryl
Wizard
darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.
 
darryl's Avatar
 
Posts: 3,108
Karma: 60231510
Join Date: Nov 2011
Location: Australia
Device: Kobo Aura H2O, Kindle Oasis, Huwei Ascend Mate 7
If I get the chance I will repeat the experiment with Win 10. If so I will post a bug on github with the debug log, assuming of course that it does not magically just work.
darryl is offline  
Old 06-07-2020, 10:38 PM   #800
darryl
Wizard
darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.
 
darryl's Avatar
 
Posts: 3,108
Karma: 60231510
Join Date: Nov 2011
Location: Australia
Device: Kobo Aura H2O, Kindle Oasis, Huwei Ascend Mate 7
Couldn't resist. Debug log shows it successfully decrypted the key file and shows the ID and username strings used. It then failed in the course of decrypting the KFX-ZIP ebook. The message in the log is that it is decrypting the drm voucher before failing after 7.8 seconds.

I will get around to posting an issue on Github with an anonymised log from a pd title, but not today.
darryl is offline  
Advert
Old 06-09-2020, 03:54 AM   #801
darryl
Wizard
darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.
 
darryl's Avatar
 
Posts: 3,108
Karma: 60231510
Join Date: Nov 2011
Location: Australia
Device: Kobo Aura H2O, Kindle Oasis, Huwei Ascend Mate 7
I have just opened issue #1118 at Apprentice Harper's github which attaches a log of my attempt to add Kurt Vonnegut's 2 B R 0 2 B, a public domain e-book from Amazon US, to Calibre. The results were similar to what I posted above. I suspect Apprentice Sakuya's pull request is in fact getting the .kinf2018 file and deriving the key, but the algorithm the plugin uses for the actual decryption does not deal properly with the new format. My mediocre abilities with Python and cryptography generally are unsurprisingly exhausted at this point. We can only wait until someone with the appropriate skills has the time and inclination to take matters further. Thanks to Apprentice Sakuya for getting us this far.
darryl is offline  
Old 06-09-2020, 12:41 PM   #802
seigezunt
Member
seigezunt began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jan 2011
Device: Dell Axim, Sony PRS-300, Slick
It's odd. I'm finding the plugin works for some new books, and not others, all from the same publisher.
seigezunt is offline  
Old 06-09-2020, 01:27 PM   #803
Gibbo
Guru
Gibbo ought to be getting tired of karma fortunes by now.Gibbo ought to be getting tired of karma fortunes by now.Gibbo ought to be getting tired of karma fortunes by now.Gibbo ought to be getting tired of karma fortunes by now.Gibbo ought to be getting tired of karma fortunes by now.Gibbo ought to be getting tired of karma fortunes by now.Gibbo ought to be getting tired of karma fortunes by now.Gibbo ought to be getting tired of karma fortunes by now.Gibbo ought to be getting tired of karma fortunes by now.Gibbo ought to be getting tired of karma fortunes by now.Gibbo ought to be getting tired of karma fortunes by now.
 
Gibbo's Avatar
 
Posts: 776
Karma: 2475053
Join Date: May 2007
Device: Galaxy Tab A (2019) - iPhone 11 - KA1 - Onyx Boox Nova Pro
Quote:
Originally Posted by Gibbo View Post
The way I've overcome the problem was by installing Virtualbox to Mac/Catalina and creating a Windows 10 virtual machine and installing Kindle 1.17, extreme but it works.
Not happy with my setup I downgraded to Mojave installed Kindle 1.17 and it's good to go
Gibbo is offline  
Old 06-09-2020, 01:51 PM   #804
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,075
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by seigezunt View Post
It's odd. I'm finding the plugin works for some new books, and not others, all from the same publisher.
If you want assistance with that you should ask for help at either Apprentice Alf's Blog or Apprentice Harper's GitHub.
jhowell is offline  
Old 06-11-2020, 03:07 PM   #805
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,075
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by pdurrant View Post
I suppose it's just possible that Amazon has finally converged the Mac and PC cryptography code. Worth a try. (I did update it to at least find the .kinf2018 file on Mac.) When I next have some free time...
I see that a new pull request has been made at Apprentice Harper's GitHub to add decoding of .kinf2018 files from Kindle for Mac.

(Thanks to apprenticesakuya.)

Last edited by jhowell; 06-11-2020 at 03:12 PM.
jhowell is offline  
Old 06-11-2020, 04:35 PM   #806
sergio0p
Member
sergio0p began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Jun 2020
Device: ipad
I had problems installing the old Kindle version in my Mac. Because these links are not from Amazon, the file was quarantined and I had to use the xattr command in the terminal so I could open the file, see this link. Also, I'm not sure if this old kindle would run in Catalina (I am still using High Sierra).
sergio0p is offline  
Old 06-12-2020, 04:19 AM   #807
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,989
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by jhowell View Post
I see that a new pull request has been made at Apprentice Harper's GitHub to add decoding of .kinf2018 files from Kindle for Mac.

(Thanks to apprenticesakuya.)
As far as I can see, this solves the problem of decrypting the .kinf2018 file on Kindle for Mac. But the new KFX files still don't decrypt.

[EDIT: But disabling KFX and using the right-click download option should work now, even for people who've never had a pre-1.25 Kindle for Mac installed.]

Last edited by pdurrant; 06-12-2020 at 04:52 AM.
pdurrant is offline  
Old 06-12-2020, 04:53 AM   #808
lkmiller
Laura
lkmiller ought to be getting tired of karma fortunes by now.lkmiller ought to be getting tired of karma fortunes by now.lkmiller ought to be getting tired of karma fortunes by now.lkmiller ought to be getting tired of karma fortunes by now.lkmiller ought to be getting tired of karma fortunes by now.lkmiller ought to be getting tired of karma fortunes by now.lkmiller ought to be getting tired of karma fortunes by now.lkmiller ought to be getting tired of karma fortunes by now.lkmiller ought to be getting tired of karma fortunes by now.lkmiller ought to be getting tired of karma fortunes by now.lkmiller ought to be getting tired of karma fortunes by now.
 
lkmiller's Avatar
 
Posts: 1,531
Karma: 23597272
Join Date: Nov 2009
Device: Kobo Sage, Kobo Elipsa, Nook Glowlight 4 Plus, Kindle Oasis 2
Quote:
Originally Posted by sergio0p View Post
Also, I'm not sure if this old kindle would run in Catalina (I am still using High Sierra).
No, you're right, it won't. Kindle for Mac version 1.23 and earlier are 32-bit.
lkmiller is offline  
Old 06-12-2020, 11:18 PM   #809
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,828
Karma: 7943430
Join Date: Mar 2015
Device: Kindle, iOS
Quote:
Originally Posted by jhowell View Post
I see that a new pull request has been made at Apprentice Harper's GitHub to add decoding of .kinf2018 files from Kindle for Mac.

(Thanks to apprenticesakuya.)
This is excellent! Thanks for the heads up!

apprenticesakuya, wherever you are!

Quote:
Originally Posted by pdurrant View Post
As far as I can see, this solves the problem of decrypting the .kinf2018 file on Kindle for Mac. But the new KFX files still don't decrypt.

[EDIT: But disabling KFX and using the right-click download option should work now, even for people who've never had a pre-1.25 Kindle for Mac installed.]
I just did a few quick tests and it does indeed decrypt KF8 on new installations of K4Mac 1.26.1. I tested using the standalone tools on High Sierra, but am very optimistic that apprenticesakuya's excellent work solves the Catalina problem

Last edited by odamizu; 06-12-2020 at 11:28 PM.
odamizu is offline  
Old 06-15-2020, 11:54 PM   #810
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,828
Karma: 7943430
Join Date: Mar 2015
Device: Kindle, iOS
apprenticesakuya has added another commit on GitHub: "Support KFX VoucherEnvelope versions 2 and 3"

This commit is ion.py rather than kindlekey.py
odamizu is offline  
Closed Thread

Tags
k4pc, kindle for pc


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Handling KFX files in Calibre HarryT Conversion 53 08-31-2018 03:21 AM
Dealing with Kindle for PC/Mac 1.19 and KFX in calibre BetterRed Conversion 0 02-08-2017 12:47 PM
Dealing with Kindle ebooks in calibre BetterRed Devices 0 02-06-2017 06:59 PM
updated calibre with a little help for kfx format cvkemp Amazon Kindle 0 10-06-2015 10:08 AM
Dealing with Multiple Calibre libraries samoanbiscuit Calibre Companion 4 08-27-2014 09:35 AM


All times are GMT -4. The time now is 10:13 AM.


MobileRead.com is a privately owned, operated and funded community.