From 9c4fd469833427180c8fee346890d5468001511a Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Mon, 8 Feb 2021 11:20:13 -0800 Subject: [PATCH] pbkdf2: enable `rand_core` feature of `password-hash` This makes the `SaltString::generate` function available. --- Cargo.lock | 2 +- pbkdf2/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 66dddfe3..c8b95f86 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,7 +2,7 @@ # It is not intended for manual editing. [[package]] name = "argon2" -version = "0.1.1" +version = "0.1.2" dependencies = [ "blake2", "hex-literal", diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml index b8b6a37d..48a8706e 100644 --- a/pbkdf2/Cargo.toml +++ b/pbkdf2/Cargo.toml @@ -17,7 +17,7 @@ crypto-mac = "0.10" rayon = { version = "1", optional = true } base64ct = { version = "0.2", default-features = false, optional = true } hmac = { version = "0.10", default-features = false, optional = true } -password-hash = { version = "0.1", default-features = false, optional = true } +password-hash = { version = "0.1", 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 }