1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="author" content="Dominik Reichl" />
<meta name="DC.title" content="Password Generator - KeePass" />
<meta name="DC.creator" content="Dominik Reichl" />
<meta name="DC.type" content="Text" />
<meta name="DC.format" content="text/html" />
<meta name="DC.language" content="en" />
<meta name="DC.rights" content="Copyright (C) 2003-2019 Dominik Reichl" />
<meta name="robots" content="index, follow" />
<meta name="flattr:id" content="42rykv" />
<title>Password Generator - KeePass</title>
<base target="_self" />
<link rel="stylesheet" type="text/css" href="../../default.css" />
</head>
<body>
<table class="sectionsummary"><tr><td width="68">
<img src="../images/b64x64_kgpg.png" width="64" height="64"
class="singleimg" align="left" alt="Security" />
</td><td valign="middle"><h1>Password Generator</h1><br />
Details about the built-in password generator of KeePass.
</td></tr></table>
<br />
<ul>
<li><a href="#charset">Generation Based on Character Sets</a></li>
<li><a href="#pattern">Generation Based on Patterns</a></li>
<li><a href="#rules">Generating Passwords that Follow Rules</a></li>
<li><a href="#secreduc">Security-Reducing Options</a></li>
<li><a href="#profiles">Creating and Using Password Generator Profiles</a></li>
<li><a href="#configauto">Configuring Settings of Automatically Generated Passwords for New Entries</a></li>
</ul>
<br />
<a name="charset"></a>
<h2 class="sectiontitle">
<img src="../images/b16x16_help.png" class="singleimg" alt="Help" /> Generation
Based on Character Sets</h2>
<p>This password generation method is the recommended way to generate random passwords.
Other methods (pattern-based generation, ...) should only be used if passwords must
follow special rules or fulfill certain conditions.</p>
<p>Generation based on a character set is very simple. You simply let KeePass know
which characters can be used (e.g. upper-case letters, digits, ...) and KeePass will
randomly pick characters out of the set.</p>
<p><b>Defining a character set:</b><br />
The character set can be defined directly in the password generator window. For convenience,
KeePass offers adding commonly used ranges of characters to the set. This is done by
ticking the appropriate check box. Additionally to these predefined character ranges, you
can specify characters manually: all characters that you enter in the <i>'Also include the
following characters'</i> text box will be directly added to the character set.</p>
<p>The characters that you enter in the <i>'Also include the following characters'</i>
text box are included in the character set from which the password generator randomly
chooses characters from.
This means that these additional characters are <em>allowed</em> to appear in the
generated passwords, but they are not <em>forced</em> to.
If you want to force that some characters appear in the generated passwords,
you have to use the pattern-based generation.</p>
<p><b>Character sets are sets:</b><br />
In mathematical terms, character sets are sets, not vectors. This means that characters
cannot be added twice to the set. Either a character is in the set or it is not.</p>
<p>For example, if you enter <i>'AAAAB'</i> into the additional characters box, this is
exactly the same set as <i>'AB'</i>. <i>'A'</i> will <i>not</i> be 4 times as likely as <i>'B'</i>!
If you need to follow rules like <i>'character A is more likely than B'</i>, you must
use <a href="#rules">pattern-based generation + permuting password characters</a>.</p>
<p>KeePass will 'optimize' your character set by removing all duplicate characters. If
you'd enter the character set <i>'AAAAB'</i> into the additional characters box,
close and reopen the password generator, it'll show the shorter character set <i>'AB'</i>.
Similarly, if you tick the <i>Digits</i> check box and enter <i>'3'</i> into the
additional box, the <i>'3'</i> will be ignored because it is already included in the
<i>Digits</i> character range.</p>
<br />
<a name="pattern"></a>
<h2 class="sectiontitle">
<img src="../images/b16x16_help.png" class="singleimg" alt="Help" /> Generation
Based on Patterns</h2>
<p>The password generator can create passwords using patterns. A pattern is a
string defining the layout of the new password. The following placeholders
are supported:</p>
<table class="tablebox">
<tr><th>Placeholder</th>
<th>Type</th>
<th>Character Set</th></tr>
<tr><td><code>a</code></td>
<td>Lower-Case Alphanumeric</td>
<td>abcdefghijklmnopqrstuvwxyz 0123456789</td></tr>
<tr><td><code>A</code></td>
<td>Mixed-Case Alphanumeric</td>
<td>ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789</td></tr>
<tr><td><code>U</code></td>
<td>Upper-Case Alphanumeric</td>
<td>ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789</td></tr>
<tr><td><code>d</code></td>
<td>Digit</td>
<td>0123456789</td></tr>
<tr><td><code>h</code></td>
<td>Lower-Case Hex Character</td>
<td>0123456789 abcdef</td></tr>
<tr><td><code>H</code></td>
<td>Upper-Case Hex Character</td>
<td>0123456789 ABCDEF</td></tr>
<tr><td><code>l</code></td>
<td>Lower-Case Letter</td>
<td>abcdefghijklmnopqrstuvwxyz</td></tr>
<tr><td><code>L</code></td>
<td>Mixed-Case Letter</td>
<td>ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz</td></tr>
<tr><td><code>u</code></td>
<td>Upper-Case Letter</td>
<td>ABCDEFGHIJKLMNOPQRSTUVWXYZ</td></tr>
<tr><td><code>v</code></td>
<td>Lower-Case Vowel</td>
<td>aeiou</td></tr>
<tr><td><code>V</code></td>
<td>Mixed-Case Vowel</td>
<td>AEIOU aeiou</td></tr>
<tr><td><code>Z</code></td>
<td>Upper-Case Vowel</td>
<td>AEIOU</td></tr>
<tr><td><code>c</code></td>
<td>Lower-Case Consonant</td>
<td>bcdfghjklmnpqrstvwxyz</td></tr>
<tr><td><code>C</code></td>
<td>Mixed-Case Consonant</td>
<td>BCDFGHJKLMNPQRSTVWXYZ bcdfghjklmnpqrstvwxyz</td></tr>
<tr><td><code>z</code></td>
<td>Upper-Case Consonant</td>
<td>BCDFGHJKLMNPQRSTVWXYZ</td></tr>
<tr><td><code>p</code></td>
<td>Punctuation</td>
<td>,.;:</td></tr>
<tr><td><code>b</code></td>
<td>Bracket</td>
<td>()[]{}<></td></tr>
<tr><td><code>s</code></td>
<td>Printable 7-Bit Special Character</td>
<td>!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~</td></tr>
<tr><td><code>S</code></td>
<td>Printable 7-Bit ASCII</td>
<td>A-Z, a-z, 0-9, !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~</td></tr>
<tr><td><code>x</code></td>
<td>High ANSI</td>
<td>Range [U+0080, U+00FF] except control and non-printable characters.</td></tr>
<tr><td><code>\</code></td>
<td>Escape (Fixed Char)</td>
<td>Use following character as is.</td></tr>
<tr><td><code>{<i>n</i>}</code></td>
<td>Escape (Repeat)</td>
<td>Repeat the previous character <i>n</i> times.</td></tr>
<tr><td><code>[<i>...</i>]</code></td>
<td>Custom Char Set</td>
<td>Define a custom character set.</td></tr>
</table>
<p>The <b>\</b> placeholder is special: it's an escape character. The next character that follows
the <b>\</b> is written directly into the generated password. If you want a <code>\</code> in your
password at a specific place, you have to write <code>\\</code>.</p>
<p>Using the <b>{<i>n</i>}</b> code you can define how many times the previous placeholder
should occur. The <b>{ }</b> operator duplicates placeholders, not generated characters. Examples:<br />
» <code>d{4}</code> is equivalent to <code>dddd</code>,<br />
» <code>dH{4}a</code> is equivalent to <code>dHHHHa</code> and<br />
» <code>Hda{1}dH</code> is equivalent to <code>HdadH</code>.</p>
<p>The <b>[<i>...</i>]</b> notation can be used to define a custom character set, from which
the password generator will pick one character randomly. All characters between the '<b>[</b>'
and '<b>]</b>' brackets follow the same rules as the placeholders above.
The '<b>^</b>' character removes the next character from the character set.
Examples:<br />
» <code>[dp]</code> generates exactly 1 random character out of the set
digits + punctuation,<br />
» <code>[d\m\@^3]{5}</code> generates 5 characters out of the set "012456789m@",<br />
» <code>[u\_][u\_]</code> generates 2 characters out of the set upper case + '_'.</p>
<p><b>More examples:</b></p>
<p><code>ddddd</code><br />
Generates for example: 41922, 12733, 43960, 07660, 12390, 74680, ...</p>
<p><code>\H\e\x\:\ HHHHHH</code><br />
Generates for example: 'Hex: 13567A', 'Hex: A6B99D', 'Hex: 02243C', ...</p>
<p><b>Common password patterns:</b></p>
<table class="tablebox">
<tr><th>Name</th>
<th>Pattern</th>
</tr>
<tr><td>Hex Key - 40-Bit</td>
<td>h{10}</td></tr>
<tr><td>Hex Key - 128-Bit</td>
<td>h{32}</td></tr>
<tr><td>Hex Key - 256-Bit</td>
<td>h{64}</td></tr>
<tr><td>Random MAC Address</td>
<td>HH\-HH\-HH\-HH\-HH\-HH</td></tr>
<!-- <tr><td>Random E-Mail Address</td>
<td>LA{11}\@LA{5}\.\c\o\m</td></tr> -->
</table>
<br /><br />
<a name="rules"></a>
<h2 class="sectiontitle">
<img src="../images/b16x16_help.png" class="singleimg" alt="Help" /> Generating
Passwords that Follow Rules</h2>
<p>Below are a few examples how the pattern generation feature can be used to generate
passwords that follow certain rules.</p>
<p><i>Important! For all of the following examples you must enable the 'Randomly permute
characters of password' option!</i></p>
<table class="tablebox">
<tr><th>Rule</th>
<th>Pattern</th>
</tr>
<tr><td>Must consist of 2 upper case, 2 lower case characters and 2 digits</td>
<td nowrap="nowrap">uulldd</td></tr>
<tr><td>Must consist of 9 digits and 1 letter</td>
<td nowrap="nowrap">d{9}L</td></tr>
<tr><td>Must consist of 10 alphanumeric characters, where at least 1 is a letter and
at least 1 is a digit</td>
<td nowrap="nowrap">LdA{8}</td></tr>
<tr><td>Must consist of 10 alphanumeric characters, where at least 2 are upper case
and at least are 2 lower case characters</td>
<td nowrap="nowrap">uullA{6}</td></tr>
<tr><td>Must consist of 9 characters out of the set "ABCDEF" and an '@' symbol somewhere in it</td>
<td nowrap="nowrap">\@[\A\B\C\D\E\F]{9}</td></tr>
</table>
<br /><br />
<a name="secreduc"></a>
<h2 class="sectiontitle">
<img src="../images/b16x16_help.png" class="singleimg" alt="Help" /> Security-Reducing
Options</h2>
<p>The password generator supports several options like <i>'Each character must occur at most once'</i>,
<i>'Exclude look-alike characters'</i>, and a field to explicitly specify
characters that should not appear in generated passwords.</p>
<p>These options are reducing the security of generated passwords. You should
only enable them if you are forced to follow such rules by the website/application,
for which you are generating the password.</p>
<p>The options can be found in the <i>'Advanced'</i> dialog / tab page.</p>
<img src="../images/pwgen_adv_excltab.png" align="right" alt="Tab Control" />
If you enable a security-reducing option, an exclamation mark (!)<br />
is appended to the <i>'Advanced'</i> tab.
<br /><br />
<a name="profiles"></a>
<h2 class="sectiontitle">
<img src="../images/b16x16_help.png" class="singleimg" alt="Help" /> Creating
and Using Password Generator Profiles</h2>
<p>Password generator options (character set, length, pattern, ...) can be saved
as password generator profiles.</p>
<p><b>Creating/modifying a profile:</b></p>
<ol>
<li>Open the <i>Password Generator</i> window.</li>
<li>Specify all options of the new profile.</li>
<li>Click the <img src="../images/b16x16_filesaveas.png" class="singleimg"
alt="Save As" /> <i>Save as Profile</i> button.</li>
<li>Enter the name of the new profile, or select an existing profile name from
the drop-down list to overwrite it. Close the dialog with <i>OK</i>.</li>
<li>If you want to immediately create a password using the new profile,
click <i>OK/Accept</i>. Otherwise click <i>Cancel/Close</i> (the profile is not lost;
profile management is independent of password generation).</li>
</ol>
<p><b>Using a profile:</b><br />
To use a profile, simply select it from the drop-down profiles list
in the password generator window. All settings of this profile will be
restored accordingly.</p>
<p><b>Meta-profile 'Derive from previous password':</b><br />
When this meta-profile is selected, a password is generated based on
a character set derived from the previous password. The new password
has the same length as the old one, and every character of the old
password turns on the character subset that contains this character.
For example, if the old password contains the letter 'R', then the character
set used for generating the new password contains the range 'A' to 'Z'.<br />
<i>Warning! This meta-profile should not be used blindly
(i.e. without reviewing the used character set).
The new password does not necessarily contain at least one character
from each character subset (see '</i><a href="#charset"><i>Generation
Based on Character Sets</i></a><i>'), thus blindly generating new passwords
with this meta-profile can result in a quality degradation of the
effectively used profile.</i></p>
<br />
<a name="configauto"></a>
<h2 class="sectiontitle">
<img src="../images/b16x16_help.png" class="singleimg" alt="Help" /> Configuring Settings
of Automatically Generated Passwords for New Entries</h2>
<p>When you create a new entry, KeePass will automatically generate a random
password for it. The properties of these generated passwords can be configured
in the password generator dialog.</p>
<p>To configure, specify the options of your choice and overwrite the
<i>'(Automatically generated passwords for new entries)'</i> profile (see
section above).</p>
<p><b>Disabling automatically generated passwords:</b><br />
To disable automatically generated passwords for new entries, select
<i>'Generate using character set'</i> and specify <i>0</i> as password length.
Overwrite the appropriate profile (see above).</p>
</body></html>
|