2 79b24d5e 2017-07-03 xhr .\" Copyright (c) 2017 Matthias Schmidt
4 79b24d5e 2017-07-03 xhr .\" Permission to use, copy, modify, and distribute this software for any
5 79b24d5e 2017-07-03 xhr .\" purpose with or without fee is hereby granted, provided that the above
6 79b24d5e 2017-07-03 xhr .\" copyright notice and this permission notice appear in all copies.
8 79b24d5e 2017-07-03 xhr .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 79b24d5e 2017-07-03 xhr .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 79b24d5e 2017-07-03 xhr .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 79b24d5e 2017-07-03 xhr .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 79b24d5e 2017-07-03 xhr .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 79b24d5e 2017-07-03 xhr .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 79b24d5e 2017-07-03 xhr .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 0bb04f0b 2020-10-05 noreply .Dd October 04, 2020
22 79b24d5e 2017-07-03 xhr .Nd Simple command line password manager
25 79b24d5e 2017-07-03 xhr .Op Cm edit | find | insert | rm | show Ar entry
27 d1365685 2017-07-04 xhr .Sh DESCRIPTION
30 2e2d9eae 2017-07-06 xhr utility is a simple password manager for the command line.
33 79b24d5e 2017-07-03 xhr to de- and encrypt passwords and stores the password in a tree-like
35 2e2d9eae 2017-07-06 xhr It is modelled and somewhat compatible with
38 d1365685 2017-07-04 xhr The options are as follows:
39 d1365685 2017-07-04 xhr .Bl -tag -width Ds
40 d1365685 2017-07-04 xhr .It Cm edit Ar entry
41 2e2d9eae 2017-07-06 xhr Allows the user to edit an existing password entry.
42 2e2d9eae 2017-07-06 xhr The password named
44 2e2d9eae 2017-07-06 xhr is opened in a text editor.
47 79b24d5e 2017-07-03 xhr is set this will be used, otherwise
51 d1365685 2017-07-04 xhr .It Cm find Ar entry
52 79b24d5e 2017-07-03 xhr Searches for all passwords named
54 2e2d9eae 2017-07-06 xhr and displays them.
55 2e2d9eae 2017-07-06 xhr This will display password entries as well
56 79b24d5e 2017-07-03 xhr as directories with the same name.
57 d1365685 2017-07-04 xhr .It Cm insert Ar entry
58 fcdb1eed 2017-07-03 xhr Asks the user for a password and creates a new encrypted
61 79b24d5e 2017-07-03 xhr .It Cm rm Ar entry
62 79b24d5e 2017-07-03 xhr Removes the password called
64 79b24d5e 2017-07-03 xhr If the password does not exist an error will be shown.
65 d1365685 2017-07-04 xhr .It Cm show Ar entry
66 79b24d5e 2017-07-03 xhr Shows the password called
69 79b24d5e 2017-07-03 xhr Display usage instructions.
72 79b24d5e 2017-07-03 xhr If no option is given
74 fcdb1eed 2017-07-03 xhr displays the existing password hierarchy.
75 79b24d5e 2017-07-03 xhr .Sh ENVIRONMENT
77 79b24d5e 2017-07-03 xhr can use the following environment variables:
78 79b24d5e 2017-07-03 xhr .Bl -tag -width "PASSWORD_STORE_KEY"
79 79b24d5e 2017-07-03 xhr .It Ev EDITOR
81 79b24d5e 2017-07-03 xhr will use the editor specified in
85 2e2d9eae 2017-07-06 xhr option is used.
88 79b24d5e 2017-07-03 xhr will be used.
89 c6e44ed2 2020-10-05 noreply .It Ev NO_COLOR
90 c6e44ed2 2020-10-05 noreply If set to any value
92 c6e44ed2 2020-10-05 noreply doesn't display colors.
93 c6e44ed2 2020-10-05 noreply The default is to display colors.
94 79b24d5e 2017-07-03 xhr .It Ev PASSWORD_STORE_KEY
98 79b24d5e 2017-07-03 xhr identity used for encryption and decryption from this
105 79b24d5e 2017-07-03 xhr .Bl -tag -width Ds -compact
106 79b24d5e 2017-07-03 xhr .It Pa ~/.password-store
107 79b24d5e 2017-07-03 xhr All passwords will be encrypted using
109 79b24d5e 2017-07-03 xhr and stored under this directory.
111 79b24d5e 2017-07-03 xhr .It Pa ~/.password-store/.gpg-id
112 79b24d5e 2017-07-03 xhr Contains one line with the
114 2e2d9eae 2017-07-06 xhr key used to en- and decrypt the password.
115 2e2d9eae 2017-07-06 xhr This could be something
117 79b24d5e 2017-07-03 xhr .Aq user@example.com .
119 d1365685 2017-07-04 xhr .Sh EXIT STATUS
121 fcdb1eed 2017-07-03 xhr normally exists with 0 or with 1 if an error occurred.
122 79b24d5e 2017-07-03 xhr .Sh EXAMPLES
123 79b24d5e 2017-07-03 xhr The following examples shows the basic usage of
125 79b24d5e 2017-07-03 xhr To list all existing passwords in a tree just call
127 79b24d5e 2017-07-03 xhr without any arguments:
128 79b24d5e 2017-07-03 xhr .Bd -literal -offset indent
130 79b24d5e 2017-07-03 xhr /home/matthias/.password-store
138 79b24d5e 2017-07-03 xhr If you want to save the password for one of your servers you
139 79b24d5e 2017-07-03 xhr can create a new entry called
141 79b24d5e 2017-07-03 xhr under the parent-directory called
146 79b24d5e 2017-07-03 xhr .Bd -literal -offset indent
147 79b24d5e 2017-07-03 xhr $ tpm insert logins/server
148 79b24d5e 2017-07-03 xhr Password for 'logins/server':
151 79b24d5e 2017-07-03 xhr Enter the password - that will not be displayed - and it will be saved
152 79b24d5e 2017-07-03 xhr encrypted in your password store directory.
154 7278fefb 2017-07-04 xhr If you have multiple
156 7278fefb 2017-07-04 xhr keys you can set which key should be used by
158 2e2d9eae 2017-07-06 xhr for all cryptographic operations.
159 2e2d9eae 2017-07-06 xhr Also see Section
161 7278fefb 2017-07-04 xhr .Bd -literal -offset indent
162 7278fefb 2017-07-04 xhr $ echo "user@example.com" > ~/.password-store/.gpg-id
164 d1365685 2017-07-04 xhr .Sh SEE ALSO
165 2e2d9eae 2017-07-06 xhr .Xr colortree 1 ,
170 79b24d5e 2017-07-03 xhr was originally written by
171 79b24d5e 2017-07-03 xhr .An Sören Tempel Aq Mt soeren+git@soeren-tempel.net .
173 79b24d5e 2017-07-03 xhr This version was enhanced and mostly rewritten by
174 79b24d5e 2017-07-03 xhr .An Matthias Schmidt Aq Mt matthias@dragonflybsd.org .