# Login example (Storage: TinyDB)

**URL:** <https://community.thunkable.com/t/login-example-storage-tinydb/588>\
**Category:** Promote your App\
**Tags:** database, design\
**Created:** [November 29, 2016, 10:53am UTC](https://community.thunkable.com/t/login-example-storage-tinydb/588 "2016-11-29T10:53:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mika](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mika/32/5022_2.png) [@Mika](https://community.thunkable.com/u/Mika)\
**Post date:** [November 29, 2016, 10:53am UTC](https://community.thunkable.com/t/login-example-storage-tinydb/588/1 "2016-11-29T10:53:03Z")

</div>

Hello thunkers,  
i created this example to show you how you can make a login screen for your app and store some userdata to “TinyDB” the storage of your device.

Its only a demonstration how it works.  
You can modify the example how you want it.

* * *
Screenshots: ![](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/1X/4d7d50b0e531148ba4fe56452fdc0657f9105cef.png) ![](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/1X/fc05249bb102f12627737b2ba98b68fda7dbfcb6.png) ![](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/1X/3dc552bebadd727da2eb578c221e1cf3724d8b2b.png)
* * *

[Download aia file](https://sourceforge.net/projects/released/files/LoginExample.aia/download)  
[Download apk file](https://sourceforge.net/projects/released/files/LoginExample.apk/download)

Full blog entry: [here](http://nmd-apps.jimdo.com/tutorials-1/snippets/#38)

  
best regards, Mika
* * *

[Tutorials, Snippets, Examples with source files (aia and apk) and much more available on my blog](http://nmd-apps.jimdo.com)

---

<div class="post-metadata">

**Author:** ![Barreeeiroo](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/barreeeiroo/32/17867_2.png) [@Barreeeiroo](https://community.thunkable.com/u/Barreeeiroo)\
**Post date:** [November 29, 2016, 2:27pm UTC](https://community.thunkable.com/t/login-example-storage-tinydb/588/2 "2016-11-29T14:27:26Z")

</div>

Just an apointment: TinyDB has a problem: any user can see what does any TinyDB stores if they have root access to the mobilephone. I’ve made some tests and finally I reached an XML file where TinyDB stores the data, and any user will be able to use it as they want. _(I’m not going to share the path to the file for obvious reasons)_

So, I recommend to store values in TinyDB with an encrypt method, like AES-128 that uses any key that you want, like _123456_ or _abcdef_ or something like that, or use any other encryption method that could be decrypted with a key, not like MD5 or BASE64

---

<div class="post-metadata">

**Author:** ![mannankhanabdul](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mannankhanabdul/32/532_2.png) [@mannankhanabdul](https://community.thunkable.com/u/mannankhanabdul)\
**Post date:** [November 29, 2016, 5:26pm UTC](https://community.thunkable.com/t/login-example-storage-tinydb/588/3 "2016-11-29T17:26:47Z")

</div>

Great Example and Info about TinyDB

---

<div class="post-metadata">

**Author:** ![Mika](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mika/32/5022_2.png) [@Mika](https://community.thunkable.com/u/Mika)\
**Post date:** [November 29, 2016, 6:56pm UTC](https://community.thunkable.com/t/login-example-storage-tinydb/588/4 "2016-11-29T18:56:31Z")

</div>

Thanks for the hint. 🙂  
I’ve used “TinyDB” just as an example.  
The best method is a database in Firebase or Mysql or similar where strangers have no access.

---

<div class="post-metadata">

**Author:** ![Kleyber\_Derick](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kleyber_derick/32/10516_2.png) [@Kleyber\_Derick](https://community.thunkable.com/u/Kleyber_Derick)\
**Post date:** [November 30, 2016, 12:14am UTC](https://community.thunkable.com/t/login-example-storage-tinydb/588/5 "2016-11-30T00:14:37Z")

</div>

Thank you for the example, @Mika. My next app will access a local database and I’m considering sqlite todo this, but TinyDB is another choice too!!!

---

<div class="post-metadata">

**Author:** ![samclever](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@samclever](https://community.thunkable.com/u/samclever)\
**Post date:** [November 30, 2016, 7:02am UTC](https://community.thunkable.com/t/login-example-storage-tinydb/588/6 "2016-11-30T07:02:59Z")

</div>

I use the webDB and fusion tables. I haven’t really figured out Firebase that much more and havnt explored Mysql.

---

<div class="post-metadata">

**Author:** ![KAUSHIK\_AGARWAL](https://avatars.discourse-cdn.com/v4/letter/k/c37758/32.png) [@KAUSHIK\_AGARWAL](https://community.thunkable.com/u/KAUSHIK_AGARWAL)\
**Post date:** [December 12, 2018, 12:22pm UTC](https://community.thunkable.com/t/login-example-storage-tinydb/588/7 "2018-12-12T12:22:50Z")

</div>

Hi There,

How can we encrypt the data in tiny DB?

Please share steps

---

<div class="post-metadata">

**Author:** ![josephsostheness672u](https://avatars.discourse-cdn.com/v4/letter/j/f04885/32.png) [@josephsostheness672u](https://community.thunkable.com/u/josephsostheness672u)\
**Post date:** [April 24, 2021, 11:50am UTC](https://community.thunkable.com/t/login-example-storage-tinydb/588/8 "2021-04-24T11:50:25Z")

</div>

please can you give example of how to create a login system with mysql

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:52am UTC](https://community.thunkable.com/t/login-example-storage-tinydb/588/9 "2024-11-08T11:52:23Z")

</div>


