For an upcoming Blog post I needed to convert a Byte Array to a Hex string in PowerShell and vice versa.

PowerShell doesn’t come with HexToBin or BinToHex functions so here’s my attempt at it: