main: yellow text for masterkey and zerokey warnings
Also, mention that the shell may save the command line into the history and reduce "ps -auxwww" to "ps ax" (that's all you need).
This commit is contained in:
parent
e574a6cc1f
commit
e021b9d00c
8
main.go
8
main.go
@ -324,11 +324,15 @@ func main() {
|
|||||||
// "-masterkey"
|
// "-masterkey"
|
||||||
tlog.Info.Printf("Using explicit master key.")
|
tlog.Info.Printf("Using explicit master key.")
|
||||||
masterkey = parseMasterKey(args.masterkey)
|
masterkey = parseMasterKey(args.masterkey)
|
||||||
tlog.Info.Printf("THE MASTER KEY IS VISIBLE VIA \"ps -auxwww\", ONLY USE THIS MODE FOR EMERGENCIES.")
|
tlog.Info.Printf(tlog.ColorYellow +
|
||||||
|
"THE MASTER KEY IS VISIBLE VIA \"ps ax\" AND MAY BE STORED IN YOUR SHELL HISTORY!\n" +
|
||||||
|
"ONLY USE THIS MODE FOR EMERGENCIES." + tlog.ColorReset)
|
||||||
} else if args.zerokey {
|
} else if args.zerokey {
|
||||||
// "-zerokey"
|
// "-zerokey"
|
||||||
tlog.Info.Printf("Using all-zero dummy master key.")
|
tlog.Info.Printf("Using all-zero dummy master key.")
|
||||||
tlog.Info.Printf("ZEROKEY MODE PROVIDES NO SECURITY AT ALL AND SHOULD ONLY BE USED FOR TESTING.")
|
tlog.Info.Printf(tlog.ColorYellow +
|
||||||
|
"ZEROKEY MODE PROVIDES NO SECURITY AT ALL AND SHOULD ONLY BE USED FOR TESTING." +
|
||||||
|
tlog.ColorReset)
|
||||||
masterkey = make([]byte, cryptocore.KeyLen)
|
masterkey = make([]byte, cryptocore.KeyLen)
|
||||||
} else {
|
} else {
|
||||||
// Load master key from config file
|
// Load master key from config file
|
||||||
|
Loading…
Reference in New Issue
Block a user