Menu

#1481 PasswordGenerator Documentation - CharSetRanges are not explained anywhere

KeePass_2.x
closed
nobody
None
5
2016-02-16
2016-02-16
Jones
No

Hello,

In case where someone want to enforce policy via configuration file (Keepass.config.xml), the details about the used fields are nowhere to be found, especially the "CharSetRanges" field.

It especially important since for unknown reason, in this field, the letter you are using are not the same than the ones for pattern generated password.

Could you update the document for PasswordGenerator to describe the letter and their value used in the Configuration File for the field "CharSetRanges" please ?

I was able to found the mapping in the Class PwCharSet.cs via the method PackAndRemoveCharRanges().

Thank you,
J.

Discussion

  • Paul

    Paul - 2016-02-16

    It's easy to work out.

    cheers, Paul

            <UserProfiles>
                <Profile>
                    <Name>Brackets</Name>
                    <GeneratorType>CharSet</GeneratorType>
                    <Length>20</Length>
                    <CharSetRanges>________B_</CharSetRanges>
                    <Pattern>h{10}</Pattern>
                </Profile>
                <Profile>
                    <Name>Digit</Name>
                    <GeneratorType>CharSet</GeneratorType>
                    <Length>20</Length>
                    <CharSetRanges>__D_______</CharSetRanges>
                    <Pattern>h{10}</Pattern>
                </Profile>
                <Profile>
                    <Name>High ANSI</Name>
                    <GeneratorType>CharSet</GeneratorType>
                    <Length>20</Length>
                    <CharSetRanges>_________H</CharSetRanges>
                    <Pattern>h{10}</Pattern>
                </Profile>
                <Profile>
                    <Name>Lower</Name>
                    <GeneratorType>CharSet</GeneratorType>
                    <Length>20</Length>
                    <CharSetRanges>_L________</CharSetRanges>
                    <Pattern>h{10}</Pattern>
                </Profile>
                <Profile>
                    <Name>Minus</Name>
                    <GeneratorType>CharSet</GeneratorType>
                    <Length>20</Length>
                    <CharSetRanges>_____m____</CharSetRanges>
                    <Pattern>h{10}</Pattern>
                </Profile>
                <Profile>
                    <Name>Space</Name>
                    <GeneratorType>CharSet</GeneratorType>
                    <Length>20</Length>
                    <CharSetRanges>_______s__</CharSetRanges>
                    <Pattern>h{10}</Pattern>
                </Profile>
                <Profile>
                    <Name>Special</Name>
                    <GeneratorType>CharSet</GeneratorType>
                    <Length>20</Length>
                    <CharSetRanges>___S______</CharSetRanges>
                    <Pattern>h{10}</Pattern>
                </Profile>
                <Profile>
                    <Name>Upper</Name>
                    <GeneratorType>CharSet</GeneratorType>
                    <Length>20</Length>
                    <CharSetRanges>U_________</CharSetRanges>
                    <Pattern>h{10}</Pattern>
                </Profile>
                <Profile>
                    <Name>Pattern</Name>
                    <GeneratorType>Pattern</GeneratorType>
                    <Length>20</Length>
                    <CharSetRanges>ULD__m___H</CharSetRanges>
                    <Pattern>S{10}</Pattern>
                </Profile>
    
     

    Last edit: Paul 2016-02-16
  • Dominik Reichl

    Dominik Reichl - 2016-02-16
    • status: open --> closed
     
  • Dominik Reichl

    Dominik Reichl - 2016-02-16

    My suggestion would be to create the profile of your choice, close KeePass and copy the profile from the configuration XML file.

    Alternatively, use Paul's documentation above :-)

    Best regards,
    Dominik

     

Log in to post a comment.

MongoDB Logo MongoDB