@NogDog:
It's the SHA1 sum of the full filepath of the book. (ie. /mnt/us/documents/my_ebook.mobi).
AFAIR, it's been discussed before in the Kindle Dev & Calibre sections

.
On the other hand, Amazon books use something based on their ASIN (which I guess stands for Amazon Serial Identification Number).