jonataslaw / get_storage

A fast, extra light and synchronous key-value storage to Get framework
MIT License
359 stars 82 forks source link

Is Flutter getstorage safe? #139

Open volkanustekidag opened 7 months ago

volkanustekidag commented 7 months ago

Hello everyone, as far as I see, get storage uses file manager to store data. I store some sensitive data and no one should be able to access it. In this case, will it be safe for the get storage package to store files openly in this way?

WhatsApp Image 2024-02-12 at 13 43 02

sed1ka commented 7 months ago

Absolutely no To increase the security. there two option:

  1. If you want to achieve the fastest and best performance db then you can keep to use the Get Storage, but you still need flutter_secure_storage to store the private key that will be used to encrypt and decrypt data that you save on GetStorage. That means, you need more time to achieve this.
  2. If you only want to store the data safely and write/read time is not that important. just use flutter_secure_Storage directly.
shen601020 commented 5 months ago

You can change the storage directory of the file,like this: Future _getImplicitDir() async { try { ///this code return getApplicationSupportDirectory(); } catch (err) { throw err; } }