Secure Storage
The secure storage of sensitive data in Compose Multiplatform applications and on the backend by leveraging each platform’s native security APIs is provided by Kassaforte
Architecture
- On
Androidthe data are stored in the SharedPreferences, encrypting the data before storing it - On
iOSand nativemacOSthe data are stored in the Keychain - On
JVMto store the data are leveraged the native APIs provided by the different OSs:- On
Windowsthe data are stored in the Windows Credentials - On
Linuxthe data are stored using the implementation of the DBus Secret Service based on the desktop environment betweenGNOMEorKDE - On
MacOsthe data are stored in the Keychain
- On
This target uses the java-keyring library under the hood
- On
Webthe data are stored in the LocalStorage, encrypting the data before storing it
Usage
Create an instance
Sync methods
safeguard
This method securely store sensitive data
refresh
This method refresh sensitive data previously safeguarded
remove
This method remove from the secure storage sensitive data previously safeguarded
Async methods
The following methods required to be executed inside a Coroutine
withdraw
This method withdraw from the secure storage sensitive data previously safeguarded decrypting it