From bb4dbe34df4907c123bae0f34eb3786d244b4480 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 23 Oct 2016 17:38:22 +0200 Subject: kiss --- gen.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gen.go b/gen.go index 21b90a2..43cea67 100644 --- a/gen.go +++ b/gen.go @@ -3,7 +3,6 @@ package main import ( "crypto/rand" "crypto/sha512" - "fmt" "golang.org/x/crypto/ed25519" ) @@ -31,7 +30,7 @@ func Generate(pubkeyfile, seckeyfile, comment string, rounds int) error { } sfile := File{ - Comment: fmt.Sprintf("%s secret key", comment), + Comment: comment + " secret key", B64: sb64, } if err := sfile.EncodeFile(seckeyfile); err != nil { @@ -48,7 +47,7 @@ func Generate(pubkeyfile, seckeyfile, comment string, rounds int) error { return err } pfile := File{ - Comment: fmt.Sprintf("%s public key", comment), + Comment: comment + " public key", B64: pb64, } if err := pfile.EncodeFile(pubkeyfile); err != nil { -- cgit v1.2.3