CPID Hashing Algorithm