Ascii85

Source: Wikipedia, the free encyclopedia.

Ascii85, also called Base85, is a form of

uuencode or Base64
, which use four characters to represent three bytes of data (13 increase, assuming eight bits per ASCII character).

Its main modern uses are in

Portable Document Format file formats, as well as in the patch encoding for binary files used by Git.[1]

Overview

The basic need for a binary-to-text encoding comes from a need to communicate arbitrary

are "safe" to use to convey data.

Eighty-five is the minimum integer value of n such that n5 ≥ 2564 232 so any sequence of 4 bytes can be encoded as 5 symbols, as long as at least 85 distinct symbols are available. (Five radix-85 digits can represent the integers from 0 to 4,437,053,124 inclusive, which suffice to represent all 4,294,967,296 possible 4-byte sequences.)

Characters used by the encoded text are !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstu and additionally z to mark a sequence of four zero bytes.

Encoding