-
Notifications
You must be signed in to change notification settings - Fork 97
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
Blank master password #410
Comments
Use |
Hello, Thanks, I already tried that. It gives me: Invalid credentials Only changing it to "test" in the Python code and also in Keepass, then it works. Visually in Keepass for the empty password, I get the checkbox with "Master password" and then leave that field blank and get access. Thanks, Wim |
I've just had the same issue and found a workaround: class TruthyString(str):
def __bool__(self):
return True
kp = PyKeePass("path/to/keepass.kdbx", password=TruthyString()) I suspect that somewhere, there is a test like |
It's not with a key file, it's with a password, but the password is the empty string. |
I see where the problem is, but how are you entering an empty string in KeepassXC to verify this? KeepassXC seems to assume there is no password when the field is left empty. |
I'm not, we're using Keepass2. |
This should be fixed in 4.1.1 |
Hello, I can confirm that it works now with a blank password for the database. Wim |
Hello,
A how-to question. For some test Keepass databases, I have a master key but it is empty/blank.
How can I use pyKeepass in that case ?
I get: invalid credentials when I try with password = ""
When I change the password to test in Keepass and Python, it works fine.
Best regards,
Wim
The text was updated successfully, but these errors were encountered: