nfc-developer / sdm-backend

Backend server for Secure Dynamic Messaging (SDM). Supports decryption of PICCData, SDMENCFileData, and validation of SDMMAC. Compatible with NTAG 424 DNA (both variants). Written in Python 3 Flask. Pull requests welcome.
MIT License
75 stars 39 forks source link

Dynamic URL validation - previous URLs are still valid #33

Closed lukagrbec closed 2 years ago

lukagrbec commented 2 years ago

Hello, firstly, thanks for creating this library. I've been testing it and have noticed, that when scanning a tag, the counter does increase, but the URL from the previous scan (counter - 1) is still valid. Is this right behaviour? Or should the previous URL be invalid, so someone couldn't save the URL and display the tag is valid?

Thanks for your time.

icedevml commented 2 years ago

Hello @lukagrbec,

the sdm-backend doesn't have any mean of database, so it's unable to track the counter values associated with the UIDs.

At the moment, you can add this feature manually to integrate with the database of your preference.

We will consider adding this as an optional feature in the future versions.

lukagrbec commented 2 years ago

Thank you for the explanation and suggestion.