Project

keepassxc

0.0
No release in over 3 years
Low commit activity in last 3 years
Ruby bindings for the KeepassXC Browser API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

KeypassXC Ruby binding

You want to fetch login data as the browsers do. Then this is for you. Similar to my https://github.com/Kjarrigan/keepasshttp-ruby repo.

Work in progress

A coworker just asked me wether I have use the keepassxc-cli but it requires to enter a password every time which is annoying and then I remembered my keepasshttp-ruby binding and it turns out this is no longer the desired way for KeepassXC. So why not make the new version work. Yay!

Links

Some things have changed but the rough idea is the same. So I can probably copy over quite a bit of context.

Basic communication snippet

It is already working now! Altough some comfort is still missing, you can already register your client and fetch logins. Yay!

load 'test.rb'

kpx = KeepassXC.new client_identifier: KEY_FROM_ASSOCIATE_OR_DB, client_name: ID_FROM_ASSOCIATE_OR_DB
kpx.change_public_keys
# kpx.associate
kpx.test_associate
p kpx.get_logins 'https://github.com'

You can check what clients are already registered in your DB via the GUI like this:

  • Database
  • Database-Settings
  • Browser-Integration

Technically you could even re-use the Key/ID from your browser by just copying them from there.