Skip to content

Instantly share code, notes, and snippets.

@Lestx
Lestx / encrypt_decrypt_gpg_armor.go
Created June 19, 2018 00:20 — forked from jyap808/encrypt_decrypt_gpg_armor.go
Symmetrically encrypting a string into ASCII armored GPG format and then Decrypting it in Golang
package main
import (
"bytes"
"code.google.com/p/go.crypto/openpgp"
"code.google.com/p/go.crypto/openpgp/armor"
"fmt"
"io/ioutil"
"log"
)