function StringToHex(s) local s = string.gsub(s,"(.)",function (x) return string.format("%02X",string.byte(x)) end) return s; end