This chapter provides notes and tutorials on Base64 encoding algorithm and implementations. Topics include reviewing Base64 encoding algorithm; W3C implementation and Sun implementation in Java.
Base64 Encoding Algorithm
RFC 1421 - Privacy Enhancement for Email
RFC 1521 - MIME (Multipurpose Internet Mail Extensions)
W3C Implementation of Base64 in Java
Sun Implementation of Base64 in Java
Sun Implementation of Base64 in Java - Test
- Base64 is a data encoding algorithm that
converts any binary data into 64 printable characters.
- Base64 was introduced and modified in RFC 1421 and RFC 1521 as
the MIME (Multipurpose Internet Mail Extensions) data encoding standard.
- Both Base64 and UUEncode encoding algorithms use 64 printable characters.
Exercise: Write a program to compare the performance of Base64 encoding
with UUEncode. I think UUEncode will perform better, because the output characters
are computed instead looked up through an array.
Table of Contents
About This Book
Base64 Encoding and Decoding Tools
Base64URL - URL Safe Base64 Encoding
URL Encoding, URI Encoding, or Percent Encoding
Full Version in PDF/EPUB