From 5e1068961e28fec25e6d3c0551ef62098e92ee6f Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Tue, 17 Oct 2017 21:57:42 -0600 Subject: [PATCH] Add more trimming --- connect.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/connect.go b/connect.go index 713848aa..8a5e3824 100644 --- a/connect.go +++ b/connect.go @@ -78,9 +78,9 @@ func runClient(connectionType string, codePhrase string) { return } fmt.Println("\n\ndecrypting...") - log.Debugf("codePhrase: %s", codePhrase) - log.Debugf("filefileSaltIV: %s", fileSalt) - log.Debugf("fileIV: %s", fileIV) + log.Debugf("codePhrase: [%s]", codePhrase) + log.Debugf("fileSalt: [%s]", fileSalt) + log.Debugf("fileIV: [%s]", fileIV) decrypted, err := Decrypt(encrypted, codePhrase, fileSalt, fileIV) if err != nil { log.Error(err) @@ -88,8 +88,8 @@ func runClient(connectionType string, codePhrase string) { } ioutil.WriteFile(fileName, decrypted, 0644) os.Remove(fileName + ".encrypted") - log.Debugf("\n\n\ndownloaded hash: %s", HashBytes(decrypted)) - log.Debugf("\n\n\nrelayed hash: %s", fileHash) + log.Debugf("\n\n\ndownloaded hash: [%s]", HashBytes(decrypted)) + log.Debugf("\n\n\nrelayed hash: [%s]", fileHash) if fileHash != HashBytes(decrypted) { fmt.Printf("\nUh oh! %s is corrupted! Sorry, try again.\n", fileName)