jcs / rubywarden

An unofficial, mostly Bitwarden-compatible API server written in Ruby (Sinatra and ActiveRecord)
ISC License
592 stars 49 forks source link

Error importing passwords from keepass #71

Closed bahamas10 closed 6 years ago

bahamas10 commented 6 years ago

First quick note:

It looks like rubeepass@3,1.0 has been yanked (this version is in the Gemfile.lock file) so I tried using rubeepass 3.1.1 and 3.2.0 but had no luck.

I'm able to successfully run the importer script after doing bundle install --with keepass:

$ sudo -u rubywarden env RACK_ENV=production bundle exec ruby tools/keepass_import.rb -f /tmp/dave.kdbx -u dave@daveeddy.com
master password for dave@daveeddy.com: 
master password for /tmp/dave.kdbx: 
...
ready to import? [Y/n] y
successfully imported 291 items

And I can see all of my folders and logins in the bitwarden firefox plugin (awesome!). However, none of the passwords seem to have been decrypted properly. Every single entry I look at says:

[error: cannot decrypt]

for the password.

I'll keep digging into this, but I figure if anyone has any quick ideas what is happening here that would be greatly appreciated.

bahamas10 commented 6 years ago

I believe this may be an issue with rubeepass - I've created https://gitlab.com/mjwhitta/rubeepass/issues/3 with my findings.

jcs commented 6 years ago

Upstream/OS-specific issue