Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-26-2021, 02:20 AM   #1
gesundheit
Member
gesundheit began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Sep 2021
Device: Kindle PW5 SE (2021)
Question How to programmatically get the sidecar "suffix"?

For Kindle sidecar files

(for example)
Code:
Hacker's Delight3c7b9ac0fd5a4d129d479c792bffa487.azw3r
there's a hyphen-less UUID appended to each filename. I've read on the forums that this string is determined by the currently active Amazon account. Is there a way to programatically get the right UUID string for the currently active account?
gesundheit is offline   Reply With Quote
Old 10-26-2021, 11:12 AM   #2
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: 6,501
Karma: 84500001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
It is the hex equivalent of the md5 hash of the Amazon customer ID.
jhowell is offline   Reply With Quote
Advert
Old 10-26-2021, 09:44 PM   #3
gesundheit
Member
gesundheit began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Sep 2021
Device: Kindle PW5 SE (2021)
What is Amazon customer ID? It's not my email address, and it's not amzn1.account.AF6RHO7KZU5XRVQJGXK6HB56KR2A or AF6RHO7KZU5XRVQJGXK6HB56KR2A (or any lower/uppercase versions) (ID changed for privacy). Is the hash salted?
gesundheit is offline   Reply With Quote
Old 10-26-2021, 10:22 PM   #4
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: 6,501
Karma: 84500001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
It is the string starting with “amzn1.account”. It is a regular md5 hash.

For the account you gave the hash would be ed85e5812a197f9ee6d5579681ad8f9b.

I don't know what is used if the Kindle is unregistered. The hex string is omitted if the device is unregistered.

Last edited by jhowell; 10-27-2021 at 08:12 AM.
jhowell is offline   Reply With Quote
Old 10-29-2021, 11:44 AM   #5
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,063
Karma: 4234828
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
Yes, this is the account ID. I’ll look it up in my notes, I remember getting it a long time ago on Kindle 4
mergen3107 is offline   Reply With Quote
Advert
Old 10-29-2021, 11:46 AM   #6
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,063
Karma: 4234828
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
IIRC it is stored in a file somewhere in /var/local/
mergen3107 is offline   Reply With Quote
Old 10-29-2021, 10:38 PM   #7
gesundheit
Member
gesundheit began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Sep 2021
Device: Kindle PW5 SE (2021)
Thank you both, I've got it now. It's in /var/local/token/
gesundheit is offline   Reply With Quote
Old 10-30-2021, 05:28 AM   #8
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,063
Karma: 4234828
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
Yay, my long term memory works
mergen3107 is offline   Reply With Quote
Reply

Tags
account id


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pressing "Restore Defaults" under "Book Details" wipes all "Look & Feel" settings. MarjaE Library Management 1 03-30-2021 11:46 AM
Query re: bugfix in Calibre 8.15 to Kindle "sidecar" files GeekyGal Calibre 4 08-20-2011 02:36 AM


All times are GMT -4. The time now is 04:02 AM.


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