Hi,How do I modify compression algo defaults value
gnaju0118 opened this issue · 2 comments
gnaju0118 commented
config.DefaultCompressionAlgo = constants.DefaultCompression,
lubux commented
Hi, you can set the compression algorithm to one of the following options:
import "github.com/ProtonMail/go-crypto/openpgp/packet"
config.DefaultCompressionAlgo = packet.CompressionNone
config.DefaultCompressionAlgo = packet.CompressionZIP
config.DefaultCompressionAlgo = packet.CompressionZLIB
However, I would not advice to compress while performing encryption since it could potentially allow for side-channel attacks.
gnaju0118 commented
Ok, i got it! Thanks your suggestions.