jchavannes / go-pgp

Layer on top of golang.org/x/crypto/openpgp to handle a few PGP use cases.
MIT License
60 stars 17 forks source link

Signing key is encrypted #3

Closed wanderleaf closed 1 year ago

wanderleaf commented 5 years ago

Hello,

When I try to sign, it occurs the error "Signing key is encrypted". Do you know the cause?

Thanks a lot.

jchavannes commented 5 years ago

@linxi111 are you using an encrypted key? You can decrypt the key using:

err := entity.Decrypt(passphrase)