From d397f9847ed83a804b259b23416313e9417b7936 Mon Sep 17 00:00:00 2001 From: Alex Zorin Date: Sat, 13 Jul 2019 16:59:10 +1000 Subject: [PATCH] export: Base32 needs to be uppercase --- objects.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/objects.go b/objects.go index 263af9b..42dc96e 100644 --- a/objects.go +++ b/objects.go @@ -7,6 +7,7 @@ import ( "encoding/pem" "errors" "fmt" + "strings" ) // ViaMethod represents the methods available for new device registration @@ -179,5 +180,5 @@ func (t AuthenticatorToken) Decrypt(passphrase string) (string, error) { if err != nil { return "", err } - return string(buf), nil + return strings.ToUpper(string(buf)), nil }