Arthur,
I just saw this post and I don't know if you got an answer to your question or not so I worked up a simple basic example. First, you don't need to "install" this package, just add it to the "Required Packages" of your project. There are no visual components so no need to install it. I created a form with two buttons and two memos. Hope this helps.
Robert
ps. I also believe there are examples included with CodeTyphon in the "CodeOcean" Examples.
Uses
SbpBase64;
{$R *.frm}
Function ToBase64(Const ABytes : TBytes) : String; Overload;
Begin
Result := TBase64.Default.Encode(ABytes);
End;
Function ToBase64(Const AString : String) : String; Overload;
Var
ABytes : TBytes;
Begin
ABytes := TEncoding.ANSI.GetAnsiBytes(AString);
Try
Result := ToBase64(ABytes);
Finally
SetLength(ABytes, 0);
End;
End;
Function FromBase64(Const AString : String) : String;
Var
ABytes : TBytes;
Begin
ABytes := TBase64.Default.Decode(AString);
Try
Result := String(TEncoding.ANSI.GetString(ABytes));
Finally
SetLength(ABytes, 0);
End;
End;
{ Tform1 }
Procedure Tform1.buttonToBase64click(Sender : Tobject);
Begin
memoBase64Text.Lines.Text := ToBase64(memoNormalText.Lines.Text);
End;
Procedure Tform1.buttonFromBase64Click(Sender : Tobject);
Begin
memoNormalText.Lines.Text := FromBase64(memoBase64Text.Lines.Text);
End;