diff --git a/entry/crypto_entry.go b/entry/crypto_entry.go index da8aff1..2265a6a 100644 --- a/entry/crypto_entry.go +++ b/entry/crypto_entry.go @@ -6,7 +6,6 @@ import ( "crypto/cipher" "crypto/rand" "encoding/json" - "fmt" "github.com/pkg/errors" "io" ) @@ -85,7 +84,7 @@ func (s *CryptoAESEntry) Encrypt(plaintext []byte) ([]byte, error) { func (s *CryptoAESEntry) Decrypt(ciphertext []byte) ([]byte, error) { gcm, err := cipher.NewGCM(s.block) if err != nil { - fmt.Println(err) + return nil, err } nonceSize := gcm.NonceSize()