php openssl encrypt stream on the fly

649 Views Asked by At

I have a php script that downloads huge zip file that is compressed on the fly using zipstream ( http://pablotron.org/software/zipstream-php/ ).

Is it possible to encrypt it using public key cryptography without storing the entire thing on servers disk or in memory?

As far as I can tell standard openssl_encrypt function requires entire data to be in the memory.

0

There are 0 best solutions below