complete overhaul, version 1.3

This commit is contained in:
2024-05-07 21:27:43 -04:00
parent 43fa5bd613
commit 2bbe080275
2 changed files with 245 additions and 109 deletions
+18 -19
View File
@@ -1,16 +1,16 @@
# pwgen
Generate word-based passwords. Based on XKCD/936, word-based passwords are easier to remember than a string of random letters/numbers/punctuation.
Generate word-based passwords. Based on [XKCD/936](https://xkcd.com/936/), word-based passwords are easier to remember than a string of random letters/numbers/punctuation.
[TOC]
### Overview
Password generators can be found all over the internet, but most generate random combinations of letters+numbers+punctuation. If a combination of those is long enough to be secure, it is also long enough to be difficult to remember, and possible difficult to type.
Password generators can be found all over the internet, but most generate random combinations of letters + numbers + punctuation. If a combination of those is long enough to be secure, it is also long enough to be difficult to remember, and possible difficult to type.
The XKCD comic #936 introduced the idea that a phrase of 3, 4 or 5 common words can be used as a password that is sufficiently difficult to crack in our lifetimes. The program **pwgen** is a locally hosted generator of these kinds of pass phrases.
The XKCD comic #936 introduced the idea that a phrase of 3, 4 or 5 common words can be used as a password that is sufficiently difficult to crack in our lifetimes. The program `**pwgen**` is a locally hosted generator of these kinds of pass phrases.
The program runs locally on a UNIX/Linux based computer, and the passphrase never crosses the network, so you can be sure that you're the only one who has ever seen it.
This program runs locally on a UNIX/Linux based computer, and the passphrase never crosses the network, so you can be sure that you're the only one who has ever seen it.
### Usage
@@ -27,40 +27,39 @@ as a potential pass phrase. The following options exist:
-p pad the words with spaces
-P pad the words with spaces, periods or commas
-n pad with numbers
-N pad with numbers, spaces, periods or commas
-L <n>
--length <n> minimum phrase length (default=20)
-N pad with numbers and punctuation (other than space)
-L <n> minimum phrase length (default=20) (or --length <n>)
-c make 2 word phrases with conjunction between them
<n> make multiple phrases (default=1)
By default, <code>pwgen</code> will build a pass phrase using words from the dictionary at <code>/usr/share/dict/words</code> and add punctuation to separate the words.
By default, **`pwgen`** will build a pass phrase using words from the dictionary at **`/usr/share/dict/words`** and add punctuation to separate the words.
$ pwgen
consequently?restraining
Adding the **<code>-p</code>** option will insist that the passphrase be padded with only spaces, making it easier to type on a smartphone. Similarly, the **<code>-P</code>** option uses only spaces, periods and commas, which are often easily accessed on a smartphone.
Adding the **`-p`** option will insist that the passphrase be padded with only spaces, making it easier to type on a smartphone. Similarly, the **`-P`** option uses only spaces, periods and commas, which are often easily accessed on a smartphone.
$ pwgen -p
garments mazes queasy
$ pwgen -P
crufted..teeth...buy
Some servers require numbers to be embedded in the password, so the **<code>-n</code>** and **<code>-N</code>** options are available.
Some servers require numbers to be embedded in the password, so the **`-n`** and **`-N`** options are available.
$ pwgen -N
bleeding5clusters5berries
bleeding5clusters5berries#
The **<code>-L</code>** option allows you to specify a minimum length for the pass phrase, although the result may be a few characters longer than you requested, so that the words aren't chopped up.
The **`-L`** option allows you to specify a minimum length for the pass phrase, although the result may be a few characters longer than you requested, so that the words aren't chopped up.
$ pwgen -L 30
dittoed___nonabrasive___atomic
The **<code>-c</code>** option uses common English conjunctions to separate a pair of words. If the 2nd word starts with a vowel, the conjuntion "a" is changed to "an". I find these phrases much easier to remember than just a sequence of words.
The **`-c`** option uses common English conjunctions to separate a pair of words. If the 2nd word starts with a vowel, the conjuntion "a" is changed to "an". I find these phrases much easier to remember than just a sequence of words.
$ pwgen -c
quick in a crowd
Part of the reason for using pass phrases is to make them easier to remember for us humans. Sometimes, the first phrases offered just doesn't seem memorable, so you can add a small integer after <code>pwgen</code> to get multiple offerings, and you can just choose the one that seems memorable to you.
Part of the reason for using pass phrases is to make them easier to remember for us humans. Sometimes, the first phrases offered just doesn't seem memorable, so you can add a small integer after `pwgen` to get multiple offerings, and you can just choose the one that seems memorable to you.
$ pwgen 6
mechanisms..contempt
@@ -76,12 +75,12 @@ Coming soon: Instead of spaces & punctuation, you will be able to use CamelCase
#### Other implementations
http://www.egansoft.com/password/index.php
<http://www.egansoft.com/password/index.php>
https://passwords-generator.org/words
<https://passwords-generator.org/words>
https://passwordcreator.org/commonwords.html
<https://passwordcreator.org/commonwords.html>
https://mdigi.tools/memorable-password/
<https://mdigi.tools/memorable-password/>
https://www.mapletech.co.uk/tools/password-generator/
<https://www.mapletech.co.uk/tools/password-generator/>