aboutsummaryrefslogtreecommitdiff
path: root/mkpass.1
blob: 10518e85fec0b1aa9125869230b3ab0d5306258f (plain) (blame)
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
.Dd $Mdocdate: October 3 2023 $
.Dt MKPASS 1
.Os
.Sh NAME
.Nm mkpass
.Nd make a password
.Sh SYNOPSIS
.Nm
.Op Fl l Ar length
.Op Ar chars
.Sh DESCRIPTION
The
.Nm
utility allows you to easily create randomly\-generated passwords from the
command\-line.
By default,
.Nm
generates a 64\-character long password of printable characters.
If specified, the generated password will only contain characters found in
.Ar chars .
You may use
.Xr tr 1
range syntax, as shown in the
.Sx EXAMPLES
section.
.Pp
The options are as follows:
.Bl -tag width Ds
.It Fl l Ar length
Generate a password
.Ar length
characters in length.
.El
.Sh EXIT STATUS
.Ex -std
.Sh EXAMPLES
.Pp
Generate a password:
.Pp
.Dl $ mkpass
.Pp
Generate a password with a length of 40:
.Pp
.Dl $ mkpass -l 40
.Pp
Generate an alphanumeric password:
.Pp
.Dl $ mkpass '[:alnum:]'
.Pp
Generate a password containing only the lowercase letters of the latin alphabet:
.Pp
.Dl $ mkpass a-z
.Sh SEE ALSO
.Xr head 1 ,
.Xr totp 1 ,
.Xr tr 1
.Pp
.Lk https://thomasvoss.com/prj/mkpass "Extended Description and -Documentation"
.Sh AUTHORS
.An Thomas Voss Aq Mt mail@thomasvoss.com