LibBase64-1.0
LibJSON-1.0 is a library to encode and decode Base64 strings.
This is mostly useful if you are exporting lua data to external applications.
local LibBase64 = LibStub("LibBase64-1.0")
assert(LibBase64.Encode("Hello, how are you doing today?") == "SGVsbG8sIGhvdyBhcmUgeW91IGRvaW5nIHRvZGF5Pw==")
assert(LibBase64.Decode("SGVsbG8sIGhvdyBhcmUgeW91IGRvaW5nIHRvZGF5Pw==") == "Hello, how are you doing today?")
Comments