aboutsummaryrefslogtreecommitdiff
path: root/gpg
diff options
context:
space:
mode:
Diffstat (limited to 'gpg')
-rw-r--r--gpg/gpg.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/gpg/gpg.go b/gpg/gpg.go
index 1ab71ec..cb62f32 100644
--- a/gpg/gpg.go
+++ b/gpg/gpg.go
@@ -36,24 +36,3 @@ func (Verifyer) Verify(b []byte) error {
cmd.Stdin = bytes.NewReader(b)
return cmd.Run()
}
-
-type Encrypter struct {
- Key string
-}
-
-func (e Encrypter) Encrypt(b []byte) ([]byte, error) {
- cmd := exec.Command("gpg", "--encrypt", "--recipient", e.Key)
- return filter(cmd, b)
-}
-
-type Decrypter struct{}
-
-func (Decrypter) Decrypt(b []byte) ([]byte, error) {
- cmd := exec.Command("gpg", "--decrypt")
- return filter(cmd, b)
-}
-
-type Crypter struct {
- Encrypter
- Decrypter
-}