-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using --pw-stdin
echoes password back
#1673
Comments
I tested it and I cannot reproduce the behavior.
opens the database, but nothing is printed to the console. |
Thanks for the quick reply. Don't get me wrong, but I think the solution you suggest is arguably worse. Now unless you take extra precaution your database password is saved in your history. |
It's not a solution, it's just proof that KeePassXC doesn't echo anything. |
Sorry, I missed your point, I thought you were suggesting that as a workaround. One of my commands? What do you mean? The problem manifests itself when running It's the same difference between running
and
|
@a-dma I guess we should be using getPassword() |
So you mean, it's not hiding your input when you type directly into its STDIN? Then I understand what you mean. I thought your pinentry example echoed something to the console. |
Correct, that's what I meant. Sorry for the confusion. Looks like the function mentioned by @louib is the way to go. |
This is related to the issue I opened the other day #1636.
While most of it was fixed in
2.3.1
the password is still echoed back, at least on Ubuntu.The culprit seems to be readline()
Expected Behavior
The database password should be kept hidden
Current Behavior
The database password is echoed back
Possible Solution
Using bash and pinentry something like this could be done
But a solution that disables echo altogether would be better. Something can be found here
Steps to Reproduce (for bugs)
keepassxc --pw-stdin Passwords.kdbx
Debug Info
KeePassXC - Version 2.3.1
Revision: 2fcaeea
Libraries:
Operating system: Ubuntu 17.10
CPU architecture: x86_64
Kernel: linux 4.13.0-25-generic
Enabled extensions:
The text was updated successfully, but these errors were encountered: