Akshat_Rana
(Akshat Developer)
#1
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/1/1/1146b2a27e0c2b821f4f526636b72db72edf7239.png)
🔒 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.
ℹ️ SecureDB
💡 Current Version 1.0
📁 File Size 325 KB
📦 in.akshatt.SecureDB
📅 Created On 2022-09-22
![isready](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/c/2/c2941921d06feed1bdc87ed6238f8282d1781096.png)
isReady - Returns if SecureDB is ready.
![destroy](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/1/e/1e9e5b0a291d9e80064fe81369bc3039be3ee53d.png)
DestroyDB - Destroys SecureDB instance.
![store val](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/3/0/3046eee9ca207113e8ed7bff57db3f03a64d69fa.png)
StoreValue - Store the given value under the given tag…
![getvalwithtag](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/6/e/6e0c69cc6eab4deccdf075bc3604d5560a338654.png)
GetValueWithTag - Retrieve the value stored under the given tag.
![tagcount](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/e/e/eed06419ab8e5313de47b32557cfb60cd2461078.png)
tagCount - Check total tag count
![getval](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/0/5/052266c5c578ba10f801c5cc455a524976ccdee8.png)
GetValue - Retrieve the value stored under the given tag.
![clearall](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/a/9/a9689c5ab512c221fa98282b49d05191b833689e.png)
ClearAll - Clear the entire data store.
![tagexist](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/1/0/10095db67896a1911155be6d5a645a9e45704ec4.png)
tagExist - Check if any tag exists.
![cleartag](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/4/c/4cf67658e3317966827c5e73d605bfb8f9189af0.png)
ClearTag - Check total entry count.
↘️ Usage
![image](https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/9/f/9f794732a34a40d89d472922d103aeb94f1453b7.png)
Special thanks to @Shreyash for his amazing Rush
Note :- This extension is having an issue is storing and getting values of the list
Extension
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
button if you liked the extension.
9 Likes
Xoma
(Kumaraswamy)
#2
Nice, but the block names should be changed.
isReady
>> IsReady
tagCount
>> TagCount
tagExist
>> TagExists
1 Like
Akshat_Rana
(Akshat Developer)
#3
Thanks for the suggestions. I will implement the changes
1 Like
oseamiya
(Oseamiya)
#4
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 ?
hammerhai
(Nathan)
#6
Something like this already exists.
Akshat_Rana
(Akshat Developer)
#7
You can always look into the source code I provided to check it’s functioning
2 Likes