diff options
author | Jakob Unterwurzacher | 2020-05-17 19:31:04 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2020-05-17 19:31:04 +0200 |
commit | 416080203b4dd79de857eaf7c7cc97d050e00a9f (patch) | |
tree | ed729c4cd365acc803a3d1e339eae8f1e8112f4c /masterkey.go | |
parent | ded4bbe6456dcfaa770f2c06df46d578fcbaa97e (diff) |
main: accept multiple -passfile options
Each file will be read and then concatenated
for the effictive password. This can be used as a
kind of multi-factor authenticiton.
Fixes https://github.com/rfjakob/gocryptfs/issues/288
Diffstat (limited to 'masterkey.go')
-rw-r--r-- | masterkey.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/masterkey.go b/masterkey.go index 7b6779d..8d75c75 100644 --- a/masterkey.go +++ b/masterkey.go @@ -39,7 +39,7 @@ func unhexMasterKey(masterkey string, fromStdin bool) []byte { func handleArgsMasterkey(args *argContainer) (masterkey []byte) { // "-masterkey=stdin" if args.masterkey == "stdin" { - in := string(readpassword.Once(nil, "", "Masterkey")) + in := string(readpassword.Once(nil, nil, "Masterkey")) return unhexMasterKey(in, true) } // "-masterkey=941a6029-3adc6a1c-..." |