From 9ee92c0c3b35240e7382990ea148d0994a041616 Mon Sep 17 00:00:00 2001 From: Ari Palo Date: Thu, 12 May 2022 21:16:00 +0300 Subject: [PATCH] fix: don't print debug value as it messes up CLI messaging on verbose mode --- internal/cache/encryption/encryption.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/cache/encryption/encryption.go b/internal/cache/encryption/encryption.go index faa32c3..90a0c13 100644 --- a/internal/cache/encryption/encryption.go +++ b/internal/cache/encryption/encryption.go @@ -4,7 +4,6 @@ import ( "crypto/aes" "crypto/cipher" "crypto/rand" - "fmt" "io" "os" "os/user" @@ -12,7 +11,6 @@ import ( "github.com/aripalo/vegas-credentials/internal/cache/encryption/boottime" "github.com/aripalo/vegas-credentials/internal/checksum" - "github.com/aripalo/vegas-credentials/internal/msg" ) // Encrypt data with AES-256-CTR @@ -100,7 +98,7 @@ func getPassphrase() ([]byte, error) { control := buildControlValue(hostname, user.Uid, bootTime) // Print out control value for debugging purposes, but don't write it to log. - msg.DebugNoLog("ℹ️", fmt.Sprintf("Control Value: %s", control)) + //msg.DebugNoLog("ℹ️", fmt.Sprintf("Control Value: %s", control)) // Create a SHA1 hash out of the joined strings passphrase, err := checksum.Generate([]byte(control))