Skip to content

Commit

Permalink
feat: pretty print hmac key
Browse files Browse the repository at this point in the history
  • Loading branch information
mehditeymorian committed Aug 31, 2022
1 parent 90e2431 commit 0d48f31
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/cmd/key/hmac.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package key

import (
"fmt"
"strconv"

"github.com/AlecAivazis/survey/v2"
Expand Down Expand Up @@ -41,12 +40,11 @@ func hmac(c *cobra.Command, _ []string) {

cfg.PrintMode()
pterm.Info.Println("size: " + pterm.Blue(size))
pterm.Info.Println(" base64Encoded: " + pterm.Blue(base64Encoded))
pterm.Info.Println("base64Encoded: " + pterm.Blue(base64Encoded))

hmacKey := keyGenerator.GenerateHmacKey(size, base64Encoded)

pterm.Info.Println("key")
fmt.Println(string(hmacKey))
pterm.Info.Println("key: " + pterm.Blue(string(hmacKey)))

if saveFile {
SaveKey("/key.txt", hmacKey)
Expand Down

0 comments on commit 0d48f31

Please sign in to comment.