Keepass和libkeepass在Windows上?

时间:2016-02-19 22:42:58

标签: python keepass

我一直在使用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.

在Linux上安装libkeepass时遇到了相当大的麻烦。不确定这是否会影响它,库加载很好,它似乎无法使用密钥文件。

我愿意接受一个更好的密钥数据库的建议,如果存在一个更强大的python API,它需要是一个免费使用的软件吗?

TIA

0 个答案:

没有答案