Bodge.app

global base64

Base64 Encoding & Decoding

base64 v3.0 (c) 2009 by Alex Kloss <alexthkloss@web.de>
licensed under the terms of the LGPL2
from: http://lua-users.org/wiki/BaseSixtyFour

@see base64.url for a base64url variant

@license LGPL-2.0-only


methods


M.encode


function M.encode(data: string) ->  string

@param data - The binary data string to be encoded.

Encode raw data as a base64 string.

M.decode


function M.decode(data: string) ->  string

@param data - The base64 encoded string to be decoded.

Decode a base64 string to raw data.