Menu

#2127 Automatically generate new password for item based on template

KeePass_2.x
open
nobody
5
2021-02-06
2016-04-30
Guillaume
No

After asking for help in this topic, and the request to make a ticket for the feature request that came out of it, here it goes:

I have created several templates that have specific info for autotype, URL, string fields etc., but should have no fixed password. When I create a new item based on this template, I'd like KeePass to automatically create a password based on the default password profile, just like it does when creating a completely new item.

Auto-generating the password fields for an entry based on a template would be a nice and intuitive, I dare say even the expected behavior, if the template has an empty password field, as it is exactly what happens for new entries without a template.

Discussion

  • agulland

    agulland - 2016-07-10

    I had assumed that new passwords would be generated automatically with this feature. I only realised recently that they weren't and had a bunch of new accounts all created with same password which isn't ideal for security! So yes I would agree that this would be expected and should be default behaviour.

     

    Last edit: agulland 2016-07-10
  • T. Bug Reporter

    T. Bug Reporter - 2016-07-10

    I agree that this ability would be helpful, but there has to be way to specify any of the following:

    • Use password generation profile X to create a new password;
    • Use the literal password "pAsSwOrD" every time; or
    • Leave the password field blank

    when creating a new record based on a given template. All of these options would be useful in different circumstances, and I wouldn't want to sacrifice the availability of some of them to make others possible.

    Right now, leaving the template's password field blank, so that the new records created using that template also end up with their password fields blank, seems to be the least troublesome way to go.

     
  • Artur

    Artur - 2017-07-22

    Good idia!

     
  • behold

    behold - 2017-08-19

    Thumb up!

     
  • LongtimeUser

    LongtimeUser - 2018-01-22

    I'd prefer to set the template's password field to placeholder {NEWPASSWORD} or {NEWPASSWORD:/Profile/}. Or any other Placeholder. The act of creating a record from the template would have the password field replaced with the result. Leaving it blank could default to {NEWPASSWORD}.

     
    👍
    3
    • Nighty

      Nighty - 2020-03-10

      I agree with this functionality concept.

      Given this is the most up-voted open feature request, could I rudely ask for some action on it soon please!? :)

       
      • Paul

        Paul - 2020-03-10

        You can ask, but given the age of the request I wouldn't hold your breath.

        cheers, Paul

         
  • Dominik Reichl

    Dominik Reichl - 2020-03-15

    I've partially implemented this now. When adding a new entry based on a template that has an empty password field, a random password is generated now (based on the password generator profile 'Automatically generated passwords for new entries').

    Here's the latest development snapshot for testing:
    https://keepass.info/filepool/KeePass_200315.zip

    There's no way yet to use a different password generator profile.

    Thanks and best regards,
    Dominik

     
    • Nighty

      Nighty - 2020-03-16

      Thanks Dominik, you really are the best. I'm going to go donate right now (though with the current exchange rate I don't think my aussie dollars are going to buy very much!).

       
  • Paul

    Paul - 2020-03-16

    If you want to use a specific password profile in your templates see this post.

    cheers, Paul

     
    • Nighty

      Nighty - 2020-03-16

      Thanks Paul, that's some impressive magic, but (assuming I understand it correctly) that doesn't create a password when you make a new entry from a template -- you must make the new entry try to send a password first.

      Not a huge difference I'll admit, but I prefer it the way Dominik has it.

      Regards,
      Nighty

      edit:typo

       

      Last edit: Nighty 2020-03-16
  • Paul

    Paul - 2020-03-16

    It doesn't make the new password until you use the password entry, either copy or drag n drop.

    cheers, Paul

     
  • kibinimatik

    kibinimatik - 2020-03-21

    Maybe, it would make sence to leave the password field empty by default, when the entry is created in the templates group (or in its subgroup)?
    In particular, it seems natural to make the password of a new template empty, if it is created from another template with an empty passsword.

     

    Last edit: kibinimatik 2020-03-21
  • Dominik Reichl

    Dominik Reichl - 2020-03-23

    Good idea, thanks! I've implemented this now.

    Here's the latest development snapshot for testing:
    https://keepass.info/filepool/KeePass_200323.zip

    Best regards,
    Dominik

     
    • Nighty

      Nighty - 2021-02-06

      Hi, I've been busy and haven't checked this ticket for many months. :-( What's the current status? Has it gone live yet? What syntax did you decide on?

       
      • wellread1

        wellread1 - 2021-02-06

        I recommend you check the latest release of KeePass. If you don't find the feature you are looking for, you can post a question detailing what you think is missing.

         
  • Guillaume

    Guillaume - 2020-05-07

    Thanks for implementing this! Kinda forgot to use templates at all due to this and after all those years :P

     

Log in to post a comment.

MongoDB Logo MongoDB