Use case or problem
Currently, it’s not safe to store secrets or credentials in Obsidian in a cross-platform safe way. In terms of integrations with outside services.
On the desktop we can use the Electron or Node.js APIs to keep things partially secure. Using the Electron safeStorage API means I can encrypt and decrypt my data using my own mechanisms and I don’t need to worry about key storage since this is delegated to the OS (KeyChain on Mac, Windows credentials stores and whatever credentials store is installed by the window manager on Linux).
On mobile there is no such API that I’m aware of?
Proposed solution
I would propose that Obsidian API include some mechanisms that can be used cross-platform to allow for the encryption and decryption of data.
My suggestion would be to emulate the electron safeStorage API. This would allow plugin developers to use a safe encryption/decryption scheme that is safe across mobile and desktop.
The key management and sync could then be managed safely by Obsidian in the background.