We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Decoding

We've encoded some raw data into hex and binary strings, now let's write some code to decode the hexadecimal version.

Assignment

Complete the getHexBytes function. It takes a string of the following format as input:

48:65:6c:6c:6f

It should return a []byte that represents the string encoded in each hex value. We're essentially reversing the process we used to encode the data in the last assignment.

The following functions will help: