summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2024-03-03 19:16:39 +0200
committerLars Wirzenius <liw@liw.fi>2024-03-03 19:16:39 +0200
commit2b2faf5972127635c9f6738861cfcc3ccce50e0b (patch)
treef4a2dac75fc6ab0e89306213aa00bc70ae309178 /src
parent07a48a0539b08810937136a822538bf5606e8d4b (diff)
downloadobnam2-2b2faf5972127635c9f6738861cfcc3ccce50e0b.tar.gz
chore: upgrade dependency on pbkdf2
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
Diffstat (limited to 'src')
-rw-r--r--src/passwords.rs2
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()
}