From 9cde36c5c27cacf60aee93a40048dc6feeb4da8f Mon Sep 17 00:00:00 2001 From: akulij Date: Sun, 2 Mar 2025 23:24:56 +0000 Subject: [PATCH] rename 'sum' variable that contains hashed password to more appropriate name 'secretKey' --- cmd/age-passgen/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/age-passgen/main.go b/cmd/age-passgen/main.go index d12b2a7..47bdce1 100644 --- a/cmd/age-passgen/main.go +++ b/cmd/age-passgen/main.go @@ -78,9 +78,9 @@ func main() { errorf("You should choose stroger password!!! (or change entropy level, read more with --help)\n") } - sum := sha256.Sum256(passbytes) + secretKey := sha256.Sum256(passbytes) - k, err := newX25519IdentityFromScalar(sum[:]) + k, err := newX25519IdentityFromScalar(secretKey[:]) if err != nil { errorf("internal error: %v", err) }