3 Commits
Author SHA1 Message Date
MightyPork e01454d943 bump version 2021-01-23 18:46:53 +01:00
MightyPorkandGitea 16a02aabed Merge branch 'upgrade-deps' of jplatte/digest_auth_rs into master 2021-01-23 17:40:35 +00:00
Jonas Platte f9c4ba2966 Upgrade dependencies 2021-01-07 14:24:48 +01:00
2 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -1,6 +1,6 @@
[package]
name = "digest_auth"
version = "0.2.3"
version = "0.2.4"
authors = ["Ondřej Hruška <ondra@ondrovo.com>"]
edition = "2018"
description = "Implementation of the Digest Auth algorithm as defined in IETF RFC 2069, 2617, and 7616, intended for HTTP clients"
@@ -15,8 +15,8 @@ categories = [
license = "MIT"
[dependencies]
rand = "0.7"
rand = "0.8"
hex = "0.4"
sha2 = "0.8"
md-5 = "0.8"
digest = "0.8"
sha2 = "0.9"
md-5 = "0.9"
digest = "0.9"
+2 -2
View File
@@ -37,8 +37,8 @@ impl Algorithm {
AlgorithmType::SHA2_512_256 => Box::new(Sha512Trunc256::new()),
};
hash.input(bytes);
hex::encode(hash.result())
hash.update(bytes);
hex::encode(hash.finalize())
}
/// Calculate a hash of string's bytes using the selected algorithm