keepassxreboot / keepassxc

KeePassXC is a cross-platform community-driven port of the Windows application “Keepass Password Safe”.
https://keepassxc.org/
Other
20.72k stars 1.43k forks source link

Add ability to customize password profiles for each database #2628

Open ba32107 opened 5 years ago

ba32107 commented 5 years ago

When generating a new password for an existing entry, I would like an option that generates a new password using the existing settings for the given entry.

Some sites only allow alphanumerical characters and/or has a max character limit. This feature would allow to easiily generate a new password for any site using different patterns.

Thanks, Balazs

droidmonkey commented 5 years ago

This was discussed before. The problem with this is you have to store the current profile for each entry in order to replicate it exactly each time. This is better handled through pre-defined and customizable password profiles that are available database-wide. We cannot "guess" what password settings you are using based on your current password since it is random.

ba32107 commented 5 years ago

Thanks, this would work great as well.

joshualibrarian commented 4 years ago

Even if pre-defined password profiles are available database-wide, that doesn't really solve the problem presented in (closed) #3091. Whatever profile I started with, when I go to generate a password for a new site, I invariably have to customize the generator settings. Just now, I had to select the right boxes and then paste the list of "additional allowed characters" into the allowed box. These generator settings should be preserved and associated with THAT entry so that next time I go to change the password for that entry, the generator is already set correctly. Is it not viable to store this data in the database with the entry, whether as reference to database-wide profile or not?

droidmonkey commented 3 years ago

Also allow setting a default configuration that is easily chosen.

GenocideStomper commented 2 years ago

I would also love to see password profiles for the "Password Generator" tool. Sometimes I need to change settings, and don't want to lose the characters from the "Also choose from:" and "Do not include:" fields.

Massimo-B commented 1 year ago

Screenshot_2022-10-13-08-42-28-320_keepass2android keepass2android-crop Just to give an idea here is a screenshot of the keepass2android application Password Generator with profiles.

mattesony commented 1 year ago

I really like this feature and miss having it in my previous password manager. I'd be happy to take a stab at it either with the profiles or by storing the generating character set/length on an entry-by-entry basis. I think it could be built on by adding some form of inheritance of the character set/length from the groups the entries are in if the character set/length is unset for the entry, then the profiles would just be a further refinement to allow easier management.

michaelk83 commented 1 year ago

The profiles should be compatible with OG KeePass. As I recall, there was a specification of it somewhere.

droidmonkey commented 1 year ago

This should being implemented exactly how saved searches was implemented, except of course in the password generator. I don't think this is in the kdbx specifications.

michaelk83 commented 1 year ago

I think I saw some sort of spec or similar document on the OG KeePass website a while back, but I can't find it now. In any case, it does have password generator profiles, and so does Keepass2Android, as noted above. So KeePassXC shouldn't reinvent its own system for this.

droidmonkey commented 1 year ago

Depends on how much I like the way they implemented it. Our password generator is decidedly different then KeePass2 and KeePass2Android actually uses the KeePass2 binaries under the hood.

michaelk83 commented 1 year ago

It could be an issue for some users if they make password profiles in OG KeePass (or on android), and can't use them in KeePassXC, or vice versa. Though currently that is already the case (since KeePassXC doesn't support profiles at all).

If your new way is that much better, I suppose it can be standardized in KDBX5.

Thunderhawk2001 commented 4 weeks ago

Any news on this?

And i hope this is the right place for this: It would be awesome, if it would be possible to add random numbers to the passphrase: insert a number (0-9) randomly in front or back of a word and/or after a separator. e.g. "word-word6-word" or "word-6word-word"

Massimo-B commented 4 weeks ago

On Jan 20, 2019, droidmonkey changed the title from 'Generate password using current pattern' to 'Add ability to customize password profiles for each database'. I think this does not match the initial feature request anymore, which was "generates a new password using the existing settings for the given entry". Initially this meant to have a password profile stored with the entry not with the database.

The issue that needs to be solved, according to my opinion, I can't remember every single websites password policy to re-generate a new password. On most websites it doesn't matter but if I got some buggy website and finally figured out a working password profile, I would like to store that with the entry.

Massimo-B commented 4 weeks ago

And i hope this is the right place for this: It would be awesome, if it would be possible to add random numbers to the passphrase: insert a number (0-9) randomly in front or back of a word and/or after a separator. e.g. "word-word6-word" or "word-6word-word"

I think this is a completely different request. You want to have a pattern like a Regular Expression or something that has fixed strings, variable character sets and counts and stuff. I don't think any website has policies requiring passwords based on such patterns. It might help you remembering passwords, but right after starting with password managers, strong unique passkeys are the only right way to go... my opinion.

Massimo-B commented 4 weeks ago

Even if pre-defined password profiles are available database-wide, that doesn't really solve the problem presented in (closed) #3091.

I agree. Currently KeePassXC does not have any kind of persistent password profiles. But to solve this feature request such a profile would need to be stored together with the password entry itself and obviously not guessed from the random password.

Thunderhawk2001 commented 4 weeks ago

And i hope this is the right place for this: It would be awesome, if it would be possible to add random numbers to the passphrase: insert a number (0-9) randomly in front or back of a word and/or after a separator. e.g. "word-word6-word" or "word-6word-word"

I think this is a completely different request. You want to have a pattern like a Regular Expression or something that has fixed strings, variable character sets and counts and stuff. I don't think any website has policies requiring passwords based on such patterns. It might help you remembering passwords, but right after starting with password managers, strong unique passkeys are the only right way to go... my opinion.

I mean something like Bitwarden Password Generator does it: "Just" a toggle for "include number" grafik

Sorry, really should drink my coffee before posting stuff.

Massimo-B commented 4 weeks ago

[offtopic] The Passphrase password generation is possible already: image Just the random number part not... but anyway, different request.