how to encrypt socket send and get commands? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

how to encrypt socket send and get commands?

can anyone show me how to do a very good but easy to setup encryption for sending and getting socket commands?

so when people look at my code in a spybot it dont show the commands from client or server when being sent

thanks
Slewis

Comments

  • zibadianzibadian Posts: 6,349Member
    : can anyone show me how to do a very good but easy to setup encryption for sending and getting socket commands?
    :
    : so when people look at my code in a spybot it dont show the commands from client or server when being sent
    :
    : thanks
    : Slewis
    :
    The easiest way is to get an established blockcypher (Rijndael, Blowfish, twofish, Cast256, ICE, TEA, etc.) and use a nonce (http://en.wikipedia.org/wiki/Cryptographic_nonce) as key. This way it is very hard for attackers to get access to the commands.
    If you combine it with a CHAP (http://en.wikipedia.org/wiki/Challenge-handshake_authentication_protocol) you can also use the password hash as a basis for a session key. This way you don't need to send the key from the server to the client (or vice versa).
    The source fro the mentioned blockciphers can be found on the internet.
Sign In or Register to comment.