Base 64 Encode & Decode

This post is about Base64 encoding and decoding. Base64 is a group of similar Binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation. The atob() and btoa() JavaScript methods, defined in the HTML5 draft specification, provide Base64 encoding and decoding functionality to web pages.