diff options
Diffstat (limited to 'src/passwords.rs')
-rw-r--r-- | src/passwords.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passwords.rs b/src/passwords.rs index ea476bf..efc3f96 100644 --- a/src/passwords.rs +++ b/src/passwords.rs @@ -76,7 +76,7 @@ fn derive_password(passphrase: &str) -> String { let salt = SaltString::generate(&mut OsRng); Pbkdf2 - .hash_password(passphrase.as_bytes(), salt.as_ref()) + .hash_password(passphrase.as_bytes(), salt.as_salt()) .unwrap() .to_string() } |