From f1c0682031766a5925ea2a510d5a166b2d9e2c29 Mon Sep 17 00:00:00 2001 From: Enrico Candino Date: Tue, 27 Feb 2024 00:19:14 +0100 Subject: [PATCH] fix output image ext, bump dep --- go.mod | 4 ++-- go.sum | 4 ++-- internal/encrypt/encrypt.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index af6d03b..87ed1f8 100644 --- a/go.mod +++ b/go.mod @@ -1,9 +1,9 @@ module github.com/enrichman/stegosecrets -go 1.19 +go 1.22 require ( - github.com/auyer/steganography v1.0.1 + github.com/auyer/steganography v1.0.2 github.com/corvus-ch/shamir v1.0.1 github.com/pkg/errors v0.9.1 github.com/schollz/progressbar/v3 v3.11.0 diff --git a/go.sum b/go.sum index d55819d..fc2ae59 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/auyer/steganography v1.0.1 h1:b3zlDd9FXlAIr5Io9KyiLG1sinaW7Wk0gelpV+lxwWE= -github.com/auyer/steganography v1.0.1/go.mod h1:Q2qN+f1ixaXnKTCT4xkSDCZ/5NiOpUeTgOCLwQdJD+A= +github.com/auyer/steganography v1.0.2 h1:G5iZbX8QUvw+kCLyK+59hY8t/oSSpSS5yStIcPCGIgU= +github.com/auyer/steganography v1.0.2/go.mod h1:Q2qN+f1ixaXnKTCT4xkSDCZ/5NiOpUeTgOCLwQdJD+A= github.com/corvus-ch/shamir v1.0.1 h1:NaynWw+QQBOYmd/dWmc9xGrUr4cgALhWYJS0252SSnE= github.com/corvus-ch/shamir v1.0.1/go.mod h1:1v3RBwJf+boj6ol/2QvtT1F1w5MZRZPbh5uys9ZoMnY= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= diff --git a/internal/encrypt/encrypt.go b/internal/encrypt/encrypt.go index e27a20f..2a5692b 100644 --- a/internal/encrypt/encrypt.go +++ b/internal/encrypt/encrypt.go @@ -257,7 +257,7 @@ func (e *Encrypter) saveKeysIntoImages(parts []sss.Part, images []string) error // if the images are available hide the key inside them if len(images) > 0 { - imageOutName := partialKeyFilename + filepath.Ext(images[i]) + imageOutName := partialKeyFilename + ".png" e.Logger.Debug(fmt.Sprintf("Writing partial key %03d into image", i+1))