Data Encoding Tutorials - Herong's Tutorial Examples

http://www.herongyang.com/Encoding

Copyright © 2020 by Dr. Herong Yang. All rights reserved.

Data Encodings This book is a collection of tutorial notes and example codes written by the author while he was learning different data encoding algorithms. Topics include introduction of data encoding algorithms: Base32, Base64, UUEncode; Base64 Encoding Algorithm with W3C Implementation; Base64 Encoding tools and API in Java, Python, PHP and Perl; Base67URL Encoding to be URL and Filename safe; Base32 Encoding Algorithm with Java, PHP and C++ Implementations; URI/URL encoding with Java and PHP example programs; application/x-www-form-urlencoded encoding with Java and PHP example programs; UUEncode Encoding Algorithm with Sun Implementation. Updated in 2020 (Version 5.20) with newer versions of Java, Python, PHP and Perl.

Table of Contents

About This Book

Base64 Encoding

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

Goetz' Implementation of Base64 in JavaScript

Goetz' Implementation of Base64 in JavaScript - Test

Base64 Encoding and Decoding Tools

Base64.Guru - Base64 Online Tool

Windows Command - "certutil -encode/-decode"

Linux Command - "base64"

macOS Command - "base64"

Java Built-In Implementation of Base64

Java Built-In Implementation of MIME Base64

Python Built-In Implementation of Base64

Python Built-In Implementation of MIME Base64

PHP Built-In Implementation of Base64

PHP Built-In Implementation of MIME Base64

Perl Built-In Implementation of Base64

Perl Built-In Implementation of MIME Base64

Base64URL - URL Safe Base64 Encoding

Base64URL Encoding Algorithm

Java Built-In Implementation of Base64URL

Python Built-In Implementation of Base64URL

PHP Implementation of Base64URL Encoding

Perl Implementation of Base64URL Encoding

Base32 Encoding

Base32 Encoding Algorithm

Base32 Character Set Maps

Bitpedia Implementation of Base32 in Java

Bitpedia Implementation of Base32 in Java - Test

Andre's Implementation of Base32 in PHP

Andre's Implementation of Base32 in PHP - Test

madebits Implementation of Base32 in C++

URL Encoding, URI Encoding, or Percent Encoding

What Is URL/URI Encoding?

URL Encoding Variations

URL Encoding on HTML Form Data - IE

URL Encoding on HTML Form Data - Firefox

application/x-www-form-urlencoded Encoding in Java

URI String and Components in Java

URL Encoding Support in PHP

UUEncode Encoding

UUEnccode Algorithm

Sun Implementation of UUEnccode in Java

Correction to Sun Implementation of UUEnccode

PHP - convert_uuencode() and convert_uudecode()

References

Full Version in PDF/EPUB

Keywords: Encoding, Base32, Base64, UUEncode, Algorithm, Java, Tutorial