Skip to content

Commit

Permalink
Merge pull request #39 from sdroege/base64-0.13
Browse files Browse the repository at this point in the history
Update base64 depedency to 0.13, crossbeam-utils to 0.8 and hex to 0.4
  • Loading branch information
mrijkeboer committed Nov 22, 2020
2 parents acbb8f5 + 388d31f commit 7c9dba2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Expand Up @@ -18,11 +18,11 @@ name = "argon2"
default = ["crossbeam-utils"]

[dependencies]
base64 = "0.12"
base64 = "0.13"
blake2b_simd = "0.5"
constant_time_eq = "0.1.4"
crossbeam-utils = { version = "0.7", optional = true }
crossbeam-utils = { version = "0.8", optional = true }
serde = { version = "1.0.116", optional = true, features=["derive"] }

[dev-dependencies]
hex = "0.3"
hex = "0.4"
4 changes: 1 addition & 3 deletions tests/integration_test.rs
Expand Up @@ -1066,9 +1066,7 @@ fn hash_test(
hash_length: 32,
};
let hash = argon2::hash_raw(pwd, salt, &config).unwrap();
let mut hex_str = String::new();
let res = hash.write_hex(&mut hex_str);
assert_eq!(res, Ok(()));
let hex_str = hash.encode_hex::<String>();
assert_eq!(hex_str.as_str(), hex);

let encoded = argon2::hash_encoded(pwd, salt, &config).unwrap();
Expand Down

0 comments on commit 7c9dba2

Please sign in to comment.