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