Hello, Thanks Carl, Thanks Michael,
My idea is implement in C/C++ the following steps: 1) The client generates two keys: one used as private, the other, as public. 2) The client connects to server. 3) The client sends to sever the public key. 4) The server generates a "connection key". 5) The server encrypts the "connection key" just with the received client public key. 6) The client receives from the server that encrypted key. 7) The client decrypts the "connection key" with its private key. 8) Both client and server talks using this "connection key" for encrypting & decrypting messages... I don't reach to understand how to implement all this steps. So: a) How to generate the keys (public, private and... the connection one) b) Where these keys are placed in the programm... (in which vars). c) How to encrypt the "connection key" with the public key. d) How to decrypt the "connection key" with the private key. (and probably the same as c) and d)...) e) How to encrypt messages with the "connection key". f) How to decrypt messages with the "connection key". Moreover, I need your opinion with the encryption method, so I assumed that RSA is so good... I'm just introducing in this field and I'm a bit confused. Thanks, S. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org