abstract class DigestUtils
Miscellaneous methods for calculating digests.
Mainly for internal use within the framework; consider Apache Commons Codec for a more comprehensive suite of digest utilities.
Author
Arjen Poutsma
Author
Juergen Hoeller
Author
Craig Andrews
Since
3.0
DigestUtils()
Miscellaneous methods for calculating digests. Mainly for internal use within the framework; consider Apache Commons Codec for a more comprehensive suite of digest utilities. |
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. 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. |
|
open static fun md5Digest(bytes: ByteArray): ByteArray
Calculate the MD5 digest of the given bytes. open static fun md5Digest(inputStream: InputStream): ByteArray
Calculate the MD5 digest of the given stream. |
|
open static fun md5DigestAsHex(bytes: ByteArray): String
Return a hexadecimal string representation of the MD5 digest of the given bytes. open static fun md5DigestAsHex(inputStream: InputStream): String
Return a hexadecimal string representation of the MD5 digest of the given stream. |