From 3b8f5cbb17c964224456bb36b096feafb0e24f44 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 18 Feb 2018 14:26:54 +0100 Subject: readpassword: convert from string to []byte This will allows us to overwrite the password with zeros once we are done with it. https://github.com/rfjakob/gocryptfs/issues/211 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 797701a..ed5784f 100644 --- a/main.go +++ b/main.go @@ -44,7 +44,7 @@ func loadConfig(args *argContainer) (masterkey []byte, confFile *configfile.Conf // password). if args.masterkey != "" { masterkey = parseMasterKey(args.masterkey) - _, confFile, err = configfile.LoadConfFile(args.config, "") + _, confFile, err = configfile.LoadConfFile(args.config, nil) } else { pw := readpassword.Once(args.extpass) tlog.Info.Println("Decrypting master key") -- cgit v1.2.3