1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-14 07:13:30 +00:00

Fix a typo in GenerateKeyFromPassword()

This commit is contained in:
Gilbert Chen
2017-10-26 13:46:19 -04:00
parent 9608a7f6b6
commit 787c421a0c

View File

@@ -159,8 +159,8 @@ func RateLimitedCopy(writer io.Writer, reader io.Reader, rate int) (written int6
}
// GenerateKeyFromPassword generates a key from the password.
func GenerateKeyFromPassword(password string, salt []byte, iteartions int) []byte {
return pbkdf2.Key([]byte(password), salt, iteartions, 32, sha256.New)
func GenerateKeyFromPassword(password string, salt []byte, iterations int) []byte {
return pbkdf2.Key([]byte(password), salt, iterations, 32, sha256.New)
}
// Get password from preference, env, but don't start any keyring request