diff --git a/src/openssl.rs b/src/openssl.rs index afd0901..878814d 100644 --- a/src/openssl.rs +++ b/src/openssl.rs @@ -30,8 +30,7 @@ fn sha256_digest(data: &[u8]) -> Vec { /// Returns the MD5 hash of the provided data fn md5_digest(data: &[u8]) -> Vec { - // There has to be a cleaner way to do this, but it works... - hex::decode(format!("{:x}", md5::compute(data))).expect("Failed to decode MD5 hash") + md5::compute(data).to_vec() } /// Returns the request hash of the provided data