aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-04-18 15:35:07 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-04-18 15:35:07 +0200
commit1f6f9ea5c7e59ee711892a800562b57b3c105a7a (patch)
treeef117cce1b12e62ab4a2c5e513533299cab2fff5 /main.go
parent577e10e99d90503f75f14ee2398d9ea0e87c8434 (diff)
...
Diffstat (limited to 'main.go')
-rw-r--r--main.go25
1 files changed, 10 insertions, 15 deletions
diff --git a/main.go b/main.go
index 2742f72..db4579f 100644
--- a/main.go
+++ b/main.go
@@ -1,15 +1,13 @@
package main
import (
- "encoding/base64"
"flag"
- "fmt"
+ "log"
)
const (
- verFailed = "signature verfication failed"
- verOK = "Signature Verfied"
- DefaultRounds = 42
+ verFailed = "signature verfication failed"
+ verOK = "Signature Verfied"
)
/*
@@ -23,8 +21,8 @@ var (
checksum = flag.Bool("C", false, "Verify a signed checksum list")
generate = flag.Bool("G", false, "Generate a new key pair")
sign = flag.Bool("S", false, "Sign the specfied message")
- vefify = flag.Bool("V", false, "Verify the message")
- comment = flag.String("c", "", "Comment")
+ verify = flag.Bool("V", false, "Verify the message")
+ comment = flag.String("c", "signify", "Comment")
embed = flag.Bool("e", false, "Embed the message")
msg = flag.String("m", "", "Message file")
nopass = flag.Bool("n", false, "No key passphrase")
@@ -42,16 +40,13 @@ func main() {
if *nopass {
rounds = 0
}
- _ = rounds
- /*
+ switch {
+ case *generate:
if err := Generate(*pub, *sec, *comment, rounds); err != nil {
log.Fatal(err)
}
- */
-
- s, _ := base64.StdEncoding.DecodeString("RWRCSwAAAACzJBN2gC5//jVvDiV76rs4m2aKXkljqDpbOC0bBf7abZhV/Zygr6b0KIbSI56JQutwzsQeouxnnHuVTZp3IW4M9qdpe5Nh8Jrr5g7r0rHLPxEPmcv/dNru6ZjqI7CcGsY=")
-
- ms, _ := Marshal(s)
- fmt.Println(string(ms))
+ case *sign:
+ case *verify:
+ }
}