Skip to content

Instantly share code, notes, and snippets.

import os, cmd, sys, re, glob, os.path, shutil, zipfile, tarfile, gzip
# Credits
#
# The python code here was written by pudquick@github
#
# License
#
# This code is released under a standard MIT license.
#
@mmurdoch
mmurdoch / base64.lua
Created September 30, 2012 08:20 — forked from paulmoore/base64.lua
Base64 in Lua
--- base64.lua
--
-- V0.3 for Lua 5.1
--
-- A full description of the specification can be found here: http://tools.ietf.org/html/rfc4648
--
-- To encode, use base64.encode(input), where input is a string of arbitrary bytes. The output is a Base64 encoded string.
-- To decode, use base64.decode(input), where input is a Base64 encoded string. The output is a string of arbitrary bytes.
--
-- The library will throw an error on invalid input, you can catch these as such: