def hextobin(hexstring)

			length = hexstring.length
			binString = ""
			count = 0

			while count < length do
				substring = hexstring[count,2]
				substring = [substring]
				packedString = substring.pack('H*')
				
				if count == 0
					binString = packedString
				else
					binString +=packedString
				end

				count+=2
			end

			return binString
		end
def hextobin(hexstring)

			length = hexstring.length
			binString = ""
			count = 0

			while count < length do
				substring = hexstring[count,2]
				substring = [substring]
				packedString = substring.pack('H*')
				
				if count == 0
					binString = packedString
				else
					binString +=packedString
				end

				count+=2
			end

			return binString
		end
hex-to-bin