From b95f764fc99b0dc3c128f0ef2c5feb450b61b5af Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Sun, 7 Apr 2024 21:15:34 -0600 Subject: [PATCH] breaking: increase keysize This change increases the pre-shared key size, and requires regenerating any existing keys. --- otphyp/otphyp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otphyp/otphyp.go b/otphyp/otphyp.go index e79b8af..cf19edc 100644 --- a/otphyp/otphyp.go +++ b/otphyp/otphyp.go @@ -52,7 +52,7 @@ func GeneratePorts(sharedSecret string, t time.Time) (ports [4]uint16, err error // 2. Save the secret to a file // 3. Distribute the secret to a client func GenerateSecret() (sharedSecret string, err error) { - sharedSecretBytes := make([]byte, 20) + sharedSecretBytes := make([]byte, 500) r := rand.Reader _, err = r.Read([]byte(sharedSecretBytes)) if err != nil {