I am looking for quiet universal solution how to approach software keyboard for typing passwords under Linux.
Security level expectations: Achieve not worse (or acceptably slightly worse) security than when passwords are typed to applications on physical USB keyboard. (as in worst case it's starting point for many applications does not supporting more advanced means, and also, I can make/buy hardware password manager acting as usb keyboard as alternative).
The scope of my concern here is comparison of attack vector/risks of solutions based on USB keyboards or keyboard drivers vs just typing them via
xdootool type ?
(to unaware readers : copying passwords via clipboard has vector attack that any of your applications can read it)
Please note to all readers of question: If your machine is compromised, there are plenty of ways your passwords or keys can be leaked: including stealing them from programs' memory. Here I would like to consider what's "reasonable" method of transporting passwords (definitely I am looking for something better than via clipboard), while considering tradeoffs in mind (yes, keep hardware keys, etc, whenever you can, however not all systems support those more advanced means of authorisation).