Sign in Join
FPDoc Onlineexperiment

Base64 unit

Unit implementing base64 encoding.

base64 implements base64 encoding (as used for instance in MIME encoding) based on streams. It implements 2 streams which encode or decode anything written or read from it. The source or the destination of the encoded data is another stream. 2 classes are implemented for this: TBase64EncodingStream for encoding, and TBase64DecodingStream for decoding.

The streams are designed as plug-in streams, which can be placed between other streams, to provide base64 encoding and decoding on-the-fly...

Classes and records

EBase64DecodingExceptionclassException raised on errors.
TBase64DecodingStreamclassBase64 Decoding stream.
TBase64EncodingStreamclassBase64 encoding stream.
TBase64URLDecodingStreamclass
TBase64URLEncodingStreamclass

Procedures and functions

DecodeStringBase64functionDecodes a Base64 encoded string and returns the decoded data as a string.
EncodeStringBase64functionEncode a string with Base64 encoding and return the result as a string.

Types

TBase64DecodingModeenumerationDecoding mode for stream.

Uses

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.