gokey icon indicating copy to clipboard operation
gokey copied to clipboard

Feature request - allow setting of master pasword via environment variable

Open dannyfast opened this issue 3 years ago • 1 comments

At present either a password must be typed in or an unencrypted file must be present to encrypt a realm.

If the password could be specified with an environment variable the command requirements could be cut by 50% and concerns over master file storage security would be removed.

dannyfast avatar Aug 18 '22 17:08 dannyfast

Depending on your use-case, you might want to do something like:

decrypt-command crypted-master-pw | gokey -P /dev/stdin -r test
niK&Dz7aUu

But yeah, environment variables are a pretty standard interface, that gokey should support. Same as -P - i.e. a dash character instead of a file name, to read the master-password from standard input.

con-f-use avatar Feb 19 '24 16:02 con-f-use

Done in #72

ignatk avatar Apr 29 '24 17:04 ignatk