In MSDN, I came across the following two posts as part of Store API which talks about two algorithms that Microsoft Office Outlook uses,

Algorithm to Calculate the Store Hash Number to calculate a store hash number based on the store mapping signature or entry ID and the store file name…
Algorithm to Encode Entry IDs and Attachment IDs to Encode Entry IDs and Attachment IDs