ProtonMail/gopenpgp

Hi,How do I modify compression algo defaults value

gnaju0118 opened this issue · 2 comments

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.

Ok, i got it! Thanks your suggestions.