Base64 is a generic term for a number of similar encoding schemes that encode binary data by treating it numerically and translating it into a base 64 representation. Base64 is used commonly in a number of applications including email via MIME, and storing complex data in XML.

base64_encode:

base64_decode: