Base64


decode

Type: Function
Return: string
Description: convert a base64 encoded string back to text

var str = "hello";
var encoded = Base64.encode(str);
var decoded = Base64.decode(encoded);

encode

Type: Function
Return: string
Description: convert text to a base64 encoded string

var str = "hello";
var encoded = Base64.encode(str);

Last edited Dec 5, 2012 at 2:25 PM by oobenoob, version 3