From 6d64dfe8f7acd8e9ca4a659d26318e442c2db85a Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 26 Jun 2018 20:44:10 +0200 Subject: Only print masterkey once on -init It is no longer printed at all when mounting a filesystem, printing on -init can be disabled with -q. https://github.com/rfjakob/gocryptfs/issues/76 --- internal/configfile/config_file.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/configfile') diff --git a/internal/configfile/config_file.go b/internal/configfile/config_file.go index c856ad0..1e48c97 100644 --- a/internal/configfile/config_file.go +++ b/internal/configfile/config_file.go @@ -104,6 +104,7 @@ func Create(filename string, password []byte, plaintextNames bool, } else { key = cryptocore.RandBytes(cryptocore.KeyLen) } + tlog.PrintMasterkeyReminder(key) // Encrypt it using the password // This sets ScryptObject and EncryptedKey // Note: this looks at the FeatureFlags, so call it AFTER setting them. -- cgit v1.2.3