xaldarof / encrypted-shared-preferences

Perfect for developers prioritizing security, Encrypted Shared Preferences integrates effortlessly into your projects, offering peace of mind and enhancing data privacy. Safeguard your app's data with this essential encryption solution
Apache License 2.0
12 stars 2 forks source link

I can use both SharedPreferences and EncryptedSharedPreferences ? #12

Closed jidanyu closed 15 hours ago

jidanyu commented 6 days ago

For the missing API like setStringList, I can use SharedPreferences.getInstance(); separately for storage. And I can use EncryptedSharedPreferences only for the KV that needs to be encrypted.

 _storage ??= await SharedPreferences.getInstance();
await EncryptedSharedPreferences.initialize(key);
_encryptedStorage ??= EncryptedSharedPreferences.getInstance();

Will there be any problem using it this way?

xaldarof commented 6 days ago

Hi, you can check encrypt_shared_preferences: ^0.8.1 new version for missing setStringList method :)

xaldarof commented 6 days ago

Hi, you can check encrypt_shared_preferences: ^0.8.1 new version for missing setStringList method :)

Снимок экрана 2024-11-21 в 17 58 08