From de4158b930a2afcfa59947ae2cd7127943751805 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Tue, 16 May 2023 00:20:40 +0700 Subject: all: add command to remove the private key The remove-private-key decrypt the issuer's value back using previous private key and store it back to file as plain text. --- README.md | 5 +++++ _sys/etc/bash_completion.d/gotp | 4 +++- cli.go | 44 +++++++++++++++++++++++++++++++++++++ cli_test.go | 19 +++++++++++++++- cmd/gotp/main.go | 30 +++++++++++++++++-------- testdata/cli_SetPrivateKey_test.txt | 2 +- 6 files changed, 92 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 6c977bc..85a9579 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,11 @@ remove