Using base 64 encoding

Verified
Added by iNTERFACEWARE

How to encode and decode data as base 64, by using filter.base64.enc{} and filter.base64.dec{}

Source Code
   -- encode string as base64
   local Enc = filter.base64.enc('hello world')
   trace(Enc)
   
   -- decode base64 string
   local Dec = filter.base64.dec(Enc)
   trace(Dec)
Description
How to encode and decode data as base 64, by using filter.base64.enc{} and filter.base64.dec{}
Usage Details

Demonstrates how to encode and decode strings as base 64, by using filter.base64.enc{} and filter.base64.dec{}.

How to use the snippet:

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