From 36cf7c3c00688f623d62216e71aa2c73f8e8d78a Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Tue, 2 Apr 2024 21:42:47 -0700 Subject: feat: switch to hex encoding --- internal/authz/model.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/authz/model.go') diff --git a/internal/authz/model.go b/internal/authz/model.go index efa78f7..1ed61cf 100644 --- a/internal/authz/model.go +++ b/internal/authz/model.go @@ -2,8 +2,8 @@ package authz import ( "crypto/rand" - "encoding/base64" "encoding/csv" + "encoding/hex" "fmt" "math/big" "os" @@ -56,7 +56,7 @@ func GenerateNewToken() (string, string, error) { if err != nil { return "", "", err } - token := base64.URLEncoding.EncodeToString(tokenBytes) + token := hex.EncodeToString(tokenBytes) hash := string(hashBytes) return token, hash, nil } -- cgit v1.2.3