ProtonMail / go-crypto

Fork of go/x/crypto, providing an up-to-date OpenPGP implementation
https://pkg.go.dev/github.com/ProtonMail/go-crypto
BSD 3-Clause "New" or "Revised" License
328 stars 99 forks source link

Support to allow few config changes: InsecureAllowUnauthenticatedMessages needs to be set as True & SHA1 Support #193

Open HimanshuSharma-Angel opened 7 months ago

HimanshuSharma-Angel commented 7 months ago

Folks, We have encountered a case where merchants are using Java SDK for PGP encryption and it has SHA1 default signature and so is the InsecureAllowUnauthenticatedMessages kept as False.

while performing decryption we are receieving Err: Insecure signature , Security wise we are not allowed to keep this value to be set as default, but the buisness requirement need this support, If we are allowed to do it I would love to add the changes.