Blob


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