diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-04-11 15:49:46 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-04-11 15:49:46 -0400 |
| commit | 6d9e7ca21637a46e643c88ff8c74e884ae908ceb (patch) | |
| tree | a8f88e05d9a128350cea362cd90a55e78b18fd1f /key | |
| parent | 711fa555be918c95d045b52daa973921b4a015d1 (diff) | |
| download | hose-6d9e7ca21637a46e643c88ff8c74e884ae908ceb.zip | |
create util package
Diffstat (limited to 'key')
| -rw-r--r-- | key/generate.go (renamed from key/keygen.go) | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/key/keygen.go b/key/generate.go index 813df31..01ae33e 100644 --- a/key/keygen.go +++ b/key/generate.go @@ -5,12 +5,16 @@ import ( "fmt" "golang.org/x/crypto/nacl/box" "os" + + "git.samanthony.xyz/hose/util" ) // Generate generates a new public/private keypair. It stores the private key in the // private key file and the public key in the public key file. If either of the key // files already exist, they will not be overwritten; instead an error will be returned. func Generate() error { + util.Logf("generating new keypair...") + // Create public key file. pubFile, err := createFile(pubKeyFile, pubKeyFileMode) if err != nil { |