singpolyma/openpgp-php

Encrypt stream or chunks

sgtlambda opened this issue · 0 comments

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)