base64(7lua)                                                      base64(7lua)



NNAAMMEE
       base64 - Lua module for base64 encoding

SSYYNNOOPPSSIISS
       local base64 = require "base64"

DDEESSCCRRIIPPTTIIOONN
       Base64 is a method to represent binary data with only ASCII characters.
       This can be used for example to embed sound files or images in the  Lua
       script as long strings.

       AAtttteennttiioonn: The image formats XPM and XBM are already in an ASCII format
       and can be embedded directly in a Lua script without further encoding.

       bbaassee6644..eennccooddee((_b_i_n_a_r_y_-_s_t_r_i_n_g))
              This encodes the binary data in the _b_i_n_a_r_y_-_s_t_r_i_n_g  with  base64.
              It returns the result as string.

              By  the  way,  on  GNU systems there is also a command line tool
              named bbaassee6644.  You can also use that to encode data.

       bbaassee6644..ddeeccooddee((_b_a_s_e_6_4_-_s_t_r_i_n_g))
              This decodes the _b_a_s_e_6_4_-_s_t_r_i_n_g and returns the binary data as  a
              string.

       bbaassee6644..vveerrssiioonn
               This variable holds a version string for the base64 module.

AKFAvatar                         2012-07-25                      base64(7lua)
