TAstaServerSocket.OnDecrypt
Applies to
TAstaServerSocket
Declaration
property OnDecrypt: TAstaServerStringEvent;
Description
The OnDecrypt event handler allows you to add code for decrypting an encrypted message.
Note: If you add encryption routines to the OnEncrypt event handlers, then you must add decryption routines to the OnDecrypt event handlers. You must place your code in the appropriate event handlers (OnEncrypt and OnDecrypt) of the AstaClientSocket and the AstaServerSocket.
Example
procedure TForm1.AstaServerSocket1Decrypt(Sender: TObject; var S: string);
begin
S := SimpleDecrypt(S);
end;