Skip to content
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

Incompatibility with pykeepass #24

Closed
aivanovski opened this issue May 19, 2024 · 3 comments
Closed

Incompatibility with pykeepass #24

aivanovski opened this issue May 19, 2024 · 3 comments

Comments

@aivanovski
Copy link

aivanovski commented May 19, 2024

Started as this issue aivanovski/keepassvault#240, there are links to other issues inside, but I'm not sure if they provide some clarity.

It looks like there is some incompatibility with pykeepass library and after any field was inserted into database created by kotpass, kotpass interprets that fields as EntryValue.Encrypted. Before modification only password field was EntryValue.Encrypted.

Here are steps to reproduce:
1 - Create new database with kotpass (KeePassDatabase.Ver4x.create all default parameters), check that target field is EntryValue.Plain (use field notes, url, username)
2 - Modify target field with pykeepass
3 - Open database with kotpass, check the type of target field
Actuals result: target field is EntryValue.Encrypted
Expected result: target field is EntryValue.Plain

Python code for step 2:

from pykeepass import PyKeePass

kp = PyKeePass('test.kdbx', password='abc123')

entry = kp.root_group.entries[0]
entry.notes = "Notes from pykeepass"

kp.save()

And database file, password is abc123:
test.kdbx.zip

@Anvell
Copy link
Collaborator

Anvell commented May 20, 2024

Hello,

could you please post KDBX file produced by PyKeePass?

@aivanovski
Copy link
Author

@aivanovski
Copy link
Author

This turned out to be a pykeepass problem, this issue was fixed in libkeepass/pykeepass#381
Will be available in pykepass > 4.0.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants