def bookid2key(bookid):
    """
    Simple unique encoding for each book id.

    Examples
    --------
    >>> bookid2key("AZ1234")
    71855628235572
    """
    return int(bookid.encode("hex"), 16)