Converting bytes to string as hex (Creating MD5)

I am invoking createMessageDigest to make an MD5 of a concatenated string. I am well aware this is a very outdated way of making hashes but sadly it’s the only option for one of the third party systems we’re integrating with.

If I directly take the byte output and turn it into a string I get the wrong result as I need it to be in hex format.
I’ve created my own bytesToHex Java Service that does the job but I am wondering if I’ve overlooked an existing feature of byteToString that allows me to return the String as a different format?

Thanks,
Daniel

I know of no such service.