[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Encrypt data between socket client and server


Hi all,

Anyone have an example on how to set up encrypted communication between a socket server and a socket client? Currently data send up and down can be cough by a network sniffer and seen in plain text. That's not what I want.

I have been staring at the different encrypting components but have no idea on how to start and what component to use.

I want:
Clients send data encrypted
Server accepts data decrypts
Server send answer encrypted
Client accepts data and decrypts
etc...

How encrypt/decrypt the data?
How do both sidesknow what encryption to use?

It would be a plus if client authentication could use certificates (like with SSL) as that is an authentication framework I have up and running.

How to let Socket server and client use this manner of authentication?

This and more question run through my head.

A simple example to get me started in the right direction would be great

gbWilly

[GambOS](https://gambos.gambas.one/)
[Gambas3 for Debian/Ubuntu](https://gitlab.com/gbWilly/gambas3-debian-repository)
[GambOS](https://gambos.gambas.one/)

...there is always a Catch if things go wrong!

Sent with [Proton Mail](https://proton.me/mail/home) secure email.

Follow-Ups:
Re: Encrypt data between socket client and serverLee <t.lee.davidson@xxxxxxxxx>