Skip to content

Commit bf403c5

Browse files
committed
Version 1.8.2: Update rust-argon2
1 parent 1dcd79d commit bf403c5

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/).
55

6+
## [1.8.2] - 2025-08-10
7+
8+
### Changed
9+
10+
- Updated rust-argon2 dependency.
11+
612
## [1.8.1] - 2024-04-04
713

814
### Added

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "djangohashers"
3-
version = "1.8.1"
3+
version = "1.8.2"
44
authors = ["Ronaldo Racum <[email protected]>"]
55
documentation = "https://docs.rs/djangohashers/"
66
license = "BSD-3-Clause"
@@ -42,7 +42,7 @@ bcrypt = { version = "^0.17", optional = true }
4242
base64 = { version = "^0.22", optional = true }
4343
pwhash = { version = "^1.0", default-features = false, optional = true }
4444
fastpbkdf2 = { version = "^0.1", optional = true }
45-
rust-argon2 = { version = "^2.0", optional = true }
45+
rust-argon2 = { version = "^3.0", optional = true }
4646
scrypt = { version = "^0.11", optional = true }
4747
constant_time_eq = { version = "^0.4", optional = true }
4848
hex_fmt = { version = "^0.3", optional = true }

src/crypto_utils.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub fn safe_eq(a: &str, b: String) -> bool {
2424
}
2525

2626
#[cfg(feature = "with_argon2")]
27-
use argon2::{self, Config, Variant, Version};
27+
use argon2::{self, Config, ThreadMode, Variant, Version};
2828

2929
#[cfg(all(feature = "with_pbkdf2", not(feature = "fpbkdf2")))]
3030
pub fn hash_pbkdf2_sha256(password: &str, salt: &str, iterations: u32) -> String {
@@ -131,6 +131,7 @@ pub fn hash_argon2(
131131
mem_cost: memory_cost,
132132
time_cost,
133133
lanes: parallelism,
134+
thread_mode: ThreadMode::Parallel,
134135
secret: &[],
135136
ad: &[],
136137
hash_length,

0 commit comments

Comments
 (0)