Do you have a client-server-model or a peer-to-peer-model?
What is the underlying network protocol?
- HTTP over TCP
- TCP
- UDP
- etc.
Which side wants to send encrypted data first?
- client to server
- server to client
- somebody to somebody
Does the other side want to send encrypted data back?
How much encrypted data do you want to send?
How "strong" must the encryption be?
- "just being able to detect network transmission errors"
- "just prevent my little brother from reading my network traffic"
- "just prevent some person with a plain text network sniffer from reading my traffic"
- "just prevent some dedicated person with cryptography knowledge from reading my network traffic"
- "just prevent a group of hackers from penetrating my network"
- "just prevent the CIA from stealing my pr0n"
Sorry, without some answers on those question I can't really give you a meaningful suggestion.
its a client to server connection over the internet with UDP
the first sending should be from the client
Does the other side want to send encrypted data back?
yes both should encryped there data cleint & server
How much encrypted data do you want to send?
hard to say 2-10 KB/s
max 100 clients
so 200-1000 KB/s
How "strong" must the encryption be?
- "just prevent the CIA from stealing my pr0n"
who said that to you?^^
should be enought if not everybody who loaded some files from the internet can enter.
but if the key is stronger its better for me.
But encryption is possible by deriving from sf::Packet or am I wrong?
Absolutely, a class derived from sf::Packet is a very good place to put the encryption functions, so that it can be performed automatically. I think that there is an example in the network tutorials.
thx , but i also searching for an libary which can encryp the data, but when i found one maybe i can use this
thx for the help