move to clean crypt handling

This commit is contained in:
Mikaël Cluseau
2023-02-02 00:28:36 +01:00
parent 3c7d56ae48
commit 69cc01db9b
5 changed files with 172 additions and 125 deletions

View File

@ -3,6 +3,7 @@ package main
import (
"bufio"
"bytes"
"fmt"
"io"
"os"
)
@ -38,6 +39,8 @@ func askSecret(prompt string) []byte {
fatalf("failed to read from stdin: %v", err)
}
fmt.Println()
s = bytes.TrimRight(s, "\r\n")
return s
}