IdealChain / signal-media-exporter

A script to export media files from Signal Desktop.
GNU General Public License v3.0
31 stars 10 forks source link

safeStorage API: DB encryption key can be encrypted #19

Open IdealChain opened 1 month ago

IdealChain commented 1 month ago

From 7.16.0 on, Signal Desktop implemented the electron safeStorage API (commit: https://github.com/signalapp/Signal-Desktop/commit/e87eaff94824878ed432274bb598af9536709e9c, issue: https://github.com/signalapp/Signal-Desktop/issues/6944) to encrypt the local DB encryption key in ~/.config/Signal/config.json. If a keyring is available and unlocked on startup, the unencrypted legacy key is replaced with an encrypted one.

If possible, the script could be extended to access the keyring. Meanwhile, as long as the key is not yet migrated, the keyring system can be kept disabled or Signal desktop can be started with the --pasword-store=basic argument.