Currently all files are stored in FS as JSON and loaded from same. If someone changes the data in file it effects the integrity of the persisted data. To make sure we can identify if integrity has been compromise, we can
Create a Integrity File
Store SHAx of the data being persisted
To ensure in-time/exact integrity check, use Timestamp involved integrity check,
Currently all files are stored in FS as JSON and loaded from same. If someone changes the data in file it effects the integrity of the persisted data. To make sure we can identify if integrity has been compromise, we can
The above can be
file.integrtity