singpolyma / openpgp-php

OpenPGP.php is a pure-PHP implementation of the OpenPGP Message Format (RFC 4880).
http://singpolyma.github.io/openpgp-php/
The Unlicense
179 stars 69 forks source link

Encrypt stream or chunks #114

Open sgtlambda opened 2 years ago

sgtlambda commented 2 years ago

I'm trying to encrypt a very large file and hitting the PHP memory limit (increasing the memory limit is not an option). Is there a way to encrypt a stream/resource or divide up a single file into chunks and write them sequentially to a destination file? I've tried a bunch of things but the resulting file is never readable. (related: #82)