fix deps cycle
update example
fix color for X25519
output supported cores message
This commit is contained in:
Yuzuki616
2023-06-08 03:11:42 +08:00
parent 0958e351f0
commit ca67855ec9
8 changed files with 39 additions and 20 deletions

View File

@@ -4,6 +4,7 @@ import (
"crypto/rand"
"encoding/base64"
"fmt"
"github.com/spf13/cobra"
"golang.org/x/crypto/curve25519"
)
@@ -45,7 +46,7 @@ func executeX25519() {
return
}
output = Err("Private key: ",
output = fmt.Sprint("Private key: ",
base64.RawURLEncoding.EncodeToString(privateKey),
"\nPublic key: ",
base64.RawURLEncoding.EncodeToString(publicKey))