summaryrefslogtreecommitdiff
path: root/src/passwords.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-11-21 06:55:57 +0000
committerLars Wirzenius <liw@liw.fi>2021-11-21 06:55:57 +0000
commit439653559da3a7fe3edbc9cb86c3d40cff668b2b (patch)
treed1221bdc187664e154b794e7809694ea8a726f57 /src/passwords.rs
parent47a2a2d5d1cf53b02d6fc724a0c7b60effc5dd4f (diff)
parentc9ed57619837de53cf2fe4c2a24e4a2bcca4f8d5 (diff)
downloadobnam2-439653559da3a7fe3edbc9cb86c3d40cff668b2b.tar.gz
Merge branch 'audit' into 'main'
Prepare release 0.5.0 Closes #149 and #150 See merge request obnam/obnam!188
Diffstat (limited to 'src/passwords.rs')
-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()
}