aboutsummaryrefslogtreecommitdiff
path: root/masterkey.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-12-19 15:46:19 +0100
committerJakob Unterwurzacher2015-12-19 15:46:19 +0100
commitad00ba38e5edc7311f6baf99d46c090c462b7248 (patch)
treee8fce0640a48206114e76f0c5e66eb35b8dcdc6f /masterkey.go
parent8c7e31329dc9eb058f23544fef418c1d4ba248f6 (diff)
Colorize output
Diffstat (limited to 'masterkey.go')
-rw-r--r--masterkey.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/masterkey.go b/masterkey.go
index 2062997..a9df1a8 100644
--- a/masterkey.go
+++ b/masterkey.go
@@ -21,20 +21,20 @@ func printMasterKey(key []byte) {
hChunked += "-"
}
if i == 24 {
- hChunked += "\n "
+ hChunked += "\n "
}
}
cryptfs.Info.Printf(`
-ATTENTION:
+Your master key is:
- Your master key is: %s
+ %s
If the gocryptfs.conf file becomes corrupted or you ever forget your password,
there is only one hope for recovery: The master key. Print it to a piece of
paper and store it in a drawer.
-`, hChunked)
+`, colorGrey+hChunked+colorReset)
}
// parseMasterKey - Parse a hex-encoded master key that was passed on the command line