Blame


1 61b3aef3 2023-08-29 op .\" Copyright (c) 2021, 2022, 2023 Omar Polo <op@omarpolo.com>
2 ee89c9f1 2022-12-03 op .\"
3 ee89c9f1 2022-12-03 op .\" Permission to use, copy, modify, and distribute this software for any
4 ee89c9f1 2022-12-03 op .\" purpose with or without fee is hereby granted, provided that the above
5 ee89c9f1 2022-12-03 op .\" copyright notice and this permission notice appear in all copies.
6 ee89c9f1 2022-12-03 op .\"
7 ee89c9f1 2022-12-03 op .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 ee89c9f1 2022-12-03 op .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 ee89c9f1 2022-12-03 op .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 ee89c9f1 2022-12-03 op .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 ee89c9f1 2022-12-03 op .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 ee89c9f1 2022-12-03 op .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 ee89c9f1 2022-12-03 op .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 12f06a86 2023-11-23 op .Dd November 23, 2023
15 ee89c9f1 2022-12-03 op .Dt PWG 1
16 ee89c9f1 2022-12-03 op .Os
17 ee89c9f1 2022-12-03 op .Sh NAME
18 ee89c9f1 2022-12-03 op .Nm pwg
19 ee89c9f1 2022-12-03 op .Nd password generator
20 ee89c9f1 2022-12-03 op .Sh SYNOPSIS
21 ee89c9f1 2022-12-03 op .Nm
22 ee89c9f1 2022-12-03 op .Op Fl an
23 ee89c9f1 2022-12-03 op .Op Fl w Ar wordlist
24 ee89c9f1 2022-12-03 op .Op Ar length
25 ee89c9f1 2022-12-03 op .Sh DESCRIPTION
26 ee89c9f1 2022-12-03 op .Nm
27 12f06a86 2023-11-23 op generates a random string of characters or a diceware-style passphrase
28 12f06a86 2023-11-23 op using a word list, a file with one word per line.
29 ee89c9f1 2022-12-03 op The random properties are the ones provided by the operating system'
30 46167c76 2023-08-30 op .Pa /dev/urandom
31 46167c76 2023-08-30 op device.
32 ee89c9f1 2022-12-03 op .Pp
33 ee89c9f1 2022-12-03 op The options are as follows:
34 ee89c9f1 2022-12-03 op .Bl -tag -width Ds
35 ee89c9f1 2022-12-03 op .It Fl a
36 8ac57335 2023-08-29 op Use only alphanumeric characters.
37 ee89c9f1 2022-12-03 op .It Fl n
38 8ac57335 2023-08-29 op Use only numbers.
39 ee89c9f1 2022-12-03 op .It Fl w Ar wordlist
40 8ac57335 2023-08-29 op Generate a passphrase from a the given
41 46167c76 2023-08-30 op .Ar wordlist
42 89e90ba9 2023-08-29 op instead of a random string of characters.
43 ee89c9f1 2022-12-03 op .El
44 ee89c9f1 2022-12-03 op .Pp
45 ee89c9f1 2022-12-03 op If no
46 ee89c9f1 2022-12-03 op .Ar length
47 3486f5fc 2023-01-21 op is given, an appropriate one is used.
48 ee89c9f1 2022-12-03 op .Sh EXIT STATUS
49 ee89c9f1 2022-12-03 op .Ex -std
50 ee89c9f1 2022-12-03 op .Sh EXAMPLES
51 ee89c9f1 2022-12-03 op Generate a passphrase using the EFF
52 ee89c9f1 2022-12-03 op .Dq large
53 ee89c9f1 2022-12-03 op wordlist:
54 ee89c9f1 2022-12-03 op .Bd -literal
55 ee89c9f1 2022-12-03 op $ ftp \-o\- https://www.eff.org/files/2016/07/18/eff_large_wordlist.txt \e
56 ee89c9f1 2022-12-03 op | awk '{print $2}' >~/wordlist
57 ee89c9f1 2022-12-03 op $ pwg \-w ~/wordlist
58 ee89c9f1 2022-12-03 op elm retouch disclose snaking pregame bonfire
59 ee89c9f1 2022-12-03 op .Ed
60 ee89c9f1 2022-12-03 op .Sh AUTHORS
61 ee89c9f1 2022-12-03 op .An -nosplit
62 ee89c9f1 2022-12-03 op The
63 ee89c9f1 2022-12-03 op .Nm
64 ee89c9f1 2022-12-03 op utility was written by
65 ee89c9f1 2022-12-03 op .An Omar Polo Aq Mt op@omarpolo.com .