Check the DEVICE_ID

I’d like to filter an application to make sure that a DEVICE_ID is a valid ID. This could be entered in an application not ‘tethered’ to the device.

Is there a method to check to see if it is a valid DEVICE_ID? Some checksum?

The DEVICE_ID is factory-programmed unique to each device so i wonder if the checksum is possible.

This is a good read: http://false.ekta.is/2012/06/stm32-device-electronic-signature-unique-device-id-register/