spring-framework / org.springframework.util / DigestUtils / appendMd5DigestAsHex

appendMd5DigestAsHex

open static fun appendMd5DigestAsHex(bytes: ByteArray, builder: StringBuilder): StringBuilder

Append a hexadecimal string representation of the MD5 digest of the given bytes to the given StringBuilder.

Parameters

bytes - the bytes to calculate the digest over

builder - the string builder to append the digest to

Return
the given string builder

open static fun appendMd5DigestAsHex(inputStream: InputStream, builder: StringBuilder): StringBuilder

Append a hexadecimal string representation of the MD5 digest of the given inputStream to the given StringBuilder.

Parameters

inputStream - the inputStream to calculate the digest over

builder - the string builder to append the digest to

Return
the given string builder

Since
4.2