The checksum is not stored locally. It is generated via a hardware-bound secret key (TPM 2.0 or equivalent).

import hmac, hashlib