What is the server side equivalent component for TIdBlockCipherIntercept?

I want to encrypt some packets sent between the TIdTCPClient and TIdTCPServer . On the client side, I can use TIdBlockCipherIntercept to implement my encryption / decryption. But I cannot find the corresponding component on the server side to assign my IdTCPServer , and I could not find anything on Google. What should I do?

+6
source share
1 answer

In the absence of a TIdServerIntercept descendant TIdServerIntercept you can handle the OnConnect event and assign an instance of TIdBlockCipherIntercept for the connection property to the Intercept server.

 AContext.Connection.Intercept := TIdBlockCipherIntercept.Create(AContext.Connection); 
+4
source

All Articles