Skip to content

Password generator skips special characters when using AutoGeneratePasswordForNewEntries=true #13073

@crimsy

Description

@crimsy

Have you searched for an existing issue?

  • Yes, I tried searching and reviewed the pinned issues

Brief Summary

So this kind of relates to #3303, #3064 and/or #2749 but with using the AutoGeneratePasswordForNewEntries=true in the configuration.

It does generate a new password, but it does not respect the special characters request. I do have them enabled in the configuration as well. The behavior happens both in simple mode enabled or advanced.

Relevant settings as saved on the keepassxc.ini:

[General]
AutoGeneratePasswordForNewEntries=true

[PasswordGenerator]
WordSeparator=)^.
AdditionalChars=
ExcludedChars="<:;""
Length=32
WordCount=6
WordCase=2
AdvancedMode=true
Logograms=true
Math=true
Type=0
Quotes=true
Dashes=true
Punctuation=true
LowerCase=true
UpperCase=true
ExcludeAlike=false
EnsureEvery=true
Braces=true

When adding a new entry, this is a sample of the password that generates with the settings above:

Image

When I do click on "generate password" it does then generate a random password with symbols as expected.

Image

Thanks!

Steps to Reproduce

  1. Enable "Auto Generate Password for New Entries"
Image
  1. Change the generate password fields
Image
  1. Add a new entry.

Technically I did all of the above with the .ini config file instead but should be the same process regardless on which method is chosen from what I can tell?

Expected Versus Actual Behavior

Expected: Generated password automatically follow the characters/symbols/exclusions chosen in the password generator in Advanced mode, or include symbols if chosen in Simple mode.

Actual behavior: Password that generates only consists of Uppercase, lowercase, and numbers.

KeePassXC Debug Information

## Debug Info
KeePassXC - Version 2.7.11
Revision: 01e5b6e

Qt 5.15.18
Debugging mode is disabled.

Operating system: Windows 11 Version 2009
CPU architecture: x86_64
Kernel: winnt 10.0.26200

Enabled extensions:
- Auto-Type
- Browser Integration
- Passkeys
- SSH Agent
- KeeShare
- YubiKey
- Quick Unlock

Cryptographic libraries:
- Botan 3.7.1

Operating System

Windows

Linux Desktop Environment

None

Linux Windowing System

None

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions