IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Converting bytes to string as hex (Creating MD5)

  • 1.  Converting bytes to string as hex (Creating MD5)

    Posted Wed May 09, 2018 08:03 AM

    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


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 2.  RE: Converting bytes to string as hex (Creating MD5)

    Posted Wed May 09, 2018 02:47 PM