gokey
gokey copied to clipboard
Feature request - allow setting of master pasword via environment variable
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.
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.
Done in #72