From 5a1997a68116855eae0ccfb6c021c90257196f77 Mon Sep 17 00:00:00 2001 From: Trevor Arjeski <72849114+trevor-crypto@users.noreply.github.com> Date: Wed, 24 Mar 2021 14:49:16 +0300 Subject: [PATCH] Bump password-hash to 0.1.2 due to breaking change I had a use case where I was using the v0.7.3 of `pbkdf2`, and when dependabot bumped to v0.7.4 there was an error with compiling `pbkdf2`: ``` if Base64::decode(count, &mut count_arr)?.len() != 4 { | ^ the trait `From` is not implemented for `HasherError` ... ``` I found that this is due to my version of `password-hash` being stuck on v0.1.1. Once I did a `cargo update -p password-hash` all was resolved. --- pbkdf2/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml index 645d5b1e..c493e765 100644 --- a/pbkdf2/Cargo.toml +++ b/pbkdf2/Cargo.toml @@ -17,7 +17,7 @@ crypto-mac = "0.10" rayon = { version = "1", optional = true } base64ct = { version = "1", default-features = false, optional = true } hmac = { version = "0.10", default-features = false, optional = true } -password-hash = { version = "0.1", default-features = false, optional = true, features = ["rand_core"] } +password-hash = { version = "0.1.2", default-features = false, optional = true, features = ["rand_core"] } sha1 = { version = "0.9", package = "sha-1", default-features = false, optional = true } sha2 = { version = "0.9", default-features = false, optional = true }