[F/OS] 🔐 SecureDB - Store Data Locally With Security

image

🔒 SecureDB

SecureDB is an extension for Ai2 Appinventor and its distros which stores data for your app in a secure format locally on user's device.




How It Works?



ℹ️ SecureDB

💡  Current Version 1.0
📁  File Size 325 KB
📦  in.akshatt.SecureDB
📅   Created On 2022-09-22

Method Blocks


isready

isReady - Returns if SecureDB is ready.

destroy

DestroyDB - Destroys SecureDB instance.

store val

StoreValue - Store the given value under the given tag…

getvalwithtag

GetValueWithTag - Retrieve the value stored under the given tag.

tagcount

tagCount - Check total tag count

getval

GetValue - Retrieve the value stored under the given tag.

clearall

ClearAll - Clear the entire data store.

tagexist

tagExist - Check if any tag exists.

cleartag

ClearTag - Check total entry count.


↘️ Usage


image



Special thanks to @Shreyash for his amazing Rush


Note :- This extension is having an issue is storing and getting values of the list


Extension

:jigsaw: in.akshatt.SecureDB.aix (324.6 KB)


Get Source Code On Github:-

Special thanks to the library owner:-

You are welcome to give your valuable contribution to this extension.
Hit :sparkling_heart: button if you liked the extension.

9 Likes

Nice, but the block names should be changed.

isReady >> IsReady
tagCount >> TagCount
tagExist >> TagExists

1 Like

Thanks for the suggestions. I will implement the changes

1 Like

You may encrypt the json representation string instead of list object directly.

For example, in your code,

public void StoreValue(final String tag, final Object valueToStore) {
        Hawk.put(tag, JsonUtil.getJsonRepresentation(valueToStore));
    }
3 Likes

Nice extension

what is different between it and tiny db ?

Something like this already exists.

You can always look into the source code I provided to check it’s functioning

2 Likes

Congratulations :tada:

1 Like