rename 'sum' variable that contains hashed password to more appropriate name 'secretKey'

This commit is contained in:
akulij 2025-03-02 23:24:56 +00:00
parent 181ac703ae
commit 9cde36c5c2

View File

@ -78,9 +78,9 @@ func main() {
errorf("You should choose stroger password!!! (or change entropy level, read more with --help)\n") 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 { if err != nil {
errorf("internal error: %v", err) errorf("internal error: %v", err)
} }