diff options
author | Jakob Unterwurzacher | 2018-02-18 14:26:54 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2018-02-18 14:26:54 +0100 |
commit | 3b8f5cbb17c964224456bb36b096feafb0e24f44 (patch) | |
tree | 1caae8dbf736510b971790b94c1975b325dfe377 /main.go | |
parent | 14c063428dcded6a1060395bb45bf7bd5d185738 (diff) |
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
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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") |