mirror of
https://github.com/gilbertchen/duplicacy
synced 2025-12-15 15:53:26 +00:00
Fix a typo in GenerateKeyFromPassword()
This commit is contained in:
@@ -159,8 +159,8 @@ func RateLimitedCopy(writer io.Writer, reader io.Reader, rate int) (written int6
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GenerateKeyFromPassword generates a key from the password.
|
// GenerateKeyFromPassword generates a key from the password.
|
||||||
func GenerateKeyFromPassword(password string, salt []byte, iteartions int) []byte {
|
func GenerateKeyFromPassword(password string, salt []byte, iterations int) []byte {
|
||||||
return pbkdf2.Key([]byte(password), salt, iteartions, 32, sha256.New)
|
return pbkdf2.Key([]byte(password), salt, iterations, 32, sha256.New)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get password from preference, env, but don't start any keyring request
|
// Get password from preference, env, but don't start any keyring request
|
||||||
|
|||||||
Reference in New Issue
Block a user