Using hex encoding

Verified
Added by iNTERFACEWARE

How to encode and decode strings with hex, using filter.hex.enc() and filter.hex.dec()

Source Code
-- encode string using hex
local Enc = filter.hex.enc('hello world')
trace(Enc)

-- decode hex encoded string
local Dec = filter.hex.dec(Enc)
trace(Dec)
Description
How to encode and decode strings with hex, using filter.hex.enc() and filter.hex.dec()
Usage Details

Demonstrates how to encode and decode strings using hex encoding, by using filter.hex.enc() and filter.hex.dec().

How to use the snippet:

  • Paste the code into your script
  • Inspect the annotations to see how it works