Kunzisoft / KeePassDX

Lightweight vault and password manager for Android, KeePassDX allows editing encrypted data in a single file in KeePass format and fill in the forms in a secure way.
https://www.keepassdx.com/
GNU General Public License v3.0
4.78k stars 276 forks source link

Feature request: KeepassDX as a share target for Termux-share #632

Open sudomain opened 4 years ago

sudomain commented 4 years ago

Is your feature request related to a problem? Please describe. I'd like to be able share various keys/text (ssh, gpg, etc) from Termux to KeePassDX and create entries without using the Android clipboard due to any app being able to listen for clipboard changes.

Describe the solution you'd like On the Termux side of things we have the termux-share command which can

"Share a file specified as argument or the text received on stdin if no file argument is given."

This means I can share a path to a keyfile such as id_rsa or the actual contents via pipes: cat ~/.ssh/id_rsa.pub | termux-share

The full usage of termux-share:

$ termux-share -h Usage: termux-share [-a action] [-c content-type] [-d] [-t title] [file] Share a file specified as argument or the text received on stdin if no file argument is given. -a action which action to performed on the shared content: edit/send/view (default:view) -c content-type content-type to use (default: guessed from file extension, text/plain for stdin) -d share to the default receiver if one is selected instead of showing a chooser -t title title to use for shared content (default: shared file name)

I can provide sample intents that are created with termux-share if needed. Describe alternatives you've considered related to #280 though I couldn't find any application-generic issue about KeePassDX being a share reciever to create entries

Additional context

HashimPhilips commented 3 years ago

is there any plan to implement this feature, will be very useful incase of private keys.

J-Jamet commented 3 years ago

At the moment no, I haven't really looked at what you were asking in detail yet because I have a lot of other things to do. But you can do a pull request or as you said do a sample, that would be useful.

piotrekzurek commented 2 years ago

It would be very cool to have such feature. Basically this would be like implementing this feature: https://keepassxc.org/docs/KeePassXC_UserGuide.html#_ssh_agent into Keepass DX in similar way to this: https://github.com/DDoSolitary/OkcAgent (which uses OpenKeyChain as a backend).