[go-nuts] Re: Mysterious crypto/opengpg: invalid signature: hash tag doesn’t match

2020-03-18 Thread Trung Nguyen
Oh my ... Many thanks... On Wednesday, March 18, 2020 at 12:21:00 PM UTC-4, Brian Candler wrote: > > You didn't include the newline in the plaintext. Add "\n" to the end of > var text, and it is happy. > > https://play.golang.org/p/DG7GajcTuHx > -- You received this message because you are

[go-nuts] Mysterious crypto/opengpg: invalid signature: hash tag doesn’t match

2020-03-18 Thread Trung Nguyen
I’m using crypto/opengpg to verify a PGP signature but constantly receive: openpgp: invalid signature: hash tag doesn't match. Sample code is available here: https://play.golang.org/p/NqjiG3n9Xk8 With the same input data from the above and gpg CLI, gpg --verify works correctly and the