Skip to content

Commit

Permalink
change log level example.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ebirukov authored Jan 4, 2024
1 parent 5902ab2 commit b85826f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion example/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package main

import (
"fmt"
"log"

tripleDES "github.com/ebirukov/PBEWithMD5AndTripleDES"
)

Expand All @@ -14,7 +16,7 @@ func main() {
enc := tripleDES.NewEncryptCipher(password, params)
dec, err := tripleDES.NewDecryptCipher(password, params.Encode())
if err != nil {
panic(err.Error())
log.Fatal(err.Error())
}

encrypted := enc.Encrypt(originalText)
Expand Down

0 comments on commit b85826f

Please sign in to comment.