Hi all,
this question may seen philosophical, but let me explain my needs. I creating a subscription model where the user will buy some consumables on a 30 days base.
The consumables are health related and should not be mixed in terms of time, person, or reused.
When I generate an order, I need to create 30 string keys that uniquely identify the product. Initially I though in a sequence like
C001 - customer number
P001 - product number
T001 - sequence of consuming
Key - unique key
so it ends up C001-P001-T001-Key is store and used in a QR code or NFC chip.
However, I not happy with the solution and have concerns on privacy. What would you recommend to create
a secret key 40 times?
Any inputs or ideas are welcome, just to clean the mess in my head. The function stack must be a loop 40 times to creates the key in a table, and every time this key is consumed, a timestamp is registered. I have also to secure that this key can never more be use or generated equally.
appreciate any ideas
Gustavo