python-keepassx icon indicating copy to clipboard operation
python-keepassx copied to clipboard

Passwords are picked from the backup category

Open ghost opened this issue 9 years ago • 2 comments

Using passwords with a dollar sign '$' as the last letter does not work correctly. The dollar sign is not copied to the clipboard when invoking python-keepassx with the 'get' option.

Ubuntu 14.04 python-keepassx installed via pip

 kp --version
kp version 0.1.0

ghost avatar May 27 '16 22:05 ghost

Seems like the problem is somewhere in retrieving/decoding the password from the database. I can see that the clipboard module works fine:

>>> from clipboard import *
>>> copy("foobar$")
>>> foobar$

ghost avatar May 29 '16 15:05 ghost

I think I was wrong, this has nothing to do with special characters / dollar signs.

The problem seems to be that KeepassX has different categories, in particular a "backup" category which is automatically created. The site I was trying to get the password for via python-keepassx existed in both the Internet category and the Backup category. Apparently, the password from the backup category was picked (which is an older, now incorrect password).

Is there a way to select the preferred category?

ghost avatar Jul 29 '16 19:07 ghost