ProtonMail / gopenpgp

A high-level OpenPGP library
https://gopenpgp.org
MIT License
1.01k stars 111 forks source link

Examples for unarmored version #232

Closed bentcoder closed 1 year ago

bentcoder commented 1 year ago

Hi,

Could you please add an example for unarmored version? This will be used for Terraform which currently errors with tag byte does not have MSB set. I think it is to to with https://github.com/golang/go/issues/29082#issuecomment-453340235. Anyway, it would be great if you could kindly show an example.

  1. Create keys (private and public - both unarmored)
  2. Enc message
  3. Dec message

Thanks

https://stackoverflow.com/a/69012828/1251684