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

md5DigestAsHex

open static fun md5DigestAsHex(bytes: ByteArray): String

Return a hexadecimal string representation of the MD5 digest of the given bytes.

Parameters

bytes - the bytes to calculate the digest over

Return
a hexadecimal digest string

open static fun md5DigestAsHex(inputStream: InputStream): String

Return a hexadecimal string representation of the MD5 digest of the given stream.

Parameters

inputStream - the InputStream to calculate the digest over

Return
a hexadecimal digest string

Since
4.2