2

Which is the most secure way to secure store a secret on a Tizen Web App?

As far as I know, the only supported API to store something is LocalStorage.

// to store a value
window.localStorage.setItem( 'secret', item_value);

// to retrieve a value
item_value = window.localStorage.getItem( 'secret' );

We already know that in the upcoming SDK wearable 3.0.0 there will be a keychain mechanism already available in mobile SDK.

Waiting for the 3.0.0, is the LocalStorage a "safe" place to store a secret?
Is the LocalStorage inspectable via console or file system (Even without enabling the Debug mode)?

systempuntoout
  • 71,966
  • 47
  • 171
  • 241

1 Answers1

1

Tizen localStorage is noting but HTML5 Web Storage implementation.

Webstorage API

W3Shools WebStorage

This post on Tizen Developers Forum suggests encryption/decryption.

Anyways, Searching the web you would mostly find 'strict negative' response on storing password/credential, sensitive data using Web localStorage. So, My opinion is also 'not secure' based on:

Can local storage ever be considered secure?

HTML5 localStorage security

Storing Credentials in Local Storage

How secure is localstorage?

You can inspect localStorage data using Web Debbuger:

enter image description here

Accessing file from device's file explorer is not possible. (Except in the case of emulators and rooted devices)

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Md. Armaan-Ul-Islam
  • 2,154
  • 2
  • 16
  • 20