Page 1 of 1

how to encrypt data that sent by client to server

Posted: Thu Jul 27, 2006 12:28 am
by ptobra
Hi
How to encrypt the data that sent by the php program from the client to server ? How can i use RSA and x.509 algorithm to encrypt the data ? Any body please help me............ 8O :(

Re: how to encrypt data that sent by client to server

Posted: Thu Jul 27, 2006 3:26 am
by Chris Corbyn
ptobra wrote:Hi
How to encrypt the data that sent by the php program from the client to server ? How can i use RSA and x.509 algorithm to encrypt the data ? Any body please help me............ 8O :(
PHP Never sends data from the client to the server. PHP is on the server, but not the client.

If you want to know about encryption on the server side then there's the mcrypt functions, although I don't think x.509 is supported.

http://uk.php.net/manual/en/ref.mcrypt.php

x.509 and RSA? Sounds like you're looking for certificate exchange which PHP handles automatically if you compile with OpenSSL support.