Keybase friendly, encrypts text by public key.
pk, err := encrypta.NewPublicKeyFromKeybase("sawadashota")
if err != nil {
// error handling
}
enc, err := pk.Encrypt([]byte("I'm encrypted text"))
if err != nil {
// error handling
}
fmt.Println(enc.Base64Encode())
// Stdout base64 encoded encrypted text
To decode this, private key holder executes following command
$ go run main.go | base64 --decode | keybase pgp decrypt
I'm encrypted text