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

md5Digest

open static fun md5Digest(bytes: ByteArray): ByteArray

Calculate the MD5 digest of the given bytes.

Parameters

bytes - the bytes to calculate the digest over

Return
the digest

open static fun md5Digest(inputStream: InputStream): ByteArray

Calculate the MD5 digest of the given stream.

Parameters

inputStream - the InputStream to calculate the digest over

Return
the digest

Since
4.2