What have you tried and where are you stuck? If you haven't tried anything then you haven't encountered any problems yet, so there's not really anything for us to help you with. As a clue, hexadecimal is generally used as a way to display binary data, i.e. bytes. That means that you need to convert your String
to Bytes
first and then to hex, which will also be a String
. You will need to go via Bytes
in the other direction too.