replacing hex2bin() function with pack("H*", ...) to backward compatibility