base85 Algorithm

By use five ASCII characters to represent four bytes of binary data (make the encoded size ​1⁄4 larger than the original, assume eight bits per ASCII character), it is more efficient than uuencode or Base64, which use four characters to represent three bytes of data (​1⁄3 increase, assume eight bits per ASCII character).Its main modern uses are in Adobe's PostScript and portable document format file formats, as well as in the patch encoding for binary files used by Git.

base85 source code, pseudocode and analysis