lockbox

password manager
Log | Files | Refs | README | LICENSE

commit 45a8253e04bb5b3db3df8b80b9687af7f24991bb
parent 982acbc0a68f99ffc4bc02e3b1d2c38c1f86f29b
Author: Sean Enck <sean@ttypty.com>
Date:   Wed, 13 Jul 2022 21:54:55 -0400

keymode as command by default

Diffstat:
MREADME.md | 6+-----
Minternal/encdec.go | 3+++
2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md @@ -18,13 +18,9 @@ For example set: LOCKBOX_KEY="gpg --decrypt /Users/alice/.secrets/key.gpg" # the location, on disk, of the password store LOCKBOX_STORE=/Users/alice/.passwords -# the keymode is a command -LOCKBOX_KEYMODE="command" -# to utilize totp token generation set the name of files for TOTP tokens -LOCKBOX_TOTP=totp ``` -In cases where `lb` outputs colored terminal output this coloring behavior can be disabled: +In cases where `lb` outputs colored terminal output, this coloring behavior can be disabled: ``` LOCKBOX_NOCOLOR="yes" ``` diff --git a/internal/encdec.go b/internal/encdec.go @@ -37,6 +37,9 @@ func NewLockbox(key, keyMode, file string) (Lockbox, error) { if useKeyMode == "" { useKeyMode = os.Getenv("LOCKBOX_KEYMODE") } + if useKeyMode == "" { + useKeyMode = CommandKeyMode + } useKey := key if useKey == "" { useKey = os.Getenv("LOCKBOX_KEY")