Size differences between files encrypted with PGPCore and files encrypted with PGP command line
MB34 opened this issue · comments
We have noticed that the files that are encrypted using PGPCore are significantly larger than files encrypted with command line PGP.
For a 22KB (22,304 bytes) file, the encrypted file size for one encrypted by command line PGP is 7.98KB (8,178 bytes)
But the exact same file encrypted using PGPCore is 78.2KB (80,087 bytes)
Can you explain this ten fold increase in file size?
It's probably because PGP is compressing the message and the PGPCore default is not to compress it.
https://github.com/mattosaurus/PgpCore#compressionalgorithm
There may also be a difference in armoured vs binary output.
Well, how do I change the CompressionAlgorithm?
PgpCore/PgpCore.Tests/UnitTests/UnitTestsAsync.cs
Lines 565 to 598 in 8298709
THX, Got it working