From 16d0cb734caee11cf5424b7b0f5d5d8e68483fe1 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 11 Nov 2022 23:10:38 -0600 Subject: change some dependencies --- azalea-crypto/src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'azalea-crypto/src') diff --git a/azalea-crypto/src/lib.rs b/azalea-crypto/src/lib.rs index 30362e5d..484031ec 100644 --- a/azalea-crypto/src/lib.rs +++ b/azalea-crypto/src/lib.rs @@ -29,6 +29,7 @@ pub fn hex_digest(digest: &[u8]) -> String { // and libraries. It works by treating the sha1 output bytes as one large // integer in two's complement and then printing the integer in base 16, // placing a minus sign if the interpreted number is negative. + num_bigint::BigInt::from_signed_bytes_be(digest).to_str_radix(16) } -- cgit v1.2.3