rename 'sum' variable that contains hashed password to more appropriate name 'secretKey'
This commit is contained in:
parent
181ac703ae
commit
9cde36c5c2
@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user