Howdy, Stranger!

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

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.