Skip to content

Commit

Permalink
fix: don't print debug value as it messes up CLI messaging on verbose…
Browse files Browse the repository at this point in the history
… mode
  • Loading branch information
aripalo committed May 12, 2022
1 parent 7704e3c commit 9ee92c0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/cache/encryption/encryption.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"fmt"
"io"
"os"
"os/user"
"strings"

"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
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 9ee92c0

Please sign in to comment.