我一直在使用 keepass 和 libkeepass 通过 Python 访问密钥数据库。尽管该代码在 linux 上运行,但在 Windows 上却无法运行,但我收到了与密钥文件相关的以下错误:
with libkeepass.open(db_path, keyfile) as kdb:
File "C:\Python27\lib\contextlib.py", line 17, in __enter__
return self.gen.next()
File "build\bdist.win-amd64\egg\libkeepass\__init__.py", line 33, in open
File "build\bdist.win-amd64\egg\libkeepass\kdb4.py", line 380, in __init__
File "build\bdist.win-amd64\egg\libkeepass\kdb4.py", line 54, in __init__
File "build\bdist.win-amd64\egg\libkeepass\common.py", line 137, in __init__
File "build\bdist.win-amd64\egg\libkeepass\kdb4.py", line 383, in read_from
File "build\bdist.win-amd64\egg\libkeepass\kdb4.py", line 72, in read_from
File "build\bdist.win-amd64\egg\libkeepass\common.py", line 143, in read_from
File "build\bdist.win-amd64\egg\libkeepass\kdb4.py", line 191, in _decrypt
IOError: Master key invalid.
我在 Windows 上安装 libkeepass 时遇到了很多麻烦,而不是在 linux 上。不确定这是否会影响它,库加载正常它似乎无法使用密钥文件。
我愿意接受有关更好的密钥数据库的建议,该数据库具有更强大的python API(如果存在),它需要是免费使用的软件吗?
TIA