From 25d822ed2251a8dfec8bf5934a067f38d22fae95 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Tue, 28 Oct 2025 20:55:36 -0700 Subject: Switch to ccl --- tools/hashpw/hashpw.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/hashpw/hashpw.go') 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 } -- cgit v1.3.1