Encrypted File Transfer

From: Philipp Brune (philipp.brune_at_t-online.de)
Date: 01/12/05


Date: Wed, 12 Jan 2005 22:47:53 +0100

Hi all,

the following problem occured to me and I hope somebody can
help me :

I need to implement an encrypted File download with
a PHP script on the server side and a c# client application.

I know there is a way to symmetrically encrypt files
with the php mcrypt routines and already did implement a
protocol based on xml for querying files from the
server.

So the problem is, I need to generate and exchange a
random key for each transfer. This is possible,
for example, with the Diffie-Hellman Key Exchange
Procedure. Because I found nothing about this
procedure in the php function list, I began
to implement it myself.

The problem in this case is that I need arithmetic
support for Big Numbers (>=1024 Bits). The bc* functions
are too slow and do not work in this case. An alternative
would be the GMP Library, which is not supported by the
ISP where the script will be running.

Setting up my own Server with GMP support is no alternative either in
this case.

So perhaps anybody knows how I could achieve an encrypted
file download with different keys for every "Download Session" in
php. Is it possible over an ssl / https connection ? Or what am I
missing here ?

I would be very grateful for any hints, tips, sugesstions, points
to existing code...

Many thanks in advance,

        Philipp



Relevant Pages

  • Re: Encrypted File Transfer
    ... > a PHP script on the server side and a c# client application. ... > Setting up my own Server with GMP support is no alternative either in ...
    (comp.lang.php)
  • Re: Encrypted File Transfer
    ... >>I need to implement an encrypted File download with ... >>a PHP script on the server side and a c# client application. ...
    (comp.lang.php)
  • Re: Web server with PHP setup & mod-ssl
    ... > as a file download and dumps the file to my desktop. ... You will need to set up php in both apache AND apache-ssl. ...
    (Debian-User)
  • Re: php not parsing
    ... <?php phpinfo(); ?> ... | File Download ... | I'm not certain why it's not parsing php. ... | and I've checked my Apache conf. ...
    (alt.php)
  • File Download dialog problem
    ... I can't seem to get the file download dialog to appear, ... $csv = array; ... Pat Buxton ...
    (alt.php)