summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-11-20 10:10:07 +0200
committerLars Wirzenius <liw@liw.fi>2021-11-20 10:10:07 +0200
commit7ff672f26e91404b71edfc25d6b27a6cda11609b (patch)
tree8553fcc1f6c108a24826bfa996ae52a1da7421ff /src
parente9e3f3412e4cc4db25bb9e6d8753f1dcb84520b6 (diff)
downloadobnam2-7ff672f26e91404b71edfc25d6b27a6cda11609b.tar.gz
chore: update dependency on pbkdf2 to 0.9 and fix breakage
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 a1cf42e..bc1a1d7 100644
--- a/src/passwords.rs
+++ b/src/passwords.rs
@@ -70,7 +70,7 @@ fn derive_password(passphrase: &str) -> String {
let salt = SaltString::generate(&mut OsRng);
Pbkdf2
- .hash_password_simple(passphrase.as_bytes(), salt.as_ref())
+ .hash_password(passphrase.as_bytes(), salt.as_ref())
.unwrap()
.to_string()
}