summaryrefslogtreecommitdiff
path: root/go.sum
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-22 17:19:23 +0200
committerPaul Buetow <paul@buetow.org>2026-02-22 17:19:23 +0200
commit2184c2a33b9c00a21d8816f42f5b76d5b9d59be6 (patch)
treeac7ff9f0c1fdfd1d4da68e7a02b07a26f0a81851 /go.sum
parent8b627f383e68ce2b71832d26e86f621239271ad0 (diff)
Fix PIN prompt and Ctrl+C behaviour in shell
PIN prompt: replace readline.ReadPassword (which silently failed to display the prompt before the process was fully interactive) with golang.org/x/term.ReadPassword, which reliably disables echo and prints the prompt via a plain fmt.Print before reading. This fixes the root cause of the decryption failures — the user was never prompted for their PIN, so an empty/default PIN was used, producing a wrong IV. Ctrl+C: return io.EOF from Shell.ReadLine on readline.ErrInterrupt so that pressing Ctrl+C exits the shell loop, matching the Ruby behaviour where SIGINT terminates the process. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'go.sum')
-rw-r--r--go.sum4
1 files changed, 4 insertions, 0 deletions
diff --git a/go.sum b/go.sum
index 2d7624a..b8a6368 100644
--- a/go.sum
+++ b/go.sum
@@ -4,5 +4,9 @@ github.com/magefile/mage v1.15.0 h1:BvGheCMAsG3bWUDbZ8AyXXpCNwU9u5CB6sM+HNb9HYg=
github.com/magefile/mage v1.15.0/go.mod h1:z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A=
golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
+golang.org/x/sys v0.41.0 h1:Ivj+2Cp/ylzLiEU89QhWblYnOE9zerudt9Ftecq2C6k=
+golang.org/x/sys v0.41.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
+golang.org/x/term v0.40.0 h1:36e4zGLqU4yhjlmxEaagx2KuYbJq3EwY8K943ZsHcvg=
+golang.org/x/term v0.40.0/go.mod h1:w2P8uVp06p2iyKKuvXIm7N/y0UCRt3UfJTfZ7oOpglM=
golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE=
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=