Description
Feature description
The Android clipboard is insecure for sensitive data. If one wanted to handle sensitive data in Termux (for instance by using the pass
package), they may use termux-clipboard-set as a means of moving the data to another app. It would be great if there was a more secure way of Termux sending sensitive data to other apps, especially since the inclusion of the pass
password manager implies Termux can be used with sensitive data.
Possible solution:
Copying:
The data can be read from stdin or piped into a new Termux-api command; termux-copy-sensitive
and temporarily stored in Termux (not the system clipboard)
Pasting to another app:
- the autofill framework. This would required Termux:API to be manually enabled as an accessibility service
- Have Termux:API act as a new keyboard/input method with a button to "paste" the data that was previously "copied" using
termux-copy-sensitive
.
I took both solutions from the README of the repo I previously linked to
Reference implementation
I don't use these password managers, but the README also mentions LastPass and 1Password. It says both apps implement the autofill and custom keyboard/input methods
Have you checked if the feature is accessible through the Android API? Yes
Do you know of other open-source apps that has a similar feature as the one you want? (Provide links)
Found out about one a few days after opening this issue. See below