There is a 24-byte unique product information with location starting at 0x40000. You could use it as an identifier.
And if you want to have an idenfier less than 24 bytes, for example 8 bytes long, it is recommend to design an algorithm that input 24 bytes content and generate 8 bytes code.