how to encrypt data that sent by client to server

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
ptobra
Forum Newbie
Posts: 11
Joined: Mon Jul 24, 2006 11:43 pm

how to encrypt data that sent by client to server

Post 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 :(
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

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

Post 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.
Post Reply