aboutsummaryrefslogtreecommitdiff
path: root/azalea-crypto/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-11-11 23:10:38 -0600
committermat <github@matdoes.dev>2022-11-11 23:10:38 -0600
commit16d0cb734caee11cf5424b7b0f5d5d8e68483fe1 (patch)
tree07b50d34f11d88add627a37c96b40a2835c1aa46 /azalea-crypto/src
parentd2353492294ba896772df398af16427beb84b4e1 (diff)
downloadazalea-drasl-16d0cb734caee11cf5424b7b0f5d5d8e68483fe1.tar.xz
change some dependencies
Diffstat (limited to 'azalea-crypto/src')
-rw-r--r--azalea-crypto/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
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)
}