Kdbx.rb

Build Status Code Climate Gem Version

A library for accessing KeePass database (v2+), aka kdbx format file.

Capability

  • [x] Read/Write kdbx (v2) file.
  • [x] Change keys and headers.
  • [ ] Support kdbx (v4) file.

Installation

$ gem install kdbx

Examples

# Open existing kdbx file
kdbx = Kdbx.open("demo.kdbx", password: "password", keyfile: "demo.key")

# Read contents
puts kdbx.content

# Change password
kdbx.password = "foobar"

# Save
kdbx.save

Development

First, install dependencies: bundle install

Then run tests: rspec

License

The gem is available as open source under the terms of the MIT License.