Hash function hex = "ab" binary = [hex].pack("H*") # H = hex string (highest byte first), * = multiple bytes