[Bug 1874161] Re: kpcli is unable to open a kdbx file if the file is locked by both a password and a key file

2022-03-08 Thread Lester Hightower
@dotancohen - The question is not "what version *forward* are Keepass v2
files (*.kdbx) supported" but instead "at which version did support
cease." The simple answer is that Keepass v2 files up to and through
version 3.1 are supported. Version 4 and beyond are not supported and
may never be.

You can read a bit about the KeePass author's changes from 3.1 -> 4.0
here: https://keepass.info/help/kb/kdbx_4.html

kpcli uses the perl module File::KeePass to operate on Keepass files.
That module does not support Keepass v2 files (*.kdbx) beyond version
3.1 and largely because the File::KeePass hasn't chosen to make those
updates. If and when File::KeePass gains that support, kpcli likely will
by default. If not, I will update kpcli to make it so, but the support
is first needed in File::KeePass. https://metacpan.org/pod/File::KeePass

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1874161

Title:
  kpcli is unable to open a kdbx file if the file is locked by both a
  password and a key file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kpcli/+bug/1874161/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1874161] Re: kpcli is unable to open a kdbx file if the file is locked by both a password and a key file

2022-03-08 Thread dotancohen
Lester, I see that the kpcli homepage [1] now (March 2022) states:

> A command line interface (interactive shell) to work with KeePass 1.x
or 2.x database files.

From what version forward are Keepass v2 files (*.kdbx) supported?

I tried what I believe to be the latest kpcli version (3.6), installed
from the Sourceforge .deb. I also tried 3.1 installed from the Ubuntu
repos (apt-get). From archives it seems that the above text also applies
to kpcli 3.1 in the Ubuntu repos, yet the issue remains.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1874161

Title:
  kpcli is unable to open a kdbx file if the file is locked by both a
  password and a key file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kpcli/+bug/1874161/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1874161] Re: kpcli is unable to open a kdbx file if the file is locked by both a password and a key file

2021-02-20 Thread Alex Wang
I see! Thank you very much!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1874161

Title:
  kpcli is unable to open a kdbx file if the file is locked by both a
  password and a key file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kpcli/+bug/1874161/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 1874161] Re: kpcli is unable to open a kdbx file if the file is locked by both a password and a key file

2020-12-31 Thread Lester Hightower
KeepassX version 0.4.4 and earlier use *.kdb (V1).

KeepassX version 2.0.0 and higher use *.kdbx (V2).

I do now know what your problem is, but you might want to try keepass2,
keepassxc, and/or read about "Version 4 of the KDBX file format is
unsupported" here: https://sourceforge.net/projects/kpcli/files/

--
Lester


On Wed, Dec 30, 2020 at 11:30 PM Alex Wang <1874...@bugs.launchpad.net>
wrote:

> I have a correction to my previous comment: Instead of asking, "Is this
> behavior of Keepass new?" I want to convey, "Is this behavior of
> KeePassX new?"
>
> --
> You received this bug notification because you are subscribed to kpcli
> in Ubuntu.
> Matching subscriptions: lester.highto...@gmail.com
> https://bugs.launchpad.net/bugs/1874161
>
> Title:
>   kpcli is unable to open a kdbx file if the file is locked by both a
>   password and a key file
>
> Status in kpcli package in Ubuntu:
>   New
>
> Bug description:
>   I created a kdbx file through the KeePassX GUI application. This
>   database is locked with both a password and a key file. I try to
>   unlock the database through the kpcli command line tool with the
>   following commands inside the kpcli prompt:
>
> open  
>
>   I am then prompted for my password. After I enter my password, kpcli
>   presents to me the following error message:
>
> Couldn't load the file kpstuff2.kdbx: The database key appears
>   invalid or else the database is corrupt.
>
>   However, I am able to unlock the file through the KeePassX GUI
>   application. I am also able to unlock other database files that are
>   locked only with a password. I am unable to unlock databases that are
>   locked with both a password and a key file.
>
>   Expected behavior: I think kpcli should be able to unlock a database
>   with a password and a key file if the key file is generated through
>   KeePassX.
>
>   System information:
>   Description:  Ubuntu 18.04.4 LTS
>   Release:  18.04
>
>   kpcli package info:
>   kpcli:
> Installed: 3.1-3
> Candidate: 3.1-3
>
>   ProblemType: Bug
>   DistroRelease: Ubuntu 18.04
>   Package: kpcli 3.1-3
>   ProcVersionSignature: Ubuntu 4.15.0-96.97-generic 4.15.18
>   Uname: Linux 4.15.0-96-generic x86_64
>   ApportVersion: 2.20.9-0ubuntu7.14
>   Architecture: amd64
>   CurrentDesktop: XFCE
>   Date: Tue Apr 21 18:01:58 2020
>   EcryptfsInUse: Yes
>   PackageArchitecture: all
>   SourcePackage: kpcli
>   UpgradeStatus: Upgraded to bionic on 2019-03-06 (412 days ago)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/kpcli/+bug/1874161/+subscriptions
>

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1874161

Title:
  kpcli is unable to open a kdbx file if the file is locked by both a
  password and a key file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kpcli/+bug/1874161/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1874161] Re: kpcli is unable to open a kdbx file if the file is locked by both a password and a key file

2020-12-30 Thread Alex Wang
I have a correction to my previous comment: Instead of asking, "Is this
behavior of Keepass new?" I want to convey, "Is this behavior of
KeePassX new?"

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1874161

Title:
  kpcli is unable to open a kdbx file if the file is locked by both a
  password and a key file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kpcli/+bug/1874161/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1874161] Re: kpcli is unable to open a kdbx file if the file is locked by both a password and a key file

2020-12-30 Thread Alex Wang
The file command shows that my file is a 2.x KDBX file.

I tried creating a new database file with KeePassX with the KDBX
extension. The file command shows the new database file is also a 2.x
KDBX file.

I also tried creating a database file with KeePassX with the KDB
extension. The file command also shows this second new file is a 2.x
KDBX file.

It seems like the installation of KeePassX from Ubuntu 18.04's repos
generates v2 Keepass file. Is this behavior of Keepass new?

Thank you!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1874161

Title:
  kpcli is unable to open a kdbx file if the file is locked by both a
  password and a key file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kpcli/+bug/1874161/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1874161] Re: kpcli is unable to open a kdbx file if the file is locked by both a password and a key file

2020-12-30 Thread Lester Hightower
The file command can tell you if the file format is v1 or v2:

$ file test.kdb
test.kdb: Keepass password database 1.x KDB, 11 groups, 12 entries, AES, 6000 
key transformation rounds

$ file test.kdbx
test.kdbx: Keepass password database 2.x KDBX

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1874161

Title:
  kpcli is unable to open a kdbx file if the file is locked by both a
  password and a key file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kpcli/+bug/1874161/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1874161] Re: kpcli is unable to open a kdbx file if the file is locked by both a password and a key file

2020-12-29 Thread Alex Wang
Hello Lester,

Thank you for your guidance. I tried renaming the kdbx file to end with
a kdb extension instead. I then used kpcli to try opening the kdb file
with the same key file, but I still encountered the same error: Couldn't
load the file kpstuff2.kdb: The database key appears invalid or else the
database is corrupt.

Is there another way to test if the file is a v1 or v2 Keepass file?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1874161

Title:
  kpcli is unable to open a kdbx file if the file is locked by both a
  password and a key file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kpcli/+bug/1874161/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1874161] Re: kpcli is unable to open a kdbx file if the file is locked by both a password and a key file

2020-09-19 Thread Lester Hightower
I am the author of kpci.

KeePassX does not support Keepass v2 files (*.kdbx), only v1 files
(*.kdb).

I suspect that you created a v1 file named foo.kdbx, which kpcli will
assume (wrongly) is a v2 file due to the kdbx file extension, and fail
to open it. An easy test would be to copy your file to one with just a
kdb extension and try to open it.

--
Lester

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1874161

Title:
  kpcli is unable to open a kdbx file if the file is locked by both a
  password and a key file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kpcli/+bug/1874161/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs