simple_secure_storage_linux 0.2.8
simple_secure_storage_linux: ^0.2.8 copied to clipboard
Linux implementation of the Simple Secure Storage plugin.
simple_secure_storage_linux #
The Linux implementation of simple_secure_storage.
Usage #
This package
is endorsed,
which means you can simply use simple_secure_storage normally. This package will be automatically included in
your app when you do.
Storage backends #
Like libsecret, this package uses the Secret Service API
(org.freedesktop.secrets, eg. GNOME Keyring or KDE Wallet), except in a sandbox :
- In a Flatpak or a Snap where the Secret portal
is available, the data is stored in
$XDG_DATA_HOME/keyrings/default.keyring, encrypted with a master secret provided by the portal. This is the same file, in the same format, as the libsecret "file backend", so data written by libsecret-based versions of this package (up to0.2.5) is read as is. No Secret Service permission is needed : a Snap does not need thepassword-manager-serviceinterface, and a Flatpak does not need--talk-name=org.freedesktop.secrets. - Version
0.2.6wrote directly to the Secret Service, even in a sandbox. When it is more recent, its data is merged once into the keyring file (keys missing from the Secret Service are kept). Until the Secret Service has been read, this is retried on each initialization, eg. once the user has granted the permission. Keep the Secret Service permission for a while if your application has been distributed with such a version, so that this data can be imported.
Legacy libsecret fallback #
For applications that need the previous native backend,
simple_secure_storage_linux_libsecret
is available as an optional, unmaintained compatibility fallback. Add it as a
direct application dependency to select it instead of this default implementation.
See its README for native dependencies and existing-data compatibility.