Encryption/decryption of PHP data



My client application needs to send data to a PHP page in encrypted form
and have the PHP code able to decrypt it. Likewise the PHP code needs to
return data to my application encrypted and my client application needs
to be able to decrypt it.

My application is written in C++ and naturally the PHP page is written
in PHP.

I do understand that public key-private key cryptography is the way to
go. So far my Internet search has turrned up GnuPG as a means of doing
public key-private key cryptography for PHP with libraries for C++ also.
However the client application is a commercial application and unless I
misunderstand the GNU General Public License the software of the
application which uses GnuPG must allow its source to be freely
available in order to use the library. This is of course something which
I am completely unwilling to do for the commercial application.

Is there any other public key-private key cryptography solution on the
PHP side which also has a C++ library which I can use for the client
application, which does not adhere to the GNU General Public License ?
This does not have to be a free product.
.



Relevant Pages

  • Re: HELP: send binary replies back and forth ???
    ... a client, not a server. ... simple php function to set the timeout), ... Issues in writing php server are: ... >> and communication then goes back and forth between the server and client ...
    (comp.lang.php)
  • HELP: send binary replies back and forth ???
    ... The PHP script receives a request from a client, ... My PHP script loops through all records and sends each of them ONE BY ONE. ... to be able to communicate with apache. ...
    (comp.lang.php)
  • Re: Advantages and disadvantages of PHP?
    ... Sometimes it's PHP, sometimes Java, sometimes something else. ... You'll find, for instance, that while your hosting company offers ASP.NET, their offer in fairly rare, and their price much above equivalent hosting offers in other languages. ... wanted to keep that client. ...
    (comp.lang.php)
  • Re: Authoring tool recommendation
    ... PHP or some other server side language. ... What if the person confuses "ASP" with a client-side language? ... client side scripts for fancying up a page, ...
    (comp.infosystems.www.authoring.html)
  • Re: Which Is The Better Approach To Working With Javascript?
    ... However this is achieved, PHP has no script interface, ... Javascript is run **ONLY** on the client. ... but I think the original answers based on the level of the OP were probably good ones; run it client side because the server likely doesn't provide it?. ...
    (comp.lang.php)