Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

Base64

Base64 for Delphi

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

Base64

Base64 for Delphi

How to...

pascal
uses
  Rac.Base64;

...
var
  Encod, Decod: string;
begin
  Encod := TBase64.Encode(TEncoding.UTF8.GetBytes('ABC'));
  try
    Decod := TEncoding.UTF8.GetString(TBase64.Decode(Encod));
  except
    on E: Exception do
      Decod := 'Decode Error: ' + E.Message;
  end;
end;