mattosaurus / PgpCore

.NET Core class library for using PGP
MIT License
244 stars 98 forks source link

Remove version from encrypted file #193

Closed paritoshnagar2016 closed 1 year ago

paritoshnagar2016 commented 1 year ago

is there any way to when file is encrypted the below version line should not show up

Version: BouncyCastle.NET Cryptography (netstandard2.0) v2.0.0+4f800b4d32

mattosaurus commented 1 year ago

Hi, the version header is added by the Bouncy Castle ArmouredOutputStream.

It looks like it might be possible to null out the version but not to remove the line entirely. If you want to do that the best way is probably to edit the encrypted file after it's been created to remove the line from it yourself, not a nice solution but it should work.

paritoshnagar2016 commented 1 year ago

ok Thank you