From c6cdce84c23d6e64fb830a51ea10c83363e79df9 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 1 Jun 2018 18:29:19 +0200 Subject: [PATCH] All methods do not allow trailing spaces, remove them though this might break things when the passphrase deliberately ends or starts with a space... Signed-off-by: Knut Ahlers --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 3b98063..be8c401 100644 --- a/main.go +++ b/main.go @@ -76,7 +76,7 @@ func main() { if err != nil { log.WithError(err).Fatal("Unable to read password from file") } - cfg.Password = string(data) + cfg.Password = strings.TrimSpace(string(data)) } }