This language bar is your friend. Select your favorite languages!

Idiom #176 Hex string to byte array

From hex string s of 2n digits, build the equivalent array a of n bytes.
Each pair of hexadecimal characters (16 possible values per digit) is decoded into one byte (256 possible values).

#Edit dateEdit SummaryEditor
👁 Δ 8 2019-02-11, 20:01 New Python implementation by user [Oldboy] Oldboy
👁 Δ 7 2019-01-24, 13:45 [JS] Fixed so it worked :3 1.7.4
👁 Δ 6 2019-01-24, 13:35 New JS implementation by user [1.7.4] 1.7.4
👁 Δ 5 2018-12-30, 12:39 [Pascal] No begin/end needed programming-idioms.org
👁 Δ 4 2018-12-28, 22:15 New Pascal implementation by user [Bart] Bart
👁 Δ 3 2018-12-16, 13:57 +keyword hexa programming-idioms.org
👁 Δ 2 2018-12-16, 13:56 Linked to idiom #175 [Bytes to hex string] programming-idioms.org
1 2018-12-16, 13:56 Idiom creation by user [programming-idioms.org] programming-idioms.org