How to encrypt and decrypt the data in tizen web app

I have developed a tizen web app for watch. I want to save the data in encrypted database like sqlite (SQLite Database Engine | Tizen Docs) for native tizen app. but sqlite is not supported for tizen web app, found Web SQL Database (Web SQL Database | Tizen Docs) for web app but not find any way to encrypt the database like SQLite .
is there any way to encrypt the data with Web SQL Database?.

I found a solution that before saving the data to DB encrypt it and then decrypt after getting the data but also I did not find any way in docs to encrypt and decrypt the data in tizen web app.

I found a js file crypto-js (https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/aes.js) which is doing encryption and decryption, Can i use this file for encryption and decryption in my tizen app?.

1 Like

Hello,
You can check out the Sqlite API in Tizen Native.
https://docs.tizen.org/application/native/guides/data/sql/