TanmoySG / wunderDB

A micro JSON-based Data Store inspired by MongoDB.
http://wdb.tanmoysg.com/api/
Apache License 2.0
12 stars 0 forks source link

Add Integrity enforcement for all Persisted Data Files #78

Open TanmoySG opened 1 year ago

TanmoySG commented 1 year ago

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

{
    "hash" : "jhdfbvjofvo239u9023hfd2jb",
    "timestamp" : 1234567,
}

The above can be file.integrtity