1

I'm working on a Go peer-to-peer chat service to be used in Hyperboria, which operates as a meshnet. That is relatively unimportant compared to my problem:

I need to use OpenPGP keys existent in user's GPG keyrings in order to encrypt and decrypt messages. I need to be able to discover public and private keys, check that given key IDs are present, and use them to either encrypt or decrypt []byte, (either before or after it goes across a TCP connection)

Is there a package that I could look into to do this?

MaVRoSCy
  • 17,747
  • 15
  • 82
  • 125
Alexander Bauer
  • 10,663
  • 8
  • 29
  • 40

1 Answers1

2

You should check out the go.crypto packages particularly the ones in: http://code.google.com/p/go/source/browse/?repo=crypto#hg%2Fopenpgp

It's the most likely to have what you are looking for.

Jeremy Wall
  • 23,907
  • 5
  • 55
  • 73