How to convert a String o another Hex String

Easy peasy

    sprintf(HexString, "%02.2x", msgArray[i]);