summaryrefslogtreecommitdiff
path: root/README.md
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 /README.md
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 'README.md')
0 files changed, 0 insertions, 0 deletions