Browse Prior Art Database

The Base16, Base32, and Base64 Data Encodings (RFC3548)

IP.com Disclosure Number: IPCOM000016635D
Original Publication Date: 2003-Jul-01
Included in the Prior Art Database: 2003-Jul-08
Document File: 14 page(s) / 26K

Publishing Venue

Internet Society Requests For Comment (RFCs)

Related People

S. Josefsson: AUTHOR [+2]

Abstract

This document describes the commonly used base 64, base 32, and base 16 encoding schemes. It also discusses the use of line-feeds in encoded data, use of padding in encoded data, use of non-alphabet characters in encoded data, and use of different encoding alphabets.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 10% of the total text.

Network Working Group                                  S. Josefsson, Ed.

Request for Comments: 3548                                     July 2003

Category: Informational

             The Base16, Base32, and Base64 Data Encodings

Status of this Memo

   This memo provides information for the Internet community.  It does

   not specify an Internet standard of any kind.  Distribution of this

   memo is unlimited.

Copyright Notice

   Copyright (C) The Internet Society (2003).  All Rights Reserved.

Abstract

   This document describes the commonly used base 64, base 32, and base

   16 encoding schemes.  It also discusses the use of line-feeds in

   encoded data, use of padding in encoded data, use of non-alphabet

   characters in encoded data, and use of different encoding alphabets.

Table of Contents

   1.  Introduction . . . . . . . . . . . . . . . . . . . . . . . . .  2

   2.  Implementation discrepancies . . . . . . . . . . . . . . . . .  2

       2.1.  Line feeds in encoded data . . . . . . . . . . . . . . .  2

       2.2.  Padding of encoded data  . . . . . . . . . . . . . . . .  3

       2.3.  Interpretation of non-alphabet characters in encoded

             data . . . . . . . . . . . . . . . . . . . . . . . . . .  3

       2.4.  Choosing the alphabet  . . . . . . . . . . . . . . . . .  3

   3.  Base 64 Encoding . . . . . . . . . . . . . . . . . . . . . . .  4

   4.  Base 64 Encoding with URL and Filename Safe Alphabet . . . . .  6

   5.  Base 32 Encoding . . . . . . . . . . . . . . . . . . . . . . .  6

   6.  Base 16 Encoding . . . . . . . . . . . . . . . . . . . . . . .  8

   7.  Illustrations and examples . . . . . . . . . . . . . . . . . .  9

   8.  Security Considerations  . . . . . . . . . . . . . . . . . . . 10

   9.  References . . . . . . . . . . . . . . . . . . . . . . . . . . 11

       9.1.  Normative References . . . . . . . . . . . . . . . . . . 11

       9.2.  Informative References . . . . . . . . . . . . . . . . . 11

   10. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . 11

   11. Editor's Address . . . . . . . . . . . . . . . . . . . . . . . 12

   12. Full Copyright Statement . . . . . . . . . . . . . . . . . . . 13

Josefsson                    Informational                      [Page 1]

RFC 3548     The Base16, Base32, and Base64 Data Encodings     July 2003

1.  Introduction

   Base encoding of data is used in many situations to store or transfer

   data in environments that, perhaps for legacy reasons, are restricted

   to only US-ASCII [9] data.  Base encoding can also be used in new

   applications that do not have legacy restrictions, simply because it

   makes it possible to manipulate objects with text editors.

   In the past, different applications have had different requirements

   and thus sometimes implemented bas...