summaryrefslogtreecommitdiffstats
path: root/tools/hashpw
diff options
context:
space:
mode:
Diffstat (limited to 'tools/hashpw')
-rw-r--r--tools/hashpw/hashpw.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/hashpw/hashpw.go b/tools/hashpw/hashpw.go
index ac9745d..526ad15 100644
--- a/tools/hashpw/hashpw.go
+++ b/tools/hashpw/hashpw.go
@@ -2,8 +2,10 @@ package main
import (
"crypto/rand"
+ "encoding/base64"
"fmt"
"os"
+ "slices"
"golang.org/x/term"
"roseh.moe/pkg/roseh.moe/internal/pwhash"
@@ -22,7 +24,7 @@ func hashpw() error {
if err != nil {
return err
}
- fmt.Printf("notepad-password=%x%x\n", hash, salt)
+ fmt.Printf("NotepadPassword:%q\n", base64.StdEncoding.EncodeToString(slices.Concat(hash, salt)))
return nil
}