Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password entropy is weaker on KeepassDX in comparison to KeepassXC #1373

Closed
pinckpockett opened this issue Aug 3, 2022 · 2 comments
Closed

Comments

@pinckpockett
Copy link

When using the password generator to generate a password. The entropy is weaker then compared to KeepassXC.

For example, I generated a 30 length password with numbers, letters, -, _, special characters and some of the other options. I got an entropy of 300-320 bit range on KeepassXC.

I chose the same options on KeepassDX and my entropy was 190-210 bit range.

You can replicate this by choosing the exact same options on both KeepassXC and KeepassDX. Then making the password length 25 or higher.
I Haven't tried with shorter lengths because I dont generate shorter lengths then that. But the same will probably apply.
The entropy will be a lot weaker on KeepassDX.
Is their a reason for this?
Can it be fixed or is it a mobile thing?

@J-Jamet
Copy link
Member

J-Jamet commented Aug 4, 2022


The entropy is not calculated by KeePassDX but by the automatic generation library Nbvcxz.

You can compare the calculation methods from the library code and from KeePassXC to see what the differences are. Personally, as long as there is an order of magnitude even if the calculation is less permissive on KeePassDX, I don't have a problem because it encourages to generate larger passwords.

Edit : Also, to compare, putting the same options is not enough because of the randomness, the generated password will not be the same so obviously will not have the same entropy, it is necessary to copy the same password in the two entropy calculators.

@J-Jamet J-Jamet changed the title password generator entropy is noticeably weaker on KeepassDX in comparison to KeepassXC Password generator entropy is weaker on KeepassDX in comparison to KeepassXC Aug 4, 2022
@J-Jamet J-Jamet changed the title Password generator entropy is weaker on KeepassDX in comparison to KeepassXC Password entropy is weaker on KeepassDX in comparison to KeepassXC Aug 4, 2022
@pinckpockett
Copy link
Author

Thank you for informing me on the entropy issue.

Edit : Also, to compare, putting the same options is not enough because of the randomness, the generated password will not be the same so obviously will not have the same entropy, it is necessary to copy the same password in the two entropy calculators.

I followed what you said.

first I generated a password on KeepassXC:
Îüâãvw4Ë÷%é$ÍÓ3fã7ÝåÖ)_´dtª[þrÙ½Â

The entropy was 383.19 bit

I pasted that same password into the password generator on KeepassDX.

The entropy was 189.62 bit

So the KeepassDX is more strict afaik.

I have learned a few things from this experience so that is a plus.

Thanks for taking the time to reply to my post I will be closing it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants