The algorithm used to generate a CID from an IID is a closely guarded trade secret. It involves asymmetric cryptography, hardware fingerprints, and server-side validation. The IID is not just a serial number; it is an encrypted payload that only Microsoft’s activation servers can decrypt.
The numeric response provided by Microsoft once they verify your Installation ID is valid. How the Official Process Works microsoft office confirmation id generator